Development
This commit is contained in:
parent
a6031616df
commit
47b0e98e31
9 changed files with 304 additions and 0 deletions
|
|
@ -839,8 +839,10 @@ def load_datasource(spec):
|
|||
|
||||
|
||||
def collect_layout_tokens(cfg):
|
||||
import license
|
||||
net = cfg.get('network_interfaces', {})
|
||||
return {
|
||||
'GENERAL_LAN_INTERFACE': str(net.get('lan_interface', '-')),
|
||||
'VPN_VLAN_COUNT': str(sum(1 for v in cfg.get('vlans', []) if v.get('is_vpn'))),
|
||||
'PRO_LICENSE_JS': 'true' if license.is_pro() else 'false',
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue