commit b243f102169945ec168306ae8eac1ddd0d0a2c78
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Tue Aug 6 13:41:03 2013 +0200
ctl: Slight change of the interface of Interface
The options are now stored in a different way on the controller. This
patch changes the interface for setting them to the Interface objects
so it is more straight-forward.
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/Machine.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py
index 1847adf..8fd8a40 100644
--- a/lnst/Controller/Machine.py
+++ b/lnst/Controller/Machine.py
@@ -366,11 +366,8 @@ class Interface(object):
def add_slave(self, iface):
self._slaves[iface.get_id()] = iface
- def set_slave_options(self, slave_options):
- self._slave_options = slave_options
-
- def get_slave_options(self):
- return self._slave_options
+ def set_slave_option(self, slave_id, name, value):
+ self._slave_options[slave_id] = (name, value)
def add_address(self, addr):
self._addresses.append(addr)
Show replies by date