Regression: ifstate show broken by wireguard #142
Owner
```
# ifstatecli -v show
IfState 2.2.1
features brport ethtool iw link schema sysctl tc wireguard
mounted sysfs for mgmt at /run/libifstate/sysfs/mgmtc_rrfpc0
Traceback (most recent call last):
File "/usr/bin/ifstatecli", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3.12/site-packages/ifstate/ifstate.py", line 196, in main
print(yaml.dump(ifs.show(args.action == Actions.SHOWALL, args.show_secrets)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/libifstate/__init__.py", line 712, in show
netns_configs[netns.netns] = self._show_netns(netns, showall, show_secrets, ipaddr_ignore)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/libifstate/__init__.py", line 833, in _show_netns
wireguard.WireGuard.show(netns, showall, show_secrets, name, ifs_link)
File "/usr/lib/python3.12/site-packages/libifstate/wireguard/__init__.py", line 220, in show
pyroute2.netns.pushns(self.netns.netns)
^^^^
NameError: name 'self' is not defined
umounted sysfs for mgmt at /run/libifstate/sysfs/mgmtc_rrfpc0
```
bug
label
wireguard: fix exception in show action after switching from wgnlpy to pyroute2 backend (closes #142)
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
more info
question
TBD
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
liske/ifstate#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?