summaryrefslogtreecommitdiff
path: root/vyroute/Routing.py
diff options
context:
space:
mode:
authorHochikong <michellehzg@gmail.com>2016-05-23 18:35:20 +0800
committerHochikong <michellehzg@gmail.com>2016-05-23 18:35:20 +0800
commit71db4ed81a299a8f4b1947272bccb7966360f98f (patch)
tree03055562aa9f38754ccf4b411d849af9f679ba64 /vyroute/Routing.py
parentdc421a89e7857da239d512755aa773fa698ae4ac (diff)
downloadpython-vyos-mgmt-71db4ed81a299a8f4b1947272bccb7966360f98f.tar.gz
python-vyos-mgmt-71db4ed81a299a8f4b1947272bccb7966360f98f.zip
Static Route finish
Diffstat (limited to 'vyroute/Routing.py')
-rw-r--r--vyroute/Routing.py31
1 files changed, 30 insertions, 1 deletions
diff --git a/vyroute/Routing.py b/vyroute/Routing.py
index f82ec49..7d952b6 100644
--- a/vyroute/Routing.py
+++ b/vyroute/Routing.py
@@ -1 +1,30 @@
-# author=hochikong \ No newline at end of file
+# author=hochikong
+import StaticRoute
+
+
+class BasicRouting(object):
+ def static_routing(self):
+ pass
+
+ def rip_routing(self):
+ pass
+
+ def ospf_routing(self):
+ 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)
+
+
+
+
+