Revision 163a66c6

View differences:

mininet/node.py
1090 1090
class IVSSwitch(Switch):
1091 1091
    """IVS virtual switch"""
1092 1092

  
1093
    def __init__( self, name, **kwargs ):
1093
    def __init__( self, name, verbose=True, **kwargs ):
1094 1094
        Switch.__init__( self, name, **kwargs )
1095
        self.verbose = verbose
1095 1096

  
1096 1097
    @classmethod
1097 1098
    def setup( cls ):
......
1111 1112
        args = ['ivs']
1112 1113
        args.extend( ['--name', self.name] )
1113 1114
        args.extend( ['--dpid', self.dpid] )
1114
        args.extend( ['--verbose'] )
1115
        if self.verbose:
1116
            args.extend( ['--verbose'] )
1115 1117
        for intf in self.intfs.values():
1116 1118
            if not intf.IP():
1117 1119
                args.extend( ['-i', intf.name] )

Also available in: Unified diff