Development
This commit is contained in:
parent
e140628c5e
commit
7f05d5b257
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')]
|
||||
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]
|
||||
)
|
||||
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': '', 'label': 'Select VLAN'}] +
|
||||
[{'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