diff options
author | Roman Khramshin <HollyGurza@users.noreply.github.com> | 2024-12-13 03:14:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 21:14:17 +0200 |
commit | 678c6cd00412cad5d788da210c6dfeae6e77907c (patch) | |
tree | 7eb19b90ef3c1b79daa60179a78b9c9318910e74 /interface-definitions | |
parent | 466c6ad3762faf46149c651a244b47fb4b2efea2 (diff) | |
download | vyos-1x-678c6cd00412cad5d788da210c6dfeae6e77907c.tar.gz vyos-1x-678c6cd00412cad5d788da210c6dfeae6e77907c.zip |
T6863: Fix default distance for PPPoE (#4229)
set `default-route-distance` to 1
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/include/interface/default-route-distance.xml.i | 2 | ||||
-rw-r--r-- | interface-definitions/interfaces_pppoe.xml.in | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/interface-definitions/include/interface/default-route-distance.xml.i b/interface-definitions/include/interface/default-route-distance.xml.i index 6eda52c91..7a226a538 100644 --- a/interface-definitions/include/interface/default-route-distance.xml.i +++ b/interface-definitions/include/interface/default-route-distance.xml.i @@ -4,7 +4,7 @@ <help>Distance for installed default route</help> <valueHelp> <format>u32:1-255</format> - <description>Distance for the default route from DHCP server</description> + <description>Distance for the default route received from the server</description> </valueHelp> <constraint> <validator name="numeric" argument="--range 1-255"/> diff --git a/interface-definitions/interfaces_pppoe.xml.in b/interface-definitions/interfaces_pppoe.xml.in index 56660bc15..f24bc41d8 100644 --- a/interface-definitions/interfaces_pppoe.xml.in +++ b/interface-definitions/interfaces_pppoe.xml.in @@ -21,6 +21,9 @@ #include <include/interface/dial-on-demand.xml.i> #include <include/interface/no-default-route.xml.i> #include <include/interface/default-route-distance.xml.i> + <leafNode name="default-route-distance"> + <defaultValue>1</defaultValue> + </leafNode> #include <include/interface/dhcpv6-options.xml.i> #include <include/generic-description.xml.i> #include <include/interface/disable.xml.i> |