diff options
author | Nicolas Fort <nicolasfort1988@gmail.com> | 2022-10-18 11:41:45 +0000 |
---|---|---|
committer | Nicolas Fort <nicolasfort1988@gmail.com> | 2022-10-18 11:41:45 +0000 |
commit | ca70102fcf782e7a61d3d1b7672d74eb8db32129 (patch) | |
tree | ecd3f78edc2d3f2208741004808bd095d438e07c /interface-definitions/dhcp-relay.xml.in | |
parent | 813236e6ca265f15fe81b09a0a61feb3a3d0193b (diff) | |
download | vyos-1x-ca70102fcf782e7a61d3d1b7672d74eb8db32129.tar.gz vyos-1x-ca70102fcf782e7a61d3d1b7672d74eb8db32129.zip |
T2408: dhcp-relay: Add listen-interface and upstream-interface feature
Diffstat (limited to 'interface-definitions/dhcp-relay.xml.in')
-rw-r--r-- | interface-definitions/dhcp-relay.xml.in | 49 |
1 files changed, 48 insertions, 1 deletions
diff --git a/interface-definitions/dhcp-relay.xml.in b/interface-definitions/dhcp-relay.xml.in index 27d0a3e6c..746cc2fb4 100644 --- a/interface-definitions/dhcp-relay.xml.in +++ b/interface-definitions/dhcp-relay.xml.in @@ -9,7 +9,54 @@ <priority>910</priority> </properties> <children> - #include <include/generic-interface-multi-broadcast.xml.i> + <leafNode name="interface"> + <properties> + <help>Interface Name to use [To be deprecated]. Only for backward compatibility. Use listen-interface and upstream-interface instead of this option </help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py --broadcast</script> + </completionHelp> + <valueHelp> + <format>txt</format> + <description>Interface name</description> + </valueHelp> + <constraint> + <validator name="interface-name"/> + </constraint> + <multi/> + </properties> + </leafNode> + <leafNode name="listen-interface"> + <properties> + <help>Interface for DHCP Relay Agent to listen for requests</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py</script> + </completionHelp> + <valueHelp> + <format>txt</format> + <description>Interface name</description> + </valueHelp> + <constraint> + <validator name="interface-name"/> + </constraint> + <multi/> + </properties> + </leafNode> + <leafNode name="upstream-interface"> + <properties> + <help>Interface for DHCP Relay Agent forward requests out</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py</script> + </completionHelp> + <valueHelp> + <format>txt</format> + <description>Interface name</description> + </valueHelp> + <constraint> + <validator name="interface-name"/> + </constraint> + <multi/> + </properties> + </leafNode> <node name="relay-options"> <properties> <help>Relay options</help> |