X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Finternal%2FInventoryServiceHelper.java;h=5e5f056c5aba0002a8cb1e3178ca9d1dddf842c3;hb=024912bcf6b5c303ee6d4e87b163ff36bb5d806e;hp=33afa9463338d7168458b1618edbac2acd6438b8;hpb=59cc8f34c24d81a8890a94c11dedd4b21caa0adf;p=controller.git diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/InventoryServiceHelper.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/InventoryServiceHelper.java index 33afa94633..5e5f056c5a 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/InventoryServiceHelper.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/internal/InventoryServiceHelper.java @@ -108,27 +108,27 @@ public class InventoryServiceHelper { if (bw != null) { props.add(bw); } - + Bandwidth abw = InventoryServiceHelper.OFPortToBandWidth(port.getAdvertisedFeatures()); if (abw != null) { - AdvertisedBandwidth a = new AdvertisedBandwidth(abw.getValue()); - if (a != null) { - props.add(a); - } + AdvertisedBandwidth a = new AdvertisedBandwidth(abw.getValue()); + if (a != null) { + props.add(a); + } } Bandwidth sbw = InventoryServiceHelper.OFPortToBandWidth(port.getSupportedFeatures()); if (sbw != null) { - SupportedBandwidth s = new SupportedBandwidth(sbw.getValue()); - if (s != null) { - props.add(s); - } + SupportedBandwidth s = new SupportedBandwidth(sbw.getValue()); + if (s != null) { + props.add(s); + } } Bandwidth pbw = InventoryServiceHelper.OFPortToBandWidth(port.getPeerFeatures()); if (pbw != null) { - PeerBandwidth p = new PeerBandwidth(pbw.getValue()); - if (p != null) { - props.add(p); - } + PeerBandwidth p = new PeerBandwidth(pbw.getValue()); + if (p != null) { + props.add(p); + } } props.add(new Name(port.getName())); props.add(InventoryServiceHelper.OFPortToConfig(port.getConfig()));