name: name for switch failMode: controller loss behavior (secure|standalone) datapath: userspace or kernel mode (kernel|user) inband: use in-band control (False) protocols: use specific OpenFlow version(s) (e.g. OpenFlow13) Unspecifie
( self, name, failMode='secure', datapath='kernel',
inband=False, protocols=None,
reconnectms=1000, stp=False, batch=False, **params )
| 1091 | "Open vSwitch switch. Depends on ovs-vsctl." |
| 1092 | |
| 1093 | def __init__( self, name, failMode='secure', datapath='kernel', |
| 1094 | inband=False, protocols=None, |
| 1095 | reconnectms=1000, stp=False, batch=False, **params ): |
| 1096 | """name: name for switch |
| 1097 | failMode: controller loss behavior (secure|standalone) |
| 1098 | datapath: userspace or kernel mode (kernel|user) |
| 1099 | inband: use in-band control (False) |
| 1100 | protocols: use specific OpenFlow version(s) (e.g. OpenFlow13) |
| 1101 | Unspecified (or old OVS version) uses OVS default |
| 1102 | reconnectms: max reconnect timeout in ms (0/None for default) |
| 1103 | stp: enable STP (False, requires failMode=standalone) |
| 1104 | batch: enable batch startup (False)""" |
| 1105 | Switch.__init__( self, name, **params ) |
| 1106 | self.failMode = failMode |
| 1107 | self.datapath = datapath |
| 1108 | self.inband = inband |
| 1109 | self.protocols = protocols |
| 1110 | self.reconnectms = reconnectms |
| 1111 | self.stp = stp |
| 1112 | self._uuids = [] # controller UUIDs |
| 1113 | self.batch = batch |
| 1114 | self.commands = [] # saved commands for batch startup |
| 1115 | |
| 1116 | @classmethod |
| 1117 | def setup( cls ): |