[prev in list] [next in list] [prev in thread] [next in thread]
List: lnst-developers
Subject: [PATCH lnst 6/8] InterfaceAPI: Export route commands
From: Elad Raz <e () eladraz ! com>
Date: 2016-08-29 8:14:42
Message-ID: 1472458484-5386-7-git-send-email-e () eladraz ! com
[Download RAW message or body]
Expose route API to external use.
Signed-off-by: Elad Raz <eladr@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
_______________________________________________
LNST-developers mailing list
lnst-developers@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/lnst-developers@lists.fedorahosted.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic