示例#1
0
 def parseArgs(self):
     opts = OptionParser()
     addDictOption(opts, SWITCHES, SWITCHDEF, 'switch')
     addDictOption(opts, CONTROLLERS, CONTROLLERDEF, 'controller')
     addDictOption(opts, CREATE_EDGE, CREATE_EDGE_DEF, 'create_edge')
     addDictOption(opts, CREATE_SRS, CREATE_SRS_DEF, 'create_srs')
     self.options, self.args = opts.parse_args()
示例#2
0
文件: FlowlogMN.py 项目: 8472/FlowLog
 def parseArgs(self):
     opts = OptionParser()
     addDictOption(opts, SWITCHES, SWITCHDEF, 'switch')
     addDictOption(opts, CONTROLLERS, CONTROLLERDEF, 'controller')
     addDictOption(opts, CREATE_EDGE, CREATE_EDGE_DEF, 'create_edge')
     addDictOption(opts, CREATE_SRS, CREATE_SRS_DEF, 'create_srs')
     self.options, self.args = opts.parse_args()
示例#3
0
文件: NatMN.py 项目: wxdublin/FlowLog
 def parseArgs(self):
     opts = OptionParser()
     addDictOption(opts, SWITCHES, SWITCHDEF, 'switch')
     addDictOption(opts, CONTROLLERS, CONTROLLERDEF, 'controller')
     self.options, self.args = opts.parse_args()
示例#4
0
文件: NatMN.py 项目: 0xdyu/Flowlog
 def parseArgs(self):
     opts = OptionParser()
     addDictOption(opts, SWITCHES, SWITCHDEF, 'switch')
     addDictOption(opts, CONTROLLERS, CONTROLLERDEF, 'controller')
     self.options, self.args = opts.parse_args()