Revision 376bcba4 bin/mn_run.py

View differences:

bin/mn_run.py
99 99
                        help = '[' + ' '.join(TESTS) + ']')
100 100
        opts.add_option('--xterms', '-x', action = 'store_true',
101 101
                        default = False, help = 'spawn xterms for each node')
102
        opts.add_option('--mac', action = 'store_true',
103
                        default = False, help = 'set host MACs equal to DPIDs')
104
        opts.add_option('--arp', action = 'store_true',
105
                        default = False, help = 'set all-pairs ARP entries')
102 106
        opts.add_option('--verbosity', '-v', type = 'choice',
103 107
                        choices = LEVELS.keys(), default = 'info',
104 108
                        help = '[' + ' '.join(LEVELS.keys()) + ']')
......
131 135

  
132 136
        controller_params = ControllerParams(0x0a000000, 8) # 10.0.0.0/8
133 137
        xterms = self.options.xterms
138
        mac = self.options.mac
139
        arp = self.options.arp
134 140
        mn = Mininet(topo, switch, host, controller, controller_params,
135
                     xterms = xterms)
141
                     xterms = xterms, auto_set_macs = mac,
142
                     auto_static_arp = arp)
136 143

  
137 144
        test = self.options.test
138 145
        if test != 'build':

Also available in: Unified diff