sudo /path/to/vlan_learning/vlan_learning.py
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
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')
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with examples/networking/vlan_learning/vlan_learning.py and simulation.py, then reproduce the traceback using the sudo invocation shown in the issue. Inspect the failing _ns_add_ifc call and its pyroute2 netlink error; done means identifying the missing prerequisite or environment condition and documenting a working invocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100