This will allow a type of setup that is being used widely where there is
a bridge with uplink port and the local VXLAN tunnel ip is set on the bridge
interface instead of directly on the uplink interface.
i.e. OpenStack users do this.
Signed-off-by: Roi Dayan <roid(a)mellanox.com>
---
lnst/Slave/NetConfigDevice.py | 2 ++
schema-recipe.rng | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lnst/Slave/NetConfigDevice.py b/lnst/Slave/NetConfigDevice.py
index 9ffa5e8..cadce06 100644
--- a/lnst/Slave/NetConfigDevice.py
+++ b/lnst/Slave/NetConfigDevice.py
@@ -470,6 +470,7 @@ class NetConfigDeviceOvsBridge(NetConfigDeviceGeneric):
def address_setup(self):
super(NetConfigDeviceOvsBridge, self).up()
+ super(NetConfigDeviceOvsBridge, self).address_setup()
int_ports = self._dev_config["ovs_conf"]["internals"]
br_name = self._dev_config["name"]
@@ -480,6 +481,7 @@ class NetConfigDeviceOvsBridge(NetConfigDeviceGeneric):
def address_cleanup(self):
super(NetConfigDeviceOvsBridge, self).down()
+ super(NetConfigDeviceOvsBridge, self).address_cleanup()
int_ports = self._dev_config["ovs_conf"]["internals"]
br_name = self._dev_config["name"]
diff --git a/schema-recipe.rng b/schema-recipe.rng
index ca06eb8..1a40a02 100644
--- a/schema-recipe.rng
+++ b/schema-recipe.rng
@@ -194,6 +194,9 @@
<optional>
<attribute name="netns"/>
</optional>
+ <optional>
+ <ref name="addresses"/>
+ </optional>
<interleave>
<optional>
--
1.7.1