From 05df2a5f021f0c7aab7c06db645d210858b6e98d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 17 Sep 2022 22:28:34 +0200 Subject: ipoe: T4678: T4703: rewrite to get_config_dict() In addition to the rewrite to make use of get_config_dict() the CLI is slightly adjusted as specified in T4703. * Rename vlan-id and vlan-range to simply vlan * Rename network-mode to simply mode * Re-use existing common Jinja2 template for Accel-PPP which are shared with PPPoE and SSTP server. * Retrieve default values via defaultValue XML node --- interface-definitions/service-ipoe-server.xml.in | 78 ++++++++++++------------ 1 file changed, 40 insertions(+), 38 deletions(-) (limited to 'interface-definitions/service-ipoe-server.xml.in') diff --git a/interface-definitions/service-ipoe-server.xml.in b/interface-definitions/service-ipoe-server.xml.in index cd3aa3638..ef8569437 100644 --- a/interface-definitions/service-ipoe-server.xml.in +++ b/interface-definitions/service-ipoe-server.xml.in @@ -10,30 +10,31 @@ - Network interface to server IPoE + Interface to listen dhcp or unclassified packets - + - Network Layer IPoE serves on + Client connectivity mode - L2 L3 + l2 l3 - - (L2|L3) - - L2 - client share the same subnet + l2 + Client located on same interface as server - L3 - clients are behind this router + l3 + Client located behind a router + + (l2|l3) + + l2 @@ -53,6 +54,7 @@ One VLAN per client + shared @@ -85,30 +87,19 @@ - address of the relay agent (Relay Agent IP Address) + Relay Agent IPv4 Address + + ipv4 + Gateway IP address + + + + - - - VLAN monitor for the automatic creation of vlans (user per vlan) - - - - VLAN ID needs to be between 1 and 4096 - - - - - - VLAN monitor for the automatic creation of vlans (user per vlan) - - (409[0-6]|40[0-8][0-9]|[1-3][0-9]{3}|[1-9][0-9]{0,2})-(409[0-6]|40[0-8][0-9]|[1-3][0-9]{3}|[1-9][0-9]{0,2}) - - - - + #include #include @@ -120,6 +111,13 @@ Pool name + + txt + Name of IP pool + + + [-_a-zA-Z0-9.]+ + #include @@ -159,15 +157,15 @@ - Network interface the client mac will appear on + Network interface for client MAC addresses - + - Client mac address allowed to receive an IP address + Media Access Control (MAC) address macaddr Hardware (MAC) address @@ -200,13 +198,17 @@ - + - VLAN-ID of the client network + VLAN monitor for automatic creation of VLAN interfaces + + u32:1-4094 + Client VLAN id + - + - VLAN ID needs to be between 1 and 4096 + VLAN IDs need to be in range 1-4094 -- cgit v1.2.3