问题描述
希望使用自己的cpqd交换机,在命令行的参数中使用的时候是
sudo mn --custom ./li2_topo.py --topo litopo --controller=remote,ip=127.0.0.1,port=6633 --switch=user
现在希望在文件中写好,调用Mininet的python api
写成了
net = Mininet(topo=topo, link=TCLink, controller=None, autoSetMacs=False,
autoStaticArp=False,switch=user)
但是报错user未定义,自己猜测是没有引入user这个变量,需要import