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()
def parseArgs(self): opts = OptionParser() addDictOption(opts, SWITCHES, SWITCHDEF, 'switch') addDictOption(opts, CONTROLLERS, CONTROLLERDEF, 'controller') self.options, self.args = opts.parse_args()