Wed, Aug 26, 2015 at 05:31:16PM CEST, jprochaz(a)redhat.com wrote:
This patch renames InterfaceAPI.get_ip_prefix() to
InterfaceAPI.get)prefix(),
leaves InterfaceAPI.get_ip_prefix() as an alias to InterfaceAPI.get_prefix()
and marks InterfaceAPI.get_ip_prefix() as deprecated
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/Task.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index 7306203..f3047ef 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -373,9 +373,13 @@ class InterfaceAPI(object):
def get_ip_addrs(self):
return self.get_ips()
- def get_ip_prefix(self, ip_index):
+ def get_prefix(self, ip_index):
return VolatileValue(self._if.get_prefix, ip_index)
+ @deprecated
+ def get_ip_prefix(self, ip_index):
+ return self.get_prefix(ip_index)
+
def get_mtu(self):
return VolatileValue(self._if.get_mtu)
--
2.4.3
_______________________________________________
LNST-developers mailing list
LNST-developers(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/lnst-developers
Acked-by: Jan Tluka <jtluka(a)redhat.com>