summaryrefslogtreecommitdiff
path: root/vyroute/Routing.py
diff options
context:
space:
mode:
Diffstat (limited to 'vyroute/Routing.py')
-rw-r--r--vyroute/Routing.py21
1 files changed, 10 insertions, 11 deletions
diff --git a/vyroute/Routing.py b/vyroute/Routing.py
index 7d952b6..8c1ec11 100644
--- a/vyroute/Routing.py
+++ b/vyroute/Routing.py
@@ -1,29 +1,28 @@
# author=hochikong
-import StaticRoute
+from vyroute.basic_function import RIPRoute
+from vyroute.basic_function import StaticRoute
class BasicRouting(object):
- def static_routing(self):
+ def static_routing(self,data):
pass
- def rip_routing(self):
+ def rip_routing(self,data):
pass
- def ospf_routing(self):
+ def ospf_routing(self,data):
pass
class Routing(BasicRouting):
- def __init__(self, datafile):
- """Initial member self.file.
-
- :param datafile: a string
- """
- self.file = datafile
-
def static_routing(self, data):
return StaticRoute.staticroute(data)
+ def rip_routing(self,data):
+ return RIPRoute.riproute(data)
+
+
+