X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fstub%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugins%2Fstub%2Finternal%2FInventoryService.java;h=b3909a775bbe36156fa127e9b54841f02556a40e;hp=64d4fc167597e39e2ca479ad5984221071ed346a;hb=eb9e1983a0fce7e4a381eff33e40cae957cddf53;hpb=771dea2b9c38cd8bd74ef56ecbdbe6143b60cecf diff --git a/opendaylight/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/InventoryService.java b/opendaylight/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/InventoryService.java index 64d4fc1675..b3909a775b 100644 --- a/opendaylight/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/InventoryService.java +++ b/opendaylight/protocol_plugins/stub/src/main/java/org/opendaylight/controller/protocol_plugins/stub/internal/InventoryService.java @@ -112,9 +112,24 @@ public class InventoryService implements IPluginInInventoryService { node = new Node("STUB", new Integer(0xCAFE)); }catch(ConstructionException e){ node = null; - } - + } + + nodeProps.put(node, propMap); + + try{ + node = new Node("STUB", 3366); + }catch(ConstructionException e){ + node = null; + } nodeProps.put(node, propMap); + + try{ + node = new Node("STUB", 4477); + }catch(ConstructionException e){ + node = null; + } + nodeProps.put(node, propMap); + return nodeProps; } @@ -146,7 +161,26 @@ public class InventoryService implements IPluginInInventoryService { node = null; } nodeConnectorProps.put(nc, ncPropMap); - return nodeConnectorProps; + + try{ + node = new Node("STUB", 3366); + nc = new NodeConnector("STUB", 12, node); + } catch(ConstructionException e){ + nc = null; + node = null; + } + nodeConnectorProps.put(nc, ncPropMap); + + try{ + node = new Node("STUB", 4477); + nc = new NodeConnector("STUB", 34, node); + }catch(ConstructionException e){ + nc = null; + node = null; + } + nodeConnectorProps.put(nc, ncPropMap); + + return nodeConnectorProps; }