Skip to content

Commit

Permalink
Fix extended flags representation
Browse files Browse the repository at this point in the history
  • Loading branch information
signal-09 committed Sep 10, 2024
1 parent 2547d57 commit 7ff0cef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions iproute4mac/ifconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def __init__(self, text):
"bond": _reBond(self._bond, text).data,
**_reDict(self._generation_id, text).data,
**_reDict(self._type, text).data,
"link_type": None,
"link_type": "none",
"agent": _reList(self._agent, text).data,
"link_quality": _reDict(self._link_quality, text).data,
"state_availability": _reDict(self._state_availability, text).data,
Expand Down Expand Up @@ -541,11 +541,11 @@ def __init__(self, text):
"link": None, # async __update__ with self._get_link()
"ifname": self._name,
"flags": self._ifconfig["flags"],
"eflags": self._ifconfig.get("eflags"),
"xflags": self._ifconfig.get("xflags"),
"options": self._ifconfig.get("options"),
"capabilities": self._ifconfig.get("capabilities"),
"hwassist": self._ifconfig.get("hwassist"),
"eflags": self._ifconfig.get("eflags", {}).get("flags"),
"xflags": self._ifconfig.get("xflags", {}).get("flags"),
"options": self._ifconfig.get("options", {}).get("flags"),
"capabilities": self._ifconfig.get("capabilities", {}).get("flags"),
"hwassist": self._ifconfig.get("hwassist", {}).get("flags"),
"mtu": self._ifconfig["mtu"],
# "qdisc": "noqueue",
"master": None, # async __update__ with self._get_master()
Expand Down

0 comments on commit 7ff0cef

Please sign in to comment.