Expose route API to external use.
Signed-off-by: Elad Raz <eladr(a)mellanox.com>
---
lnst/Controller/Task.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
index 9be2d14..75c1caa 100644
--- a/lnst/Controller/Task.py
+++ b/lnst/Controller/Task.py
@@ -619,6 +619,18 @@ class InterfaceAPI(object):
def set_addresses(self, ips):
self._if.set_addresses(ips)
+ def add_route(self, dest, ipv6 = False):
+ self._if.add_route(dest, ipv6)
+
+ def add_nhs_route(self, dest, nhs, ipv6 = False):
+ self._if.add_nhs_route(dest, nhs, ipv6)
+
+ def del_route(self, dest, ipv6 = False):
+ self._if.del_route(dest, ipv6)
+
+ def del_nhs_route(self, dest, nhs, ipv6 = False):
+ self._if.del_nhs_route(dest, nhs, ipv6)
+
def enable_multicast(self):
self._if.add_route("224.0.0.0/4", False)
--
2.4.3