hack to make wan_network allocate the same mac that we're passing to vbng
diff --git a/xos/openstack_observer/steps/sync_container.py b/xos/openstack_observer/steps/sync_container.py
index f83da02..272e5f8 100644
--- a/xos/openstack_observer/steps/sync_container.py
+++ b/xos/openstack_observer/steps/sync_container.py
@@ -63,6 +63,12 @@
pd["ip"] = port.ip or ""
pd["xos_network_id"] = port.network.id
+ if port.network.name == "wan_network":
+ if port.ip:
+ (a, b, c, d) = port.ip.split('.')
+ pd["mac"] = "02:42:%02x:%02x:%02x:%02x" % (int(a), int(b), int(c), int(d))
+
+
if o.isolation == "container":
# container on bare metal
instance_port = self.get_instance_port(port)