How to use vlan_learning.py,
"Is it due to incorrect environment variables in my environment?"
`
./vlan_learning.py
Traceback (most recent call last):
File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/./vlan_learning.py", line 79, in
sim.start()
File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/./vlan_learning.py", line 37, in start
self._create_ns("worker%d" % i, cmd=cmd, fn=virt_fn, action="drop",
File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/simulation.py", line 107, in _create_ns
(ns_ipdb, out_ifc, in_ifc) = self._ns_add_ifc(name, "eth0", name, in_ifc, out_ifc,
File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/simulation.py", line 96, in _ns_add_ifc
self.ipdb.nl.tc("add", "ingress", out_ifc["index"], "ffff:")
File "/usr/local/lib/python3.10/dist-packages/pyroute2/iproute/linux.py", line 1889, in tc
return tuple(self.nlm_request(msg, msg_type=command, msg_flags=flags))
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 822, in nlm_request
return tuple(self._genlm_request(*argv, *kwarg))
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 1129, in nlm_request
for msg in self.get(
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 825, in get
return tuple(self._genlm_get(argv, **kwarg))
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 489, in get
raise msg['header']['error']
pyroute2.netlink.exceptions.NetlinkError: (2, 'No such file or directory')
`
How to use vlan_learning.py, "Is it due to incorrect environment variables in my environment?"
` ./vlan_learning.py
Traceback (most recent call last): File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/./vlan_learning.py", line 79, in
sim.start()
File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/./vlan_learning.py", line 37, in start
self._create_ns("worker%d" % i, cmd=cmd, fn=virt_fn, action="drop",
File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/simulation.py", line 107, in _create_ns
(ns_ipdb, out_ifc, in_ifc) = self._ns_add_ifc(name, "eth0", name, in_ifc, out_ifc,
File "/home/ecarx/work/trace/bcc/examples/networking/vlan_learning/simulation.py", line 96, in _ns_add_ifc
self.ipdb.nl.tc("add", "ingress", out_ifc["index"], "ffff:")
File "/usr/local/lib/python3.10/dist-packages/pyroute2/iproute/linux.py", line 1889, in tc
return tuple(self.nlm_request(msg, msg_type=command, msg_flags=flags))
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 822, in nlm_request
return tuple(self._genlm_request(*argv, *kwarg))
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 1129, in nlm_request
for msg in self.get(
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 825, in get
return tuple(self._genlm_get(argv, **kwarg))
File "/usr/local/lib/python3.10/dist-packages/pyroute2/netlink/nlsocket.py", line 489, in get
raise msg['header']['error']
pyroute2.netlink.exceptions.NetlinkError: (2, 'No such file or directory')
`