From 71db4ed81a299a8f4b1947272bccb7966360f98f Mon Sep 17 00:00:00 2001 From: Hochikong Date: Mon, 23 May 2016 18:35:20 +0800 Subject: Static Route finish --- vyroute/Routing.py | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'vyroute/Routing.py') 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) + + + + + -- cgit v1.2.3