Development
This commit is contained in:
parent
7f05d5b257
commit
2bb876ed97
1 changed files with 2 additions and 2 deletions
|
|
@ -72,12 +72,12 @@ def collect_tokens(cfg):
|
||||||
|
|
||||||
vlans = [v for v in cfg.get('vlans', []) if not v.get('is_vpn')]
|
vlans = [v for v in cfg.get('vlans', []) if not v.get('is_vpn')]
|
||||||
tokens['VLAN_OPTIONS'] = json.dumps(
|
tokens['VLAN_OPTIONS'] = json.dumps(
|
||||||
[{'value': '', 'label': 'Select VLAN'}] +
|
[{'value': '', 'label': '-- Select VLAN --'}] +
|
||||||
[{'value': v['name'], 'label': f"{v['name']} (VLAN {v['vlan_id']})"} for v in vlans]
|
[{'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']
|
captive_vlans = [v for v in cfg.get('vlans', []) if v.get('restricted_vlan') == 'c']
|
||||||
tokens['CAPTIVE_VLAN_OPTIONS'] = json.dumps(
|
tokens['CAPTIVE_VLAN_OPTIONS'] = json.dumps(
|
||||||
[{'value': '', 'label': 'Select VLAN'}] +
|
[{'value': '', 'label': '-- Select VLAN --'}] +
|
||||||
[{'value': v['name'], 'label': f"{v['name']} (VLAN {v['vlan_id']})"} for v in captive_vlans]
|
[{'value': v['name'], 'label': f"{v['name']} (VLAN {v['vlan_id']})"} for v in captive_vlans]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue