Development
This commit is contained in:
parent
e36d681cea
commit
c26c45cdc8
2 changed files with 8 additions and 2 deletions
|
|
@ -198,6 +198,7 @@
|
|||
},
|
||||
{
|
||||
"type": "subnet_row",
|
||||
"label": "VLAN Subnet",
|
||||
"subnet_name": "subnet",
|
||||
"prefix_name": "subnet_mask",
|
||||
"subnet_placeholder": "e.g. 192.168.x.0",
|
||||
|
|
@ -218,7 +219,7 @@
|
|||
},
|
||||
{
|
||||
"type": "record_editor",
|
||||
"label": "Router Identities on this VLAN",
|
||||
"label": "Router identities on this VLAN",
|
||||
"name": "server_identities",
|
||||
"empty_message": "No identities added.",
|
||||
"fields": [
|
||||
|
|
@ -249,6 +250,10 @@
|
|||
{
|
||||
"type": "hr"
|
||||
},
|
||||
{
|
||||
"type": "p",
|
||||
"text": "Servers provided to network clients via DHCP"
|
||||
},
|
||||
{
|
||||
"type": "hr"
|
||||
},
|
||||
|
|
@ -306,4 +311,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1285,6 +1285,7 @@ def _render_item(item, tokens, inherited_req=None):
|
|||
return f'<div class="form-row-{cols}">{inner}</div>'
|
||||
|
||||
if t == 'subnet_row':
|
||||
subnet_name = e(item.get('label', 'Subnet'))
|
||||
subnet_name = e(item.get('subnet_name', 'subnet'))
|
||||
prefix_name = e(item.get('prefix_name', 'subnet_mask'))
|
||||
subnet_val = apply_tokens(item.get('subnet_value', ''), tokens)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue