Tap-bridge example 'tap-wifi-virtual-machine.py' error found.
I was trying to use the tap-bridge. When running tap-wifi-virtual-machine.py, an error raised.
Copy this file to scratch/
dir, then run it.
root@ubuntu:/ns3/ns-allinone-3.33/ns-3.33# ./waf --pyrun scratch/tap-wifi-virtual-machine.py
Traceback (most recent call last):
File "scratch/tap-wifi-virtual-machine.py", line 113, in <module>
sys.exit(main(sys.argv))
File "scratch/tap-wifi-virtual-machine.py", line 64, in main
wifiPhy = ns.wifi.YansWifiPhyHelper.Default()
AttributeError: type object 'wifi.YansWifiPhyHelper' has no attribute 'Default'
This error refer to Line 64.
Just delete the .Default
will fix the error.
wifiPhy = ns.wifi.YansWifiPhyHelper.Default()
---->
wifiPhy = ns.wifi.YansWifiPhyHelper()
Hope this help.