本文整理汇总了Python中mininet.node.OVSSwitch.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python OVSSwitch.__init__方法的具体用法?Python OVSSwitch.__init__怎么用?Python OVSSwitch.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mininet.node.OVSSwitch
的用法示例。
在下文中一共展示了OVSSwitch.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__( self, *args, **kwargs ):
kwargs.update( datapath='user' )
OVSSwitch.__init__( self, *args, **kwargs )
示例2: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__( self, name, *args, **params ):
params['protocols'] = 'OpenFlow13'
OVSSwitch.__init__( self, name, *args, **params )
示例3: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__(self, name, **params):
OVSSwitch.__init__(self, name=name, datapath="kernel", **params)
示例4: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__(self, name, vtep, **params):
self.vtep = vtep
OVSSwitch.__init__(self, name, **params)
示例5: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__(self, name, **params):
OVSSwitch.__init__(self, name, failMode='standalone', **params)
示例6: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__(self, name, reliability=1.0, **params):
OVSSwitch.__init__(self, name, failMode='secure', datapath='kernel', inband=False, protocols=None, **params)
self.reliability = reliability
self._online = True
self.cmd("sysctl -w net.ipv6.conf.all.disable_ipv6=1")
self.cmd("sysctl -w net.ipv6.conf.default.disable_ipv6=1")
示例7: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__(self, name, dpid, *args, **kwargs):
OVSSwitch.__init__(self, name, dpid=dpid, *args, **kwargs)
示例8: __init__
# 需要导入模块: from mininet.node import OVSSwitch [as 别名]
# 或者: from mininet.node.OVSSwitch import __init__ [as 别名]
def __init__(self, name, failMode='secure', datapath='kernel', **params):
OVSSwitch.__init__(self, name, failMode=failMode, datapath=datapath, **params)
self.openFlowVersions = []
self.switchIP = None