Development

This commit is contained in:
Matthew Grotke 2026-06-06 23:57:08 -04:00
parent a4eb431f22
commit 563d82daf3
3 changed files with 26 additions and 6 deletions

View file

@ -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 = []