mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-25 04:50:37 +01:00
libnm: fix annotation for out arguments of nm_bridge_vlan_get_vid_range()
Workaround:
def br_get_vid_range(bridge_vlan):
try:
(is_range, vid_start, vid_end) = bridge_vlan.get_vid_range()
except TypeError as e:
s = bridge_vlan.to_str()
s = s.split(' ', 1)
s = s[0]
s = s.split('-', 2)
vid_start = int(s[0])
if len(s) == 2:
vid_end = int(s[1])
else:
vid_end = vid_start
is_range = (vid_start == vid_end)
return (vid_start, vid_end)
Fixes: da204257b1 ('all: support bridge vlan ranges')
This commit is contained in:
parent
a65982c5ad
commit
c68c199eda
1 changed files with 2 additions and 2 deletions
|
|
@ -209,8 +209,8 @@ _nm_bridge_vlan_dup_and_seal (const NMBridgeVlan *vlan)
|
|||
/**
|
||||
* nm_bridge_vlan_get_vid_range:
|
||||
* @vlan: the #NMBridgeVlan
|
||||
* @vid_start: location to store the VLAN id range start.
|
||||
* @vid_end: location to store the VLAN id range end
|
||||
* @vid_start: (out): location to store the VLAN id range start.
|
||||
* @vid_end: (out): location to store the VLAN id range end
|
||||
*
|
||||
* Gets the VLAN id range.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue