166 lines
No EOL
4.6 KiB
JSON
166 lines
No EOL
4.6 KiB
JSON
{
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "header_page_title",
|
|
"items": [
|
|
{
|
|
"type": "h1",
|
|
"text": "Physical Interfaces"
|
|
},
|
|
{
|
|
"type": "p",
|
|
"text": "WAN/LAN interface assignments and per-interface settings."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Physical Interfaces",
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/physicalinterfaces/physicalinterface_save",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "field",
|
|
"label": "WAN Interface",
|
|
"name": "wan_interface",
|
|
"input_type": "interface_picker",
|
|
"value": "%GENERAL_WAN_INTERFACE%",
|
|
"data": "%NETWORK_INTERFACE_DATA_JSON%"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"label": "LAN Interface",
|
|
"name": "lan_interface",
|
|
"input_type": "interface_picker",
|
|
"value": "%GENERAL_LAN_INTERFACE%",
|
|
"data": "%NETWORK_INTERFACE_DATA_JSON%"
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"action": "/action/physicalinterfaces/physicalinterface_save",
|
|
"method": "post",
|
|
"text": "Save"
|
|
},
|
|
{
|
|
"type": "button_cancel",
|
|
"text": "Cancel"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"id": "iface-config-card",
|
|
"label": "Interface Configuration",
|
|
"hidden": true,
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/physicalinterfaces/ifaceconfig_apply",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "hidden",
|
|
"name": "original_mtu",
|
|
"value": ""
|
|
},
|
|
{
|
|
"type": "hidden",
|
|
"name": "original_mac",
|
|
"value": ""
|
|
},
|
|
{
|
|
"type": "field_row",
|
|
"cols": 3,
|
|
"items": [
|
|
{
|
|
"type": "field",
|
|
"label": "Interface",
|
|
"name": "iface",
|
|
"input_type": "text",
|
|
"readonly": true,
|
|
"value": ""
|
|
},
|
|
{
|
|
"type": "field",
|
|
"label": "MTU",
|
|
"name": "mtu",
|
|
"input_type": "select",
|
|
"value": "",
|
|
"options": [
|
|
{
|
|
"label": "576",
|
|
"value": "576"
|
|
},
|
|
{
|
|
"label": "1280",
|
|
"value": "1280"
|
|
},
|
|
{
|
|
"label": "1492",
|
|
"value": "1492"
|
|
},
|
|
{
|
|
"label": "1500",
|
|
"value": "1500"
|
|
},
|
|
{
|
|
"label": "4096",
|
|
"value": "4096"
|
|
},
|
|
{
|
|
"label": "9000",
|
|
"value": "9000"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "field",
|
|
"label": "MAC Address",
|
|
"name": "mac",
|
|
"input_type": "text",
|
|
"validate": "VALIDATION_MAC",
|
|
"value": "",
|
|
"hint": "Factory default: none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"action": "/action/physicalinterfaces/ifaceconfig_apply",
|
|
"method": "post",
|
|
"text": "Apply"
|
|
},
|
|
{
|
|
"type": "button_secondary",
|
|
"action": "#",
|
|
"text": "Cancel",
|
|
"class": "iface-config-cancel"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "raw_html",
|
|
"html": "<br /><br /><br /><br /><br />"
|
|
}
|
|
]
|
|
} |