diff options
author | Charles Surett <surettcharles@gmail.com> | 2021-04-02 17:40:02 -0400 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-04-12 21:51:59 +0200 |
commit | 86cb96ae1861908ea1fa6d1b0cbd1832661c8571 (patch) | |
tree | ae1749d2c4a9f39bb840c74f9126cc374d92743e /interface-definitions/include/dhcp-options.xml.i | |
parent | b9fc9f1ea59861765b64d34dee3f7e46e6753e52 (diff) | |
download | vyos-1x-86cb96ae1861908ea1fa6d1b0cbd1832661c8571.tar.gz vyos-1x-86cb96ae1861908ea1fa6d1b0cbd1832661c8571.zip |
interfaces: dhcp-client: T3454: add reject option
Sometimes a modem might give a local IP before it retrieves a WAN IP.
This can be an issue with failover routes,
since the default route will get overridden.
(cherry picked from commit e8535616aae2bf0c20aacee6a4d0761183bae6d9)
Diffstat (limited to 'interface-definitions/include/dhcp-options.xml.i')
-rw-r--r-- | interface-definitions/include/dhcp-options.xml.i | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/interface-definitions/include/dhcp-options.xml.i b/interface-definitions/include/dhcp-options.xml.i index 8972b53e9..39a3dbb2e 100644 --- a/interface-definitions/include/dhcp-options.xml.i +++ b/interface-definitions/include/dhcp-options.xml.i @@ -37,6 +37,24 @@ </constraint> </properties> </leafNode> + <leafNode name="reject"> + <properties> + <help>IP addresses or subnets from which to reject DHCP leases</help> + <valueHelp> + <format>ipv4</format> + <description>IPv4 address to match</description> + </valueHelp> + <valueHelp> + <format>ipv4net</format> + <description>IPv4 prefix to match</description> + </valueHelp> + <constraint> + <validator name="ipv4-address"/> + <validator name="ipv4-prefix"/> + </constraint> + <multi/> + </properties> + </leafNode> </children> </node> <!-- include end --> |