@Test public void testSetOption() { List<Options> options = new ArrayList<>(); OvsdbHelper.setOption(options, KEY_1, VALUE_1); assertEquals(1, options.size()); Options option = options.get(0); assertNotNull(option); assertEquals(KEY_1, option.getOption()); assertEquals(KEY_1, option.getKey().getOption()); assertEquals(VALUE_1, option.getValue()); OvsdbHelper.setOption(options, KEY_2, VALUE_2); assertEquals(2, options.size()); option = options.get(0); assertNotNull(option); assertEquals(KEY_1, option.getOption()); assertEquals(KEY_1, option.getKey().getOption()); assertEquals(VALUE_1, option.getValue()); option = options.get(1); assertNotNull(option); assertEquals(KEY_2, option.getOption()); assertEquals(KEY_2, option.getKey().getOption()); assertEquals(VALUE_2, option.getValue()); }
public static void setOption(List<Options> options, String key, String value) { OptionsBuilder option = new OptionsBuilder(); option.setOption(key); option.setValue(value); options.add(option.build()); }
OvsdbHelper { public static void setOption(List<Options> options, String key, String value) { OptionsBuilder option = new OptionsBuilder(); option.setOption(key); option.setValue(value); options.add(option.build()); } }
OvsdbHelper { public static void setOption(List<Options> options, String key, String value) { OptionsBuilder option = new OptionsBuilder(); option.setOption(key); option.setValue(value); options.add(option.build()); }  }
OvsdbHelper { public static void setOption(List<Options> options, String key, String value) { OptionsBuilder option = new OptionsBuilder(); option.setOption(key); option.setValue(value); options.add(option.build()); }  static OvsdbBridgeAugmentation getOvsdbBridgeFromTerminationPoint(
            InstanceIdentifier<OvsdbTerminationPointAugmentation> tpIid, DataBroker dataBroker); static Node getNodeFromBridgeRef(OvsdbBridgeRef bridgeRef, DataBroker dataBroker); static OvsdbTerminationPointAugmentation getOvsdbTerminationPoint(
            InstanceIdentifier<OvsdbTerminationPointAugmentation> tpIid, DataBroker dataBroker); static Node getNode(Node node, List<TerminationPoint> tps,
            OvsdbBridgeAugmentation ovsdbBridgeAugmentation); static OvsdbBridgeAugmentation buildOvsdbBridgeAugmentation(OvsdbBridgeAugmentation bridge,
            OvsdbNodeAugmentation ovsdbNode); static List<TerminationPoint> buildTerminationPoints(OvsdbBridgeAugmentation bridge,
            OvsdbTerminationPointAugmentation ovsdbTp, AbstractTunnelType tunnelType); static String generateTpName(OvsdbBridgeAugmentation bridge, AbstractTunnelType tunnelType); static OvsdbTerminationPointAugmentation buildOvsdbTerminationPointAugmentation(
            OvsdbBridgeAugmentation bridge, List<Options> options, AbstractTunnelType tunnelType); static void setOption(List<Options> options, String key, String value); static IpAddress getManagerIp(OvsdbNodeAugmentation ovsdbNode); static IpAddress getNodeIp(OvsdbNodeAugmentation ovsdbNode); static List<ControllerEntry> buildControllerEntries(IpAddress ip); static OvsdbNodeAugmentation getManagerNode(OvsdbBridgeAugmentation bridge, DataBroker dataBroker); static Node getTopologyNode(InstanceIdentifier<Node> nodeIid, DataBroker dataBroker); static void createTunnelPort(InstanceIdentifier<Node> nodeIid,
            Node node, AbstractTunnelType tunnelType, DataBroker dataBroker); }
OvsdbHelper { public static void setOption(List<Options> options, String key, String value) { OptionsBuilder option = new OptionsBuilder(); option.setOption(key); option.setValue(value); options.add(option.build()); }  static OvsdbBridgeAugmentation getOvsdbBridgeFromTerminationPoint(
            InstanceIdentifier<OvsdbTerminationPointAugmentation> tpIid, DataBroker dataBroker); static Node getNodeFromBridgeRef(OvsdbBridgeRef bridgeRef, DataBroker dataBroker); static OvsdbTerminationPointAugmentation getOvsdbTerminationPoint(
            InstanceIdentifier<OvsdbTerminationPointAugmentation> tpIid, DataBroker dataBroker); static Node getNode(Node node, List<TerminationPoint> tps,
            OvsdbBridgeAugmentation ovsdbBridgeAugmentation); static OvsdbBridgeAugmentation buildOvsdbBridgeAugmentation(OvsdbBridgeAugmentation bridge,
            OvsdbNodeAugmentation ovsdbNode); static List<TerminationPoint> buildTerminationPoints(OvsdbBridgeAugmentation bridge,
            OvsdbTerminationPointAugmentation ovsdbTp, AbstractTunnelType tunnelType); static String generateTpName(OvsdbBridgeAugmentation bridge, AbstractTunnelType tunnelType); static OvsdbTerminationPointAugmentation buildOvsdbTerminationPointAugmentation(
            OvsdbBridgeAugmentation bridge, List<Options> options, AbstractTunnelType tunnelType); static void setOption(List<Options> options, String key, String value); static IpAddress getManagerIp(OvsdbNodeAugmentation ovsdbNode); static IpAddress getNodeIp(OvsdbNodeAugmentation ovsdbNode); static List<ControllerEntry> buildControllerEntries(IpAddress ip); static OvsdbNodeAugmentation getManagerNode(OvsdbBridgeAugmentation bridge, DataBroker dataBroker); static Node getTopologyNode(InstanceIdentifier<Node> nodeIid, DataBroker dataBroker); static void createTunnelPort(InstanceIdentifier<Node> nodeIid,
            Node node, AbstractTunnelType tunnelType, DataBroker dataBroker);  }