示例#1
0
	def __init__(self, name, path=None, **kwargs):
		Ryu.__init__(self, name, path, **kwargs)
		self.popenTerms = []
示例#2
0
 def __init__(self, port=6653):
     print("Creat")
     args = '--observe-links '
     app = 'ryu.app.ryu_anon ryu.app.gui_topology.gui_topology'
     ryu_args = args + ' ' + app
     Ryu.__init__(self, 'ryu', ryu_args, port=port)
示例#3
0
 def __init__(self, port=6633, rest_port=8080):
     args = '--observe-links'
     apps = 'ryu.app.simple_switch_13 ryu.app.gui_topology.gui_topology'
     ryu_args = args + ' ' + apps
     Ryu.__init__(self, 'ryu', ryu_args, port=port)
     self.url = 'http://localhost:%d' % rest_port