Revision history [back]

How do I programatically load new switches into ODL so they are visible in the console

I'm trying to programatically create switches in a custom plugin that loads some set inventory so it is visible in the ODL console. The code doing the work makes use of the switch manager service as follows:

try {
Node node = new Node(Node.NodeIDType.OPENFLOW, Long.valueOf(1L));
Switch newSwitch = new Switch(node);