use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.LocalMcastMacs in project netvirt by opendaylight.
the class NetworkL2gwDeviceInfoCli method printLocalMcastMacs.
@SuppressWarnings("checkstyle:HiddenField")
void printLocalMcastMacs(Node hwvtepNode, String elanName) {
session.getConsole().println("LocalMcast macs :");
session.getConsole().println(HEADINGMCAST);
if (hwvtepNode == null || hwvtepNode.getAugmentation(HwvtepGlobalAugmentation.class) == null) {
return;
}
List<LocalMcastMacs> localMcastMacs = hwvtepNode.getAugmentation(HwvtepGlobalAugmentation.class).getLocalMcastMacs();
if (localMcastMacs == null || localMcastMacs.isEmpty()) {
return;
}
for (LocalMcastMacs localMac : localMcastMacs) {
String lsFromLocalMac = getLogicalSwitchValue(localMac.getLogicalSwitchRef());
if (elanName.equals(lsFromLocalMac)) {
String mac = localMac.getMacEntryKey().getValue();
List<String> locatorsets = new ArrayList<>();
for (LocatorSet locatorSet : localMac.getLocatorSet()) {
locatorsets.add(getLocatorValue(locatorSet.getLocatorRef()));
}
session.getConsole().println(mac + GAP + locatorsets.toString());
}
}
}
Aggregations