Revision 00803bcd mininet/node.py

View differences:

mininet/node.py
1076 1076
            self.cmd( 'ovs-vsctl add-br', self )
1077 1077
            for intf in self.intfList():
1078 1078
                if not intf.IP():
1079
                    self.cmd('ovs-vsctl add-port', self, intf )
1080
            cmd = ('ovs-vsctl set Bridge %s ' % self +
1081
                'other_config:datapath-id=%s ' % self.dpid +
1082
                '-- set-fail-mode %s %s ' % ( self, self.failMode ) +
1083
                '-- set-controller %s %s ' % ( self, clist ) )
1079
                    self.cmd( 'ovs-vsctl add-port', self, intf )
1080
            cmd = ( 'ovs-vsctl set Bridge %s ' % self +
1081
                    'other_config:datapath-id=%s ' % self.dpid +
1082
                    '-- set-fail-mode %s %s ' % ( self, self.failMode ) +
1083
                    '-- set-controller %s %s ' % ( self, clist ) )
1084 1084
        if not self.inband:
1085 1085
            cmd += ( '-- set bridge %s '
1086 1086
                     'other-config:disable-in-band=true ' % self )
1087 1087
        if self.datapath == 'user':
1088
            cmd +=  '-- set bridge %s datapath_type=netdev ' % self
1088
            cmd += '-- set bridge %s datapath_type=netdev ' % self
1089 1089
        # Reconnect quickly to controllers (1s vs. 15s max_backoff)
1090 1090
        for uuid in self.controllerUUIDs():
1091 1091
            if uuid.count( '-' ) != 4:

Also available in: Unified diff