From af98fc8da949ad8274d4174afa13b97a8be043ac Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Sat, 11 Oct 2025 22:43:38 +0200 Subject: [PATCH] add routed static and more arguments in general --- .../files/etc/netmodes/supported_modes.json | 71 ++++++++++++++++++- 1 file changed, 68 insertions(+), 3 deletions(-) diff --git a/netmode/files/etc/netmodes/supported_modes.json b/netmode/files/etc/netmodes/supported_modes.json index 2cef6df0b..d236a2228 100644 --- a/netmode/files/etc/netmodes/supported_modes.json +++ b/netmode/files/etc/netmodes/supported_modes.json @@ -3,7 +3,21 @@ "supported_modes": [ { "name": "routed-dhcp", - "description": "WAN with DHCP proto (Layer 3)" + "description": "WAN with DHCP proto (Layer 3)", + "supported_args": [ + { + "name": "vlan", + "description": "Optional VLAN ID", + "required": false, + "type": "integer" + }, + { + "name": "dns-servers", + "description": "Optional DNS servers, comma separated", + "required": false, + "type": "string" + } + ] }, { "name": "routed-pppoe", @@ -13,15 +27,66 @@ "name": "username", "description": "PPPoE username", "required": true, - "type": "string", + "type": "string", "#value": "TestUser" }, { "name": "password", "description": "PPPoE password", "required": true, - "type": "string", + "type": "string", "#value": "TestPassword" + }, + { + "name": "vlan", + "description": "Optional VLAN ID", + "required": false, + "type": "integer" + }, + { + "name": "dns-servers", + "description": "Optional DNS servers, comma separated", + "required": false, + "type": "string" + } + ] + }, + { + "name": "routed-static", + "description": "WAN with static IP configuration (Layer 3)", + "supported_args": [ + { + "name": "ip-address", + "description": "Static IP address", + "required": true, + "type": "string", + "#value": "93.21.0.104" + }, + { + "name": "netmask", + "description": "Subnet mask", + "required": true, + "type": "string", + "#value": "255.255.255.0" + }, + { + "name": "gateway", + "description": "Default gateway", + "required": true, + "type": "string", + "#value": "93.21.0.1" + }, + { + "name": "vlan", + "description": "Optional VLAN ID", + "required": false, + "type": "integer" + }, + { + "name": "dns-servers", + "description": "Optional DNS servers, comma separated", + "required": false, + "type": "string" } ] }