type string;
mandatory true;
}
- }
+ }
+
+ list bridge-other-configs {
+ description "Other config attributes for Bridges";
+ key "bridge-other-config-key";
+ leaf bridge-other-config-key {
+ description "bridge-other-config name/key";
+ type string;
+ }
+ leaf bridge-other-config-value {
+ description "bridge-other-config value";
+ type string;
+ }
+ }
+
}
grouping ovsdb-node-attributes {
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbNodeRef;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.bridge.attributes.BridgeExternalIds;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.bridge.attributes.BridgeExternalIdsBuilder;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.bridge.attributes.BridgeOtherConfigs;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.bridge.attributes.BridgeOtherConfigsBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.ManagedNodeEntry;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.ManagedNodeEntryBuilder;
import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
ovsdbManagedNodeBuilder.setBridgeExternalIds(externalIdsList);
}
+ Map<String, String> otherConfigs = bridge
+ .getOtherConfigColumn().getData();
+ if (otherConfigs != null && !otherConfigs.isEmpty()) {
+ Set<String> otherConfigKeys = otherConfigs.keySet();
+ List<BridgeOtherConfigs> otherConfigList = new ArrayList<BridgeOtherConfigs>();
+ String otherConfigValue;
+ for (String otherConfigKey : otherConfigKeys) {
+ otherConfigValue = otherConfigs.get(otherConfigKey);
+ if (otherConfigKey != null && otherConfigValue != null) {
+ otherConfigList.add(new BridgeOtherConfigsBuilder()
+ .setBridgeOtherConfigKey(otherConfigKey)
+ .setBridgeOtherConfigValue(otherConfigValue)
+ .build());
+ }
+ }
+ ovsdbManagedNodeBuilder.setBridgeOtherConfigs(otherConfigList);
+ }
+
if (!SouthboundMapper.createControllerEntries(bridge, updatedControllerRows).isEmpty()) {
ovsdbManagedNodeBuilder.setControllerEntry(
SouthboundMapper.createControllerEntries(bridge, updatedControllerRows));