Development
This commit is contained in:
parent
a4eb431f22
commit
563d82daf3
3 changed files with 26 additions and 6 deletions
|
|
@ -76,6 +76,11 @@ def collect_tokens(cfg):
|
|||
[{'value': '', 'label': '— Select VLAN —'}] +
|
||||
[{'value': v['name'], 'label': f"{v['name']} (VLAN {v['vlan_id']})"} for v in vlans]
|
||||
)
|
||||
captive_vlans = [v for v in cfg.get('vlans', []) if v.get('restricted_vlan') == 'c']
|
||||
tokens['CAPTIVE_VLAN_OPTIONS'] = json.dumps(
|
||||
[{'value': '', 'label': '— Select VLAN —'}] +
|
||||
[{'value': v['name'], 'label': f"{v['name']} (VLAN {v['vlan_id']})"} for v in captive_vlans]
|
||||
)
|
||||
|
||||
raw_rows = _load_credentials()
|
||||
display_rows = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue