Akash Soni | 6f36945 | 2023-09-19 11:18:28 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2022-present Open Networking Foundation |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
| 16 | // Code generated by MockGen. DO NOT EDIT. |
| 17 | // Source: /home/aksoni/var/work/gerrit/voltha-go-controller/internal/pkg/application/application.go |
| 18 | |
| 19 | // Package mock_application is a generated GoMock package. |
| 20 | package mocks |
| 21 | |
| 22 | import ( |
| 23 | context "context" |
| 24 | reflect "reflect" |
| 25 | application "voltha-go-controller/internal/pkg/application" |
| 26 | of "voltha-go-controller/internal/pkg/of" |
| 27 | common "voltha-go-controller/internal/pkg/types" |
| 28 | |
| 29 | gomock "github.com/golang/mock/gomock" |
| 30 | ) |
| 31 | |
| 32 | // MockVoltDevInterface is a mock of VoltDevInterface interface. |
| 33 | type MockVoltDevInterface struct { |
| 34 | ctrl *gomock.Controller |
| 35 | recorder *MockVoltDevInterfaceMockRecorder |
| 36 | } |
| 37 | |
| 38 | // MockVoltDevInterfaceMockRecorder is the mock recorder for MockVoltDevInterface. |
| 39 | type MockVoltDevInterfaceMockRecorder struct { |
| 40 | mock *MockVoltDevInterface |
| 41 | } |
| 42 | |
| 43 | // NewMockVoltDevInterface creates a new mock instance. |
| 44 | func NewMockVoltDevInterface(ctrl *gomock.Controller) *MockVoltDevInterface { |
| 45 | mock := &MockVoltDevInterface{ctrl: ctrl} |
| 46 | mock.recorder = &MockVoltDevInterfaceMockRecorder{mock} |
| 47 | return mock |
| 48 | } |
| 49 | |
| 50 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 51 | func (m *MockVoltDevInterface) EXPECT() *MockVoltDevInterfaceMockRecorder { |
| 52 | return m.recorder |
| 53 | } |
| 54 | |
| 55 | // GetPortNameFromPortID mocks base method. |
| 56 | func (m *MockVoltDevInterface) GetPortNameFromPortID(portID uint32) string { |
| 57 | m.ctrl.T.Helper() |
| 58 | ret := m.ctrl.Call(m, "GetPortNameFromPortID", portID) |
| 59 | ret0, _ := ret[0].(string) |
| 60 | return ret0 |
| 61 | } |
| 62 | |
| 63 | // GetPortNameFromPortID indicates an expected call of GetPortNameFromPortID. |
| 64 | func (mr *MockVoltDevInterfaceMockRecorder) GetPortNameFromPortID(portID interface{}) *gomock.Call { |
| 65 | mr.mock.ctrl.T.Helper() |
| 66 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPortNameFromPortID", reflect.TypeOf((*MockVoltDevInterface)(nil).GetPortNameFromPortID), portID) |
| 67 | } |
| 68 | |
| 69 | // MockVoltAppInterface is a mock of VoltAppInterface interface. |
| 70 | type MockVoltAppInterface struct { |
| 71 | ctrl *gomock.Controller |
| 72 | recorder *MockVoltAppInterfaceMockRecorder |
| 73 | } |
| 74 | |
| 75 | // MockVoltAppInterfaceMockRecorder is the mock recorder for MockVoltAppInterface. |
| 76 | type MockVoltAppInterfaceMockRecorder struct { |
| 77 | mock *MockVoltAppInterface |
| 78 | } |
| 79 | |
| 80 | // NewMockVoltAppInterface creates a new mock instance. |
| 81 | func NewMockVoltAppInterface(ctrl *gomock.Controller) *MockVoltAppInterface { |
| 82 | mock := &MockVoltAppInterface{ctrl: ctrl} |
| 83 | mock.recorder = &MockVoltAppInterfaceMockRecorder{mock} |
| 84 | return mock |
| 85 | } |
| 86 | |
| 87 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 88 | func (m *MockVoltAppInterface) EXPECT() *MockVoltAppInterfaceMockRecorder { |
| 89 | return m.recorder |
| 90 | } |
| 91 | |
| 92 | // ActivateService mocks base method. |
| 93 | func (m *MockVoltAppInterface) ActivateService(cntx context.Context, deviceID, portNo string, sVlan, cVlan of.VlanType, tpID uint16) error { |
| 94 | m.ctrl.T.Helper() |
| 95 | ret := m.ctrl.Call(m, "ActivateService", cntx, deviceID, portNo, sVlan, cVlan, tpID) |
| 96 | ret0, _ := ret[0].(error) |
| 97 | return ret0 |
| 98 | } |
| 99 | |
| 100 | // ActivateService indicates an expected call of ActivateService. |
| 101 | func (mr *MockVoltAppInterfaceMockRecorder) ActivateService(cntx, deviceID, portNo, sVlan, cVlan, tpID interface{}) *gomock.Call { |
| 102 | mr.mock.ctrl.T.Helper() |
| 103 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateService", reflect.TypeOf((*MockVoltAppInterface)(nil).ActivateService), cntx, deviceID, portNo, sVlan, cVlan, tpID) |
| 104 | } |
| 105 | |
| 106 | // AddDeviceConfig mocks base method. |
| 107 | func (m *MockVoltAppInterface) AddDeviceConfig(cntx context.Context, serialNum, hardwareIdentifier, nasID, ipAddress, uplinkPort string, nniDhcpTrapID int) error { |
| 108 | m.ctrl.T.Helper() |
| 109 | ret := m.ctrl.Call(m, "AddDeviceConfig", cntx, serialNum, hardwareIdentifier, nasID, ipAddress, uplinkPort, nniDhcpTrapID) |
| 110 | ret0, _ := ret[0].(error) |
| 111 | return ret0 |
| 112 | } |
| 113 | |
| 114 | // AddDeviceConfig indicates an expected call of AddDeviceConfig. |
| 115 | func (mr *MockVoltAppInterfaceMockRecorder) AddDeviceConfig(cntx, serialNum, hardwareIdentifier, nasID, ipAddress, uplinkPort, nniDhcpTrapID interface{}) *gomock.Call { |
| 116 | mr.mock.ctrl.T.Helper() |
| 117 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDeviceConfig", reflect.TypeOf((*MockVoltAppInterface)(nil).AddDeviceConfig), cntx, serialNum, hardwareIdentifier, nasID, ipAddress, uplinkPort, nniDhcpTrapID) |
| 118 | } |
| 119 | |
| 120 | // AddMcastConfig mocks base method. |
| 121 | func (m *MockVoltAppInterface) AddMcastConfig(cntx context.Context, MvlanProfileID, IgmpProfileID, IgmpProxyIP, OltSerialNum string) error { |
| 122 | m.ctrl.T.Helper() |
| 123 | ret := m.ctrl.Call(m, "AddMcastConfig", cntx, MvlanProfileID, IgmpProfileID, IgmpProxyIP, OltSerialNum) |
| 124 | ret0, _ := ret[0].(error) |
| 125 | return ret0 |
| 126 | } |
| 127 | |
| 128 | // AddMcastConfig indicates an expected call of AddMcastConfig. |
| 129 | func (mr *MockVoltAppInterfaceMockRecorder) AddMcastConfig(cntx, MvlanProfileID, IgmpProfileID, IgmpProxyIP, OltSerialNum interface{}) *gomock.Call { |
| 130 | mr.mock.ctrl.T.Helper() |
| 131 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMcastConfig", reflect.TypeOf((*MockVoltAppInterface)(nil).AddMcastConfig), cntx, MvlanProfileID, IgmpProfileID, IgmpProxyIP, OltSerialNum) |
| 132 | } |
| 133 | |
| 134 | // AddMeterProf mocks base method. |
| 135 | func (m *MockVoltAppInterface) AddMeterProf(cntx context.Context, cfg application.VoltMeter) { |
| 136 | m.ctrl.T.Helper() |
| 137 | m.ctrl.Call(m, "AddMeterProf", cntx, cfg) |
| 138 | } |
| 139 | |
| 140 | // AddMeterProf indicates an expected call of AddMeterProf. |
| 141 | func (mr *MockVoltAppInterfaceMockRecorder) AddMeterProf(cntx, cfg interface{}) *gomock.Call { |
| 142 | mr.mock.ctrl.T.Helper() |
| 143 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMeterProf", reflect.TypeOf((*MockVoltAppInterface)(nil).AddMeterProf), cntx, cfg) |
| 144 | } |
| 145 | |
| 146 | // AddMvlanProfile mocks base method. |
| 147 | func (m *MockVoltAppInterface) AddMvlanProfile(cntx context.Context, name string, mvlan, ponVlan of.VlanType, groups map[string][]string, isChannelBasedGroup bool, OLTSerialNum []string, activeChannelsPerPon int, proxy map[string]common.MulticastGroupProxy) error { |
| 148 | m.ctrl.T.Helper() |
| 149 | ret := m.ctrl.Call(m, "AddMvlanProfile", cntx, name, mvlan, ponVlan, groups, isChannelBasedGroup, OLTSerialNum, activeChannelsPerPon, proxy) |
| 150 | ret0, _ := ret[0].(error) |
| 151 | return ret0 |
| 152 | } |
| 153 | |
| 154 | // AddMvlanProfile indicates an expected call of AddMvlanProfile. |
| 155 | func (mr *MockVoltAppInterfaceMockRecorder) AddMvlanProfile(cntx, name, mvlan, ponVlan, groups, isChannelBasedGroup, OLTSerialNum, activeChannelsPerPon, proxy interface{}) *gomock.Call { |
| 156 | mr.mock.ctrl.T.Helper() |
| 157 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMvlanProfile", reflect.TypeOf((*MockVoltAppInterface)(nil).AddMvlanProfile), cntx, name, mvlan, ponVlan, groups, isChannelBasedGroup, OLTSerialNum, activeChannelsPerPon, proxy) |
| 158 | } |
| 159 | |
| 160 | // AddService mocks base method. |
| 161 | func (m *MockVoltAppInterface) AddService(cntx context.Context, cfg application.VoltServiceCfg, oper *application.VoltServiceOper) error { |
| 162 | m.ctrl.T.Helper() |
| 163 | ret := m.ctrl.Call(m, "AddService", cntx, cfg, oper) |
| 164 | ret0, _ := ret[0].(error) |
| 165 | return ret0 |
| 166 | } |
| 167 | |
| 168 | // AddService indicates an expected call of AddService. |
| 169 | func (mr *MockVoltAppInterfaceMockRecorder) AddService(cntx, cfg, oper interface{}) *gomock.Call { |
| 170 | mr.mock.ctrl.T.Helper() |
| 171 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddService", reflect.TypeOf((*MockVoltAppInterface)(nil).AddService), cntx, cfg, oper) |
| 172 | } |
| 173 | |
| 174 | // AddVnet mocks base method. |
| 175 | func (m *MockVoltAppInterface) AddVnet(cntx context.Context, cfg application.VnetConfig, oper *application.VnetOper) error { |
| 176 | m.ctrl.T.Helper() |
| 177 | ret := m.ctrl.Call(m, "AddVnet", cntx, cfg, oper) |
| 178 | ret0, _ := ret[0].(error) |
| 179 | return ret0 |
| 180 | } |
| 181 | |
| 182 | // AddVnet indicates an expected call of AddVnet. |
| 183 | func (mr *MockVoltAppInterfaceMockRecorder) AddVnet(cntx, cfg, oper interface{}) *gomock.Call { |
| 184 | mr.mock.ctrl.T.Helper() |
| 185 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddVnet", reflect.TypeOf((*MockVoltAppInterface)(nil).AddVnet), cntx, cfg, oper) |
| 186 | } |
| 187 | |
| 188 | // DeactivateService mocks base method. |
| 189 | func (m *MockVoltAppInterface) DeactivateService(cntx context.Context, deviceID, portNo string, sVlan, cVlan of.VlanType, tpID uint16) error { |
| 190 | m.ctrl.T.Helper() |
| 191 | ret := m.ctrl.Call(m, "DeactivateService", cntx, deviceID, portNo, sVlan, cVlan, tpID) |
| 192 | ret0, _ := ret[0].(error) |
| 193 | return ret0 |
| 194 | } |
| 195 | |
| 196 | // DeactivateService indicates an expected call of DeactivateService. |
| 197 | func (mr *MockVoltAppInterfaceMockRecorder) DeactivateService(cntx, deviceID, portNo, sVlan, cVlan, tpID interface{}) *gomock.Call { |
| 198 | mr.mock.ctrl.T.Helper() |
| 199 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeactivateService", reflect.TypeOf((*MockVoltAppInterface)(nil).DeactivateService), cntx, deviceID, portNo, sVlan, cVlan, tpID) |
| 200 | } |
| 201 | |
| 202 | // DelMeterProf mocks base method. |
| 203 | func (m *MockVoltAppInterface) DelMeterProf(cntx context.Context, name string) error { |
| 204 | m.ctrl.T.Helper() |
| 205 | ret := m.ctrl.Call(m, "DelMeterProf", cntx, name) |
| 206 | ret0, _ := ret[0].(error) |
| 207 | return ret0 |
| 208 | } |
| 209 | |
| 210 | // DelMeterProf indicates an expected call of DelMeterProf. |
| 211 | func (mr *MockVoltAppInterfaceMockRecorder) DelMeterProf(cntx, name interface{}) *gomock.Call { |
| 212 | mr.mock.ctrl.T.Helper() |
| 213 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelMeterProf", reflect.TypeOf((*MockVoltAppInterface)(nil).DelMeterProf), cntx, name) |
| 214 | } |
| 215 | |
| 216 | // DelMvlanProfile mocks base method. |
| 217 | func (m *MockVoltAppInterface) DelMvlanProfile(cntx context.Context, name string) error { |
| 218 | m.ctrl.T.Helper() |
| 219 | ret := m.ctrl.Call(m, "DelMvlanProfile", cntx, name) |
| 220 | ret0, _ := ret[0].(error) |
| 221 | return ret0 |
| 222 | } |
| 223 | |
| 224 | // DelMvlanProfile indicates an expected call of DelMvlanProfile. |
| 225 | func (mr *MockVoltAppInterfaceMockRecorder) DelMvlanProfile(cntx, name interface{}) *gomock.Call { |
| 226 | mr.mock.ctrl.T.Helper() |
| 227 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelMvlanProfile", reflect.TypeOf((*MockVoltAppInterface)(nil).DelMvlanProfile), cntx, name) |
| 228 | } |
| 229 | |
| 230 | // DelServiceWithPrefix mocks base method. |
| 231 | func (m *MockVoltAppInterface) DelServiceWithPrefix(cntx context.Context, prefix string) error { |
| 232 | m.ctrl.T.Helper() |
| 233 | ret := m.ctrl.Call(m, "DelServiceWithPrefix", cntx, prefix) |
| 234 | ret0, _ := ret[0].(error) |
| 235 | return ret0 |
| 236 | } |
| 237 | |
| 238 | // DelServiceWithPrefix indicates an expected call of DelServiceWithPrefix. |
| 239 | func (mr *MockVoltAppInterfaceMockRecorder) DelServiceWithPrefix(cntx, prefix interface{}) *gomock.Call { |
| 240 | mr.mock.ctrl.T.Helper() |
| 241 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelServiceWithPrefix", reflect.TypeOf((*MockVoltAppInterface)(nil).DelServiceWithPrefix), cntx, prefix) |
| 242 | } |
| 243 | |
| 244 | // GetAllMacLearnerInfo mocks base method. |
| 245 | func (m *MockVoltAppInterface) GetAllMacLearnerInfo() ([]application.MacLearnerInfo, error) { |
| 246 | m.ctrl.T.Helper() |
| 247 | ret := m.ctrl.Call(m, "GetAllMacLearnerInfo") |
| 248 | ret0, _ := ret[0].([]application.MacLearnerInfo) |
| 249 | ret1, _ := ret[1].(error) |
| 250 | return ret0, ret1 |
| 251 | } |
| 252 | |
| 253 | // GetAllMacLearnerInfo indicates an expected call of GetAllMacLearnerInfo. |
| 254 | func (mr *MockVoltAppInterfaceMockRecorder) GetAllMacLearnerInfo() *gomock.Call { |
| 255 | mr.mock.ctrl.T.Helper() |
| 256 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllMacLearnerInfo", reflect.TypeOf((*MockVoltAppInterface)(nil).GetAllMacLearnerInfo)) |
| 257 | } |
| 258 | |
| 259 | // GetAllocations mocks base method. |
| 260 | func (m *MockVoltAppInterface) GetAllocations(cntx context.Context, deviceID string) ([]application.DhcpAllocation, error) { |
| 261 | m.ctrl.T.Helper() |
| 262 | ret := m.ctrl.Call(m, "GetAllocations", cntx, deviceID) |
| 263 | ret0, _ := ret[0].([]application.DhcpAllocation) |
| 264 | ret1, _ := ret[1].(error) |
| 265 | return ret0, ret1 |
| 266 | } |
| 267 | |
| 268 | // GetAllocations indicates an expected call of GetAllocations. |
| 269 | func (mr *MockVoltAppInterfaceMockRecorder) GetAllocations(cntx, deviceID interface{}) *gomock.Call { |
| 270 | mr.mock.ctrl.T.Helper() |
| 271 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllocations", reflect.TypeOf((*MockVoltAppInterface)(nil).GetAllocations), cntx, deviceID) |
| 272 | } |
| 273 | |
| 274 | // GetDevice mocks base method. |
| 275 | func (m *MockVoltAppInterface) GetDevice(device string) *application.VoltDevice { |
| 276 | m.ctrl.T.Helper() |
| 277 | ret := m.ctrl.Call(m, "GetDevice", device) |
| 278 | ret0, _ := ret[0].(*application.VoltDevice) |
| 279 | return ret0 |
| 280 | } |
| 281 | |
| 282 | // GetDevice indicates an expected call of GetDevice. |
| 283 | func (mr *MockVoltAppInterfaceMockRecorder) GetDevice(device interface{}) *gomock.Call { |
| 284 | mr.mock.ctrl.T.Helper() |
| 285 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDevice", reflect.TypeOf((*MockVoltAppInterface)(nil).GetDevice), device) |
| 286 | } |
| 287 | |
| 288 | // GetDeviceConfig mocks base method. |
| 289 | func (m *MockVoltAppInterface) GetDeviceConfig(serNum string) *application.DeviceConfig { |
| 290 | m.ctrl.T.Helper() |
| 291 | ret := m.ctrl.Call(m, "GetDeviceConfig", serNum) |
| 292 | ret0, _ := ret[0].(*application.DeviceConfig) |
| 293 | return ret0 |
| 294 | } |
| 295 | |
| 296 | // GetDeviceConfig indicates an expected call of GetDeviceConfig. |
| 297 | func (mr *MockVoltAppInterfaceMockRecorder) GetDeviceConfig(serNum interface{}) *gomock.Call { |
| 298 | mr.mock.ctrl.T.Helper() |
| 299 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDeviceConfig", reflect.TypeOf((*MockVoltAppInterface)(nil).GetDeviceConfig), serNum) |
| 300 | } |
| 301 | |
| 302 | // GetFlowProvisionStatus mocks base method. |
| 303 | func (m *MockVoltAppInterface) GetFlowProvisionStatus(portNo string) application.FlowProvisionStatus { |
| 304 | m.ctrl.T.Helper() |
| 305 | ret := m.ctrl.Call(m, "GetFlowProvisionStatus", portNo) |
| 306 | ret0, _ := ret[0].(application.FlowProvisionStatus) |
| 307 | return ret0 |
| 308 | } |
| 309 | |
| 310 | // GetFlowProvisionStatus indicates an expected call of GetFlowProvisionStatus. |
| 311 | func (mr *MockVoltAppInterfaceMockRecorder) GetFlowProvisionStatus(portNo interface{}) *gomock.Call { |
| 312 | mr.mock.ctrl.T.Helper() |
| 313 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFlowProvisionStatus", reflect.TypeOf((*MockVoltAppInterface)(nil).GetFlowProvisionStatus), portNo) |
| 314 | } |
| 315 | |
| 316 | // GetIgnoredPorts mocks base method. |
| 317 | func (m *MockVoltAppInterface) GetIgnoredPorts() (map[string][]string, error) { |
| 318 | m.ctrl.T.Helper() |
| 319 | ret := m.ctrl.Call(m, "GetIgnoredPorts") |
| 320 | ret0, _ := ret[0].(map[string][]string) |
| 321 | ret1, _ := ret[1].(error) |
| 322 | return ret0, ret1 |
| 323 | } |
| 324 | |
| 325 | // GetIgnoredPorts indicates an expected call of GetIgnoredPorts. |
| 326 | func (mr *MockVoltAppInterfaceMockRecorder) GetIgnoredPorts() *gomock.Call { |
| 327 | mr.mock.ctrl.T.Helper() |
| 328 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIgnoredPorts", reflect.TypeOf((*MockVoltAppInterface)(nil).GetIgnoredPorts)) |
| 329 | } |
| 330 | |
| 331 | // GetMacLearnerInfo mocks base method. |
| 332 | func (m *MockVoltAppInterface) GetMacLearnerInfo(cntx context.Context, deviceID, portNumber, vlanID string) (application.MacLearnerInfo, error) { |
| 333 | m.ctrl.T.Helper() |
| 334 | ret := m.ctrl.Call(m, "GetMacLearnerInfo", cntx, deviceID, portNumber, vlanID) |
| 335 | ret0, _ := ret[0].(application.MacLearnerInfo) |
| 336 | ret1, _ := ret[1].(error) |
| 337 | return ret0, ret1 |
| 338 | } |
| 339 | |
| 340 | // GetMacLearnerInfo indicates an expected call of GetMacLearnerInfo. |
| 341 | func (mr *MockVoltAppInterfaceMockRecorder) GetMacLearnerInfo(cntx, deviceID, portNumber, vlanID interface{}) *gomock.Call { |
| 342 | mr.mock.ctrl.T.Helper() |
| 343 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMacLearnerInfo", reflect.TypeOf((*MockVoltAppInterface)(nil).GetMacLearnerInfo), cntx, deviceID, portNumber, vlanID) |
| 344 | } |
| 345 | |
| 346 | // GetMeterByName mocks base method. |
| 347 | func (m *MockVoltAppInterface) GetMeterByName(name string) (*application.VoltMeter, bool) { |
| 348 | m.ctrl.T.Helper() |
| 349 | ret := m.ctrl.Call(m, "GetMeterByName", name) |
| 350 | ret0, _ := ret[0].(*application.VoltMeter) |
| 351 | ret1, _ := ret[1].(bool) |
| 352 | return ret0, ret1 |
| 353 | } |
| 354 | |
| 355 | // GetMeterByName indicates an expected call of GetMeterByName. |
| 356 | func (mr *MockVoltAppInterfaceMockRecorder) GetMeterByName(name interface{}) *gomock.Call { |
| 357 | mr.mock.ctrl.T.Helper() |
| 358 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMeterByName", reflect.TypeOf((*MockVoltAppInterface)(nil).GetMeterByName), name) |
| 359 | } |
| 360 | |
| 361 | // GetMvlanProfileByTag mocks base method. |
| 362 | func (m *MockVoltAppInterface) GetMvlanProfileByTag(vlan of.VlanType) *application.MvlanProfile { |
| 363 | m.ctrl.T.Helper() |
| 364 | ret := m.ctrl.Call(m, "GetMvlanProfileByTag", vlan) |
| 365 | ret0, _ := ret[0].(*application.MvlanProfile) |
| 366 | return ret0 |
| 367 | } |
| 368 | |
| 369 | // GetMvlanProfileByTag indicates an expected call of GetMvlanProfileByTag. |
| 370 | func (mr *MockVoltAppInterfaceMockRecorder) GetMvlanProfileByTag(vlan interface{}) *gomock.Call { |
| 371 | mr.mock.ctrl.T.Helper() |
| 372 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMvlanProfileByTag", reflect.TypeOf((*MockVoltAppInterface)(nil).GetMvlanProfileByTag), vlan) |
| 373 | } |
| 374 | |
| 375 | // GetProgrammedSubscribers mocks base method. |
| 376 | func (m *MockVoltAppInterface) GetProgrammedSubscribers(cntx context.Context, deviceID, portNo string) ([]*application.VoltService, error) { |
| 377 | m.ctrl.T.Helper() |
| 378 | ret := m.ctrl.Call(m, "GetProgrammedSubscribers", cntx, deviceID, portNo) |
| 379 | ret0, _ := ret[0].([]*application.VoltService) |
| 380 | ret1, _ := ret[1].(error) |
| 381 | return ret0, ret1 |
| 382 | } |
| 383 | |
| 384 | // GetProgrammedSubscribers indicates an expected call of GetProgrammedSubscribers. |
| 385 | func (mr *MockVoltAppInterfaceMockRecorder) GetProgrammedSubscribers(cntx, deviceID, portNo interface{}) *gomock.Call { |
| 386 | mr.mock.ctrl.T.Helper() |
| 387 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProgrammedSubscribers", reflect.TypeOf((*MockVoltAppInterface)(nil).GetProgrammedSubscribers), cntx, deviceID, portNo) |
| 388 | } |
| 389 | |
| 390 | // GetTaskList mocks base method. |
| 391 | func (m *MockVoltAppInterface) GetTaskList(device string) map[int]*application.TaskInfo { |
| 392 | m.ctrl.T.Helper() |
| 393 | ret := m.ctrl.Call(m, "GetTaskList", device) |
| 394 | ret0, _ := ret[0].(map[int]*application.TaskInfo) |
| 395 | return ret0 |
| 396 | } |
| 397 | |
| 398 | // GetTaskList indicates an expected call of GetTaskList. |
| 399 | func (mr *MockVoltAppInterfaceMockRecorder) GetTaskList(device interface{}) *gomock.Call { |
| 400 | mr.mock.ctrl.T.Helper() |
| 401 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTaskList", reflect.TypeOf((*MockVoltAppInterface)(nil).GetTaskList), device) |
| 402 | } |
| 403 | |
| 404 | // UpdateDeviceConfig mocks base method. |
| 405 | func (m *MockVoltAppInterface) UpdateDeviceConfig(cntx context.Context, deviceConfig *application.DeviceConfig) { |
| 406 | m.ctrl.T.Helper() |
| 407 | m.ctrl.Call(m, "UpdateDeviceConfig", cntx, deviceConfig) |
| 408 | } |
| 409 | |
| 410 | // UpdateDeviceConfig indicates an expected call of UpdateDeviceConfig. |
| 411 | func (mr *MockVoltAppInterfaceMockRecorder) UpdateDeviceConfig(cntx, deviceConfig interface{}) *gomock.Call { |
| 412 | mr.mock.ctrl.T.Helper() |
| 413 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeviceConfig", reflect.TypeOf((*MockVoltAppInterface)(nil).UpdateDeviceConfig), cntx, deviceConfig) |
| 414 | } |
| 415 | |
| 416 | // UpdateOltFlowService mocks base method. |
| 417 | func (m *MockVoltAppInterface) UpdateOltFlowService(cntx context.Context, oltFlowService application.OltFlowService) { |
| 418 | m.ctrl.T.Helper() |
| 419 | m.ctrl.Call(m, "UpdateOltFlowService", cntx, oltFlowService) |
| 420 | } |
| 421 | |
| 422 | // UpdateOltFlowService indicates an expected call of UpdateOltFlowService. |
| 423 | func (mr *MockVoltAppInterfaceMockRecorder) UpdateOltFlowService(cntx, oltFlowService interface{}) *gomock.Call { |
| 424 | mr.mock.ctrl.T.Helper() |
| 425 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOltFlowService", reflect.TypeOf((*MockVoltAppInterface)(nil).UpdateOltFlowService), cntx, oltFlowService) |
| 426 | } |