diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-13 19:55:10 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-06-13 20:25:43 +0200 |
commit | 5f82e7d92c3d2bf856158067153ccef5e37dc558 (patch) | |
tree | 746f6b2578d0f0775eba29f7f85c4ff526dd464f /interface-definitions | |
parent | cc967f1e3287970908062affd23b94f66ccee4b8 (diff) | |
download | vyos-1x-5f82e7d92c3d2bf856158067153ccef5e37dc558.tar.gz vyos-1x-5f82e7d92c3d2bf856158067153ccef5e37dc558.zip |
wwan: T3622: add support for APN authentication
Some APNs require a username/password. Add CLI nodes (matching the PPPoE
syntax) for client authentication.
One APN would be the IPv4/IPv6 APN from Deutsche Telekom (Germany)
APN Name: Telekom Internet IPv6
APN: internet.v6.telekom
Benutzername: telekom
Passwort: tm
(cherry picked from commit c667a45a8fb06cb76c907348c4f1e3ec708b6e03)
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/include/interface/authentication.xml.i | 27 | ||||
-rw-r--r-- | interface-definitions/interfaces-pppoe.xml.in | 18 | ||||
-rw-r--r-- | interface-definitions/interfaces-wwan.xml.in | 1 |
3 files changed, 29 insertions, 17 deletions
diff --git a/interface-definitions/include/interface/authentication.xml.i b/interface-definitions/include/interface/authentication.xml.i new file mode 100644 index 000000000..c097ca9dd --- /dev/null +++ b/interface-definitions/include/interface/authentication.xml.i @@ -0,0 +1,27 @@ +<!-- include start from interface/authentication.xml.i --> +<node name="authentication"> + <properties> + <help>Authentication settings</help> + </properties> + <children> + <leafNode name="user"> + <properties> + <help>User name</help> + <valueHelp> + <format>txt</format> + <description>Username used for connection</description> + </valueHelp> + </properties> + </leafNode> + <leafNode name="password"> + <properties> + <help>Password</help> + <valueHelp> + <format>txt</format> + <description>Password used for connection</description> + </valueHelp> + </properties> + </leafNode> + </children> +</node> +<!-- include end --> diff --git a/interface-definitions/interfaces-pppoe.xml.in b/interface-definitions/interfaces-pppoe.xml.in index 8c2b50eba..96479e057 100644 --- a/interface-definitions/interfaces-pppoe.xml.in +++ b/interface-definitions/interfaces-pppoe.xml.in @@ -25,23 +25,7 @@ <constraintErrorMessage>Access concentrator name must be composed of uppper and lower case letters or numbers only</constraintErrorMessage> </properties> </leafNode> - <node name="authentication"> - <properties> - <help>Authentication settings</help> - </properties> - <children> - <leafNode name="user"> - <properties> - <help>User name</help> - </properties> - </leafNode> - <leafNode name="password"> - <properties> - <help>Password</help> - </properties> - </leafNode> - </children> - </node> + #include <include/interface/authentication.xml.i> #include <include/interface/interface-dial-on-demand.xml.i> <leafNode name="default-route"> <properties> diff --git a/interface-definitions/interfaces-wwan.xml.in b/interface-definitions/interfaces-wwan.xml.in index 55ac8eab1..ea3184a11 100644 --- a/interface-definitions/interfaces-wwan.xml.in +++ b/interface-definitions/interfaces-wwan.xml.in @@ -27,6 +27,7 @@ </leafNode> #include <include/interface/dhcp-options.xml.i> #include <include/interface/dhcpv6-options.xml.i> + #include <include/interface/authentication.xml.i> #include <include/interface/interface-description.xml.i> #include <include/interface/interface-disable.xml.i> #include <include/interface/interface-vrf.xml.i> |