X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=natservice%2Fimpl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetvirt%2Fnatservice%2Fcli%2FDisplayNaptSwithcesCli.java;h=ae3d1d94acc03584d747ccf0d94bfa4207e5e0ba;hb=cf1ea9172b94fc17e45391b62bf4ca24ac5c5fe0;hp=894031fca561b253e3bfed5412bffa262a462a02;hpb=84a7d0a360f0d5f9b588e269840a92158d1be7d2;p=netvirt.git diff --git a/natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/cli/DisplayNaptSwithcesCli.java b/natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/cli/DisplayNaptSwithcesCli.java index 894031fca5..ae3d1d94ac 100644 --- a/natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/cli/DisplayNaptSwithcesCli.java +++ b/natservice/impl/src/main/java/org/opendaylight/netvirt/natservice/cli/DisplayNaptSwithcesCli.java @@ -48,7 +48,7 @@ public class DisplayNaptSwithcesCli extends OsgiCommandSupport { ps.printf(String.format(" %-36s %-20s %-20s %n", "Router Id ", "Datapath Node Id", "Managment Ip Address")); ps.printf("-------------------------------------------------------------------------------------------%n"); if (npatSwitches.isPresent()) { - for (RouterToNaptSwitch routerToNaptSwitch : npatSwitches.get().nonnullRouterToNaptSwitch()) { + for (RouterToNaptSwitch routerToNaptSwitch : npatSwitches.get().nonnullRouterToNaptSwitch().values()) { ps.printf(String.format(" %-36s %-20s %-20s %n", routerToNaptSwitch.getRouterName(), routerToNaptSwitch.getPrimarySwitchId(), getDpnLocalIp(routerToNaptSwitch.getPrimarySwitchId().toJava()))); @@ -92,7 +92,7 @@ public class DisplayNaptSwithcesCli extends OsgiCommandSupport { } if (ovsdbNode != null && ovsdbNode.getOpenvswitchOtherConfigs() != null) { - for (OpenvswitchOtherConfigs openvswitchOtherConfigs : ovsdbNode.getOpenvswitchOtherConfigs()) { + for (OpenvswitchOtherConfigs openvswitchOtherConfigs : ovsdbNode.getOpenvswitchOtherConfigs().values()) { if (key.equals(openvswitchOtherConfigs.getOtherConfigKey())) { return openvswitchOtherConfigs.getOtherConfigValue(); }