add hostManagementIface to autogeneration
Change-Id: Ibecd39d3c58cabb03eb4ec0e5daaec0a9b66e022
diff --git a/xos/synchronizer/steps/sync_onos_netcfg.py b/xos/synchronizer/steps/sync_onos_netcfg.py
index e12e242..7e76cc9 100644
--- a/xos/synchronizer/steps/sync_onos_netcfg.py
+++ b/xos/synchronizer/steps/sync_onos_netcfg.py
@@ -119,6 +119,13 @@
"dataPlaneIntf": dataPlaneIntf,
"dataPlaneIp": dataPlaneIp
}
+
+ # this one is optional
+ try:
+ node_dict["hostManagementIface"] = self.get_node_tag(node, "hostManagementIface")
+ except IndexError:
+ pass
+
data["apps"]["org.opencord.vtn"]["cordvtn"]["nodes"].append(node_dict)
# Generate apps->org.onosproject.cordvtn->cordvtn->publicGateways