This patch is still valid and should be applied before Add deprecated
decorator patchset
Please review, ack and push this before the above mentioned patchset
Thanks
Best regards,
Jiri Prochazka
LNST Developer
|
www.lnst-project.org
+420 532 294 633 | jprochaz(a)redhat.com
Red Hat Czech | Purkyňova 71/99, 612 00 Brno
2015-08-24 16:28 GMT+02:00 Jiri Prochazka <jprochaz(a)redhat.com>:
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/Task.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index 0d437f3..4d0908d 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -355,12 +355,18 @@ class InterfaceAPI(object):
def get_hwaddr(self):
return VolatileValue(self._if.get_hwaddr)
- def get_ip_addr(self, ip_index):
+ def get_ip(self, ip_index):
return VolatileValue(self._if.get_address, ip_index)
- def get_ip_addrs(self):
+ def get_ips(self):
return VolatileValue(self._if.get_addresses)
+ def get_ip_addr(self, ip_index):
+ return self.get_ip(ip_index)
+
+ def get_ip_addrs(self):
+ return self.get_ips()
+
def get_ip_prefix(self, ip_index):
return VolatileValue(self._if.get_prefix, ip_index)
--
2.4.3