2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netvirt.elan.internal;
11 import java.util.ArrayList;
12 import java.util.Collection;
13 import java.util.List;
14 import java.util.concurrent.Future;
16 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
17 import org.opendaylight.controller.md.sal.binding.api.NotificationService;
18 import org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService;
19 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
20 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
21 import org.opendaylight.controller.sal.binding.api.BindingAwareProvider;
22 import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
23 import org.opendaylight.netvirt.elan.l2gw.internal.ElanL2GatewayProvider;
24 import org.opendaylight.netvirt.elan.statusanddiag.ElanStatusMonitor;
25 import org.opendaylight.netvirt.elan.utils.ElanClusterUtils;
26 import org.opendaylight.netvirt.elan.utils.ElanConstants;
27 import org.opendaylight.netvirt.elan.utils.ElanUtils;
28 import org.opendaylight.netvirt.elan.statisitcs.ElanStatisticsImpl;
29 import org.opendaylight.netvirt.elanmanager.api.IElanService;
30 import org.opendaylight.netvirt.elanmanager.exceptions.MacNotFoundException;
31 import org.opendaylight.genius.datastoreutils.DataStoreJobCoordinator;
32 import org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager;
33 import org.opendaylight.genius.itm.api.IITMProvider;
34 import org.opendaylight.genius.mdsalutil.MDSALUtil;
35 import org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager;
36 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.PhysAddress;
37 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService;
38 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.CreateIdPoolInput;
39 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.CreateIdPoolInputBuilder;
40 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService;
41 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService;
42 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService;
43 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.ElanInstances;
44 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.ElanInterfaces;
45 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan._interface.forwarding.entries.ElanInterfaceMac;
46 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.instances.ElanInstance;
47 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.instances.ElanInstanceBuilder;
48 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.instances.ElanInstanceKey;
49 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.interfaces.ElanInterface;
50 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.interfaces.ElanInterfaceBuilder;
51 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.interfaces.ElanInterfaceKey;
52 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.elan.state.Elan;
53 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.rev150602.forwarding.entries.MacEntry;
54 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.elan.statistics.rev150824.ElanStatisticsService;
55 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
56 import org.opendaylight.yangtools.yang.common.RpcResult;
57 import org.slf4j.Logger;
58 import org.slf4j.LoggerFactory;
60 import com.google.common.base.Optional;
62 public class ElanServiceProvider implements BindingAwareProvider, IElanService, AutoCloseable {
64 private IdManagerService idManager;
65 private IMdsalApiManager mdsalManager;
66 private IInterfaceManager interfaceManager;
67 private OdlInterfaceRpcService interfaceManagerRpcService;
68 private ElanInstanceManager elanInstanceManager;
69 private ElanForwardingEntriesHandler elanForwardingEntriesHandler;
70 private ElanInterfaceManager elanInterfaceManager;
71 private ElanPacketInHandler elanPacketInHandler;
72 private ElanSmacFlowEventListener elanSmacFlowEventListener;
73 private ElanInterfaceStateChangeListener elanInterfaceStateChangeListener;
74 private ElanInterfaceStateClusteredListener infStateChangeClusteredListener;
75 private ElanDpnInterfaceClusteredListener elanDpnInterfaceClusteredListener;
76 private ElanNodeListener elanNodeListener;
77 private NotificationService notificationService;
78 private RpcProviderRegistry rpcProviderRegistry;
79 private IITMProvider itmManager;
80 private ItmRpcService itmRpcService;
81 private DataBroker broker;
82 private ElanL2GatewayProvider elanL2GatewayProvider;
84 private EntityOwnershipService entityOwnershipService;
86 private static final ElanStatusMonitor elanStatusMonitor = ElanStatusMonitor.getInstance();
87 static DataStoreJobCoordinator dataStoreJobCoordinator;
88 private ElanOvsdbNodeListener elanOvsdbNodeListener;
90 private boolean generateIntBridgeMac = true;
92 public static void setDataStoreJobCoordinator(DataStoreJobCoordinator ds) {
93 dataStoreJobCoordinator = ds;
96 public static DataStoreJobCoordinator getDataStoreJobCoordinator() {
97 if (dataStoreJobCoordinator == null) {
98 dataStoreJobCoordinator = DataStoreJobCoordinator.getInstance();
100 return dataStoreJobCoordinator;
104 public ElanServiceProvider(RpcProviderRegistry rpcRegistry) {
105 rpcProviderRegistry = rpcRegistry;
106 elanStatusMonitor.registerMbean();
109 // private ElanInterfaceStateChangeListener elanInterfaceEventListener;
110 private ElanItmEventListener elanItmEventListener;
112 private static final Logger logger = LoggerFactory.getLogger(ElanServiceProvider.class);
115 public void onSessionInitiated(ProviderContext session) {
116 elanStatusMonitor.reportStatus("STARTING");
119 getDataStoreJobCoordinator();
120 broker = session.getSALService(DataBroker.class);
122 ElanUtils.setDataBroker(broker);
123 ElanUtils.setIfaceMgrRpcService(interfaceManagerRpcService);
124 ElanUtils.setItmRpcService(itmRpcService);
125 ElanUtils.setMdsalManager(mdsalManager);
127 elanForwardingEntriesHandler = new ElanForwardingEntriesHandler(broker);
129 elanInterfaceManager = ElanInterfaceManager.getElanInterfaceManager();
130 elanInterfaceManager.setInterfaceManager(interfaceManager);
131 elanInterfaceManager.setIdManager(idManager);
132 elanInterfaceManager.setMdSalApiManager(mdsalManager);
133 elanInterfaceManager.setDataBroker(broker);
134 elanInterfaceManager.setInterfaceManagerRpcService(interfaceManagerRpcService);
135 elanInterfaceManager.setElanForwardingEntriesHandler(elanForwardingEntriesHandler);
137 elanInstanceManager = ElanInstanceManager.getElanInstanceManager();
138 elanInstanceManager.setDataBroker(broker);
139 elanInstanceManager.setIdManager(idManager);
140 elanInstanceManager.setElanInterfaceManager(elanInterfaceManager);
141 elanInstanceManager.setInterfaceManager(interfaceManager);
144 elanNodeListener = new ElanNodeListener(broker, mdsalManager);
145 elanOvsdbNodeListener = new ElanOvsdbNodeListener(broker, generateIntBridgeMac);
147 elanPacketInHandler = new ElanPacketInHandler(broker);
148 elanPacketInHandler.setInterfaceManager(interfaceManager);
151 elanSmacFlowEventListener = new ElanSmacFlowEventListener(broker);
152 elanSmacFlowEventListener.setMdSalApiManager(mdsalManager);
153 elanSmacFlowEventListener.setInterfaceManager(interfaceManager);
154 elanSmacFlowEventListener.setSalFlowService(session.getRpcService(SalFlowService.class));
157 // Initialize statistics rpc provider for elan
158 ElanStatisticsService interfaceStatsService = new ElanStatisticsImpl(broker, interfaceManager,
160 rpcProviderRegistry.addRpcImplementation(ElanStatisticsService.class, interfaceStatsService);
162 elanInterfaceStateChangeListener = new ElanInterfaceStateChangeListener(broker, elanInterfaceManager);
163 elanInterfaceStateChangeListener.setInterfaceManager(interfaceManager);
165 infStateChangeClusteredListener = new ElanInterfaceStateClusteredListener(broker, elanInterfaceManager);
167 elanDpnInterfaceClusteredListener = new ElanDpnInterfaceClusteredListener(broker, elanInterfaceManager);
168 ElanClusterUtils.setEntityOwnershipService(entityOwnershipService);
169 ElanClusterUtils.setDataStoreJobCoordinator(dataStoreJobCoordinator);
170 this.elanL2GatewayProvider = new ElanL2GatewayProvider(this);
172 elanInterfaceManager.registerListener();
173 elanInstanceManager.registerListener();
174 notificationService.registerNotificationListener(elanSmacFlowEventListener);
175 notificationService.registerNotificationListener(elanPacketInHandler);
177 elanStatusMonitor.reportStatus("OPERATIONAL");
178 } catch (Exception e) {
179 logger.error("Error initializing services", e);
180 elanStatusMonitor.reportStatus("ERROR");
184 public void setIdManager(IdManagerService idManager) {
185 this.idManager = idManager;
188 public void setMdsalManager(IMdsalApiManager mdsalManager) {
189 this.mdsalManager = mdsalManager;
192 public void setInterfaceManager(IInterfaceManager interfaceManager) {
193 this.interfaceManager = interfaceManager;
196 public void setEntityOwnershipService(EntityOwnershipService entityOwnershipService) {
197 this.entityOwnershipService = entityOwnershipService;
200 public IInterfaceManager getInterfaceManager() {
201 return this.interfaceManager;
204 public IMdsalApiManager getMdsalManager() {
208 public IITMProvider getItmManager() {
212 public DataBroker getBroker() {
216 public void setNotificationService(NotificationService notificationService) {
217 this.notificationService = notificationService;
220 public void setInterfaceManagerRpcService(OdlInterfaceRpcService interfaceManager) {
221 this.interfaceManagerRpcService = interfaceManager;
224 public OdlInterfaceRpcService getInterfaceManagerRpcService() {
225 return interfaceManagerRpcService;
228 public void setItmManager(IITMProvider itmManager) {
229 this.itmManager = itmManager;
232 public void setItmRpcService(ItmRpcService itmRpcService) {
233 this.itmRpcService = itmRpcService;
236 public ItmRpcService getItmRpcService() {
237 return itmRpcService;
240 public ElanInstanceManager getElanInstanceManager() {
241 return elanInstanceManager;
244 public ElanInterfaceManager getElanInterfaceManager() {
245 return elanInterfaceManager;
248 public EntityOwnershipService getEntityOwnershipService() {
249 return entityOwnershipService;
252 private void createIdPool() {
253 CreateIdPoolInput createPool = new CreateIdPoolInputBuilder().setPoolName(ElanConstants.ELAN_ID_POOL_NAME)
254 .setLow(ElanConstants.ELAN_ID_LOW_VALUE).setHigh(ElanConstants.ELAN_ID_HIGH_VALUE).build();
256 Future<RpcResult<Void>> result = idManager.createIdPool(createPool);
257 if ((result != null) && (result.get().isSuccessful())) {
258 logger.debug("ELAN Id Pool is created successfully");
260 } catch (Exception e) {
261 logger.error("Failed to create ELAN Id pool {}", e);
266 public boolean createElanInstance(String elanInstanceName, long macTimeout, String description) {
267 ElanInstance existingElanInstance = elanInstanceManager.getElanInstanceByName(elanInstanceName);
268 boolean isSuccess = true;
269 if (existingElanInstance != null) {
270 if (compareWithExistingElanInstance(existingElanInstance, macTimeout, description)) {
271 logger.debug("Elan Instance is already present in the Operational DS {}", existingElanInstance);
274 ElanInstance updateElanInstance = new ElanInstanceBuilder().setElanInstanceName(elanInstanceName)
275 .setDescription(description).setMacTimeout(macTimeout)
276 .setKey(new ElanInstanceKey(elanInstanceName)).build();
277 MDSALUtil.syncWrite(broker, LogicalDatastoreType.CONFIGURATION,
278 ElanUtils.getElanInstanceConfigurationDataPath(elanInstanceName), updateElanInstance);
279 logger.debug("Updating the Elan Instance {} with MAC TIME-OUT %l and Description %s ",
280 updateElanInstance, macTimeout, description);
283 ElanInstance elanInstance = new ElanInstanceBuilder().setElanInstanceName(elanInstanceName)
284 .setMacTimeout(macTimeout).setDescription(description).setKey(new ElanInstanceKey(elanInstanceName))
286 MDSALUtil.syncWrite(broker, LogicalDatastoreType.CONFIGURATION,
287 ElanUtils.getElanInstanceConfigurationDataPath(elanInstanceName), elanInstance);
288 logger.debug("Creating the new Elan Instance {}", elanInstance);
293 public static boolean compareWithExistingElanInstance(ElanInstance existingElanInstance, long macTimeOut,
294 String description) {
295 boolean isEqual = false;
296 if (existingElanInstance.getMacTimeout() == macTimeOut
297 && existingElanInstance.getDescription().equals(description)) {
304 public void updateElanInstance(String elanInstanceName, long newMacTimout, String newDescription) {
305 createElanInstance(elanInstanceName, newMacTimout, newDescription);
309 public boolean deleteElanInstance(String elanInstanceName) {
310 boolean isSuccess = false;
311 ElanInstance existingElanInstance = elanInstanceManager.getElanInstanceByName(elanInstanceName);
312 if (existingElanInstance == null) {
313 logger.debug("Elan Instance is not present {}", existingElanInstance);
316 logger.debug("Deletion of the existing Elan Instance {}", existingElanInstance);
317 ElanUtils.delete(broker, LogicalDatastoreType.CONFIGURATION,
318 ElanUtils.getElanInstanceConfigurationDataPath(elanInstanceName));
324 public void addElanInterface(String elanInstanceName, String interfaceName, List<String> staticMacAddresses,
325 String description) {
326 ElanInstance existingElanInstance = elanInstanceManager.getElanInstanceByName(elanInstanceName);
327 if (existingElanInstance != null) {
328 ElanInterface elanInterface;
329 if (staticMacAddresses == null) {
330 elanInterface = new ElanInterfaceBuilder().setElanInstanceName(elanInstanceName)
331 .setDescription(description).setName(interfaceName).setKey(new ElanInterfaceKey(interfaceName))
334 elanInterface = new ElanInterfaceBuilder().setElanInstanceName(elanInstanceName)
335 .setDescription(description).setName(interfaceName)
336 .setStaticMacEntries(getPhysAddress(staticMacAddresses))
337 .setKey(new ElanInterfaceKey(interfaceName)).build();
339 MDSALUtil.syncWrite(broker, LogicalDatastoreType.CONFIGURATION,
340 ElanUtils.getElanInterfaceConfigurationDataPathId(interfaceName), elanInterface);
341 logger.debug("Creating the new ELan Interface {}", elanInterface);
347 public void updateElanInterface(String elanInstanceName, String interfaceName,
348 List<String> updatedStaticMacAddresses, String newDescription) {
349 ElanInterface existingElanInterface = ElanUtils.getElanInterfaceByElanInterfaceName(interfaceName);
350 if (existingElanInterface == null) {
353 List<PhysAddress> existingMacAddress = existingElanInterface.getStaticMacEntries();
354 List<PhysAddress> updatedMacAddresses = getPhysAddress(updatedStaticMacAddresses);
355 List<PhysAddress> updatedPhysAddress = getUpdatedPhyAddress(existingMacAddress, updatedMacAddresses);
356 if (updatedPhysAddress.size() > 0) {
357 logger.debug("updating the ElanInterface with new Mac Entries {}", updatedStaticMacAddresses);
358 ElanInterface elanInterface = new ElanInterfaceBuilder().setElanInstanceName(elanInstanceName)
359 .setName(interfaceName).setDescription(newDescription).setStaticMacEntries(updatedPhysAddress)
360 .setKey(new ElanInterfaceKey(interfaceName)).build();
361 MDSALUtil.syncWrite(broker, LogicalDatastoreType.CONFIGURATION,
362 ElanUtils.getElanInterfaceConfigurationDataPathId(interfaceName), elanInterface);
367 public void deleteElanInterface(String elanInstanceName, String interfaceName) {
368 ElanInterface existingElanInterface = ElanUtils.getElanInterfaceByElanInterfaceName(interfaceName);
369 if (existingElanInterface != null) {
370 ElanUtils.delete(broker, LogicalDatastoreType.CONFIGURATION,
371 ElanUtils.getElanInterfaceConfigurationDataPathId(interfaceName));
372 logger.debug("deleting the Elan Interface {}", existingElanInterface);
377 public void addStaticMacAddress(String elanInstanceName, String interfaceName, String macAddress) {
378 ElanInterface existingElanInterface = ElanUtils.getElanInterfaceByElanInterfaceName(interfaceName);
379 PhysAddress updateStaticMacAddress = new PhysAddress(macAddress);
380 if (existingElanInterface != null) {
381 List<PhysAddress> existingMacAddress = existingElanInterface.getStaticMacEntries();
382 if (existingMacAddress.contains(updateStaticMacAddress)) {
385 existingMacAddress.add(updateStaticMacAddress);
386 ElanInterface elanInterface = new ElanInterfaceBuilder().setElanInstanceName(elanInstanceName)
387 .setName(interfaceName).setStaticMacEntries(existingMacAddress)
388 .setDescription(existingElanInterface.getDescription()).setKey(new ElanInterfaceKey(interfaceName))
390 MDSALUtil.syncWrite(broker, LogicalDatastoreType.CONFIGURATION,
391 ElanUtils.getElanInterfaceConfigurationDataPathId(interfaceName), elanInterface);
396 public void deleteStaticMacAddress(String elanInstanceName, String interfaceName, String macAddress)
397 throws MacNotFoundException {
398 ElanInterface existingElanInterface = ElanUtils.getElanInterfaceByElanInterfaceName(interfaceName);
399 PhysAddress physAddress = new PhysAddress(macAddress);
400 if (existingElanInterface == null) {
403 List<PhysAddress> existingMacAddress = existingElanInterface.getStaticMacEntries();
404 if (existingMacAddress.contains(physAddress)) {
405 existingMacAddress.remove(physAddress);
406 ElanInterface elanInterface = new ElanInterfaceBuilder().setElanInstanceName(elanInstanceName)
407 .setName(interfaceName).setStaticMacEntries(existingMacAddress)
408 .setDescription(existingElanInterface.getDescription()).setKey(new ElanInterfaceKey(interfaceName))
410 MDSALUtil.syncWrite(broker, LogicalDatastoreType.CONFIGURATION,
411 ElanUtils.getElanInterfaceConfigurationDataPathId(interfaceName), elanInterface);
413 throw new MacNotFoundException("Mac Not Found Exception");
418 public Collection<MacEntry> getElanMacTable(String elanInstanceName) {
419 Elan elanInfo = ElanUtils.getElanByName(elanInstanceName);
420 List<MacEntry> macAddress = new ArrayList<>();
421 if (elanInfo == null) {
424 List<String> elanInterfaces = elanInfo.getElanInterfaces();
425 if (elanInterfaces != null && elanInterfaces.size() > 0) {
426 for (String elanInterface : elanInterfaces) {
427 ElanInterfaceMac elanInterfaceMac = ElanUtils.getElanInterfaceMacByInterfaceName(elanInterface);
428 if (elanInterfaceMac != null && elanInterfaceMac.getMacEntry() != null
429 && elanInterfaceMac.getMacEntry().size() > 0) {
430 macAddress.addAll(elanInterfaceMac.getMacEntry());
438 public void flushMACTable(String elanInstanceName) {
439 Elan elanInfo = ElanUtils.getElanByName(elanInstanceName);
440 if (elanInfo == null) {
443 List<String> elanInterfaces = elanInfo.getElanInterfaces();
444 if (elanInterfaces == null || elanInterfaces.isEmpty()) {
447 for (String elanInterface : elanInterfaces) {
448 ElanInterfaceMac elanInterfaceMac = ElanUtils.getElanInterfaceMacByInterfaceName(elanInterface);
449 if (elanInterfaceMac.getMacEntry() != null && elanInterfaceMac.getMacEntry().size() > 0) {
450 List<MacEntry> macEntries = elanInterfaceMac.getMacEntry();
451 for (MacEntry macEntry : macEntries) {
453 deleteStaticMacAddress(elanInstanceName, elanInterface, macEntry.getMacAddress().getValue());
454 } catch (MacNotFoundException e) {
455 logger.error("Mac Not Found Exception {}", e);
465 public void close() throws Exception {
466 this.elanInstanceManager.close();
467 this.elanL2GatewayProvider.close();
470 public static List<PhysAddress> getPhysAddress(List<String> macAddress) {
471 List<PhysAddress> physAddresses = new ArrayList<>();
472 for (String mac : macAddress) {
473 physAddresses.add(new PhysAddress(mac));
475 return physAddresses;
478 public List<PhysAddress> getUpdatedPhyAddress(List<PhysAddress> originalAddresses,
479 List<PhysAddress> updatePhyAddresses) {
480 if (updatePhyAddresses != null && !updatePhyAddresses.isEmpty()) {
481 List<PhysAddress> existingClonedPhyAddress = new ArrayList<>();
482 if (originalAddresses != null && !originalAddresses.isEmpty()) {
483 existingClonedPhyAddress.addAll(0, originalAddresses);
484 originalAddresses.removeAll(updatePhyAddresses);
485 updatePhyAddresses.removeAll(existingClonedPhyAddress);
488 return updatePhyAddresses;
492 public ElanInstance getElanInstance(String elanName) {
493 return ElanUtils.getElanInstanceByName(elanName);
497 public List<ElanInstance> getElanInstances() {
498 List<ElanInstance> elanList = new ArrayList<>();
499 InstanceIdentifier<ElanInstances> elanInstancesIdentifier = InstanceIdentifier.builder(ElanInstances.class)
501 Optional<ElanInstances> elansOptional = ElanUtils.read(broker, LogicalDatastoreType.CONFIGURATION,
502 elanInstancesIdentifier);
503 if (elansOptional.isPresent()) {
504 elanList.addAll(elansOptional.get().getElanInstance());
510 public List<String> getElanInterfaces(String elanInstanceName) {
511 List<String> elanInterfaces = new ArrayList<>();
512 InstanceIdentifier<ElanInterfaces> elanInterfacesIdentifier = InstanceIdentifier.builder(ElanInterfaces.class)
514 Optional<ElanInterfaces> elanInterfacesOptional = ElanUtils.read(broker, LogicalDatastoreType.CONFIGURATION,
515 elanInterfacesIdentifier);
516 if (!elanInterfacesOptional.isPresent()) {
517 return elanInterfaces;
519 List<ElanInterface> elanInterfaceList = elanInterfacesOptional.get().getElanInterface();
520 for (ElanInterface elanInterface : elanInterfaceList) {
521 if (elanInterface.getElanInstanceName().equals(elanInstanceName)) {
522 elanInterfaces.add(elanInterface.getName());
525 return elanInterfaces;
528 public boolean getGenerateIntBridgeMac() {
529 return generateIntBridgeMac;
532 public void setGenerateIntBridgeMac(boolean generateIntBridgeMac) {
533 this.generateIntBridgeMac = generateIntBridgeMac;