- private void setControllersForBridge(Node ovsdbNode, String bridgeName, List<String> controllersString) {
- ConnectionInfo connectionInfo = getConnectionInfo(ovsdbNode);
- if (connectionInfo != null) {
- for (ControllerEntry controllerEntry : createControllerEntries(controllersString)) {
- InstanceIdentifier<ControllerEntry> iid =
- MdsalHelper.createInstanceIdentifier(ovsdbNode.getKey(), bridgeName)
- .augmentation(OvsdbBridgeAugmentation.class)
- .child(ControllerEntry.class, controllerEntry.getKey());
-
- boolean result = mdsalUtils.put(LogicalDatastoreType.CONFIGURATION, iid, controllerEntry);
- LOG.info("addController: result: {}", result);
- }
- }
- }
-