Wed, Aug 19, 2015 at 08:42:41AM CEST, jprochaz(a)redhat.com wrote:
This method is redundant, since we have the same method from
InterfaceAPI
Can we do this? This breaks existing recipes for people.
Also, this patch should be the last on, in case to avoid bisection
breakage.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
lnst/Controller/Task.py | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index 0d437f3..fdf4a0e 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -285,22 +285,6 @@ class HostAPI(object):
iface = self._interfaces[interface_id]
return iface.get_hwaddr()
- def get_ip(self, interface_id, addr_number=0):
- """
- Returns an IP address of the interface.
-
- :param interface_id: which interface
- :type interface_id: string
-
- :param interface_id: which address
- :type interface_id: int
-
- :return: IP address (e.g., 192.168.1.10).
- :rtype: str
- """
- iface = self._interfaces[interface_id]
- return iface.get_ip_addr(addr_number)
-
def get_prefix(self, interface_id, addr_number=0):
"""
Returns an IP address prefix (netmask)
--
2.4.3
_______________________________________________
LNST-developers mailing list
LNST-developers(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/lnst-developers