This method is used to generate the 'set Interface ...' command
to modify Interface table in the OVS database.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Devices/OvsBridgeDevice.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lnst/Devices/OvsBridgeDevice.py b/lnst/Devices/OvsBridgeDevice.py
index 044b5411..4205470e 100644
--- a/lnst/Devices/OvsBridgeDevice.py
+++ b/lnst/Devices/OvsBridgeDevice.py
@@ -42,6 +42,14 @@ class OvsBridgeDevice(SoftDevice):
return opts
+ def _interface_cmd(self, interface, options):
+ keyvalues = self._dict_to_keyvalues(options)
+ cmd = ""
+ if len(keyvalues):
+ cmd = " -- set Interface {} {}".format(interface, keyvalues)
+
+ return cmd
+
def port_add(self, dev, **kwargs):
options = ""
for opt_name, opt_value in kwargs.items():
--
2.21.1