From 4ef110fd2c501b718344c72d495ad7e16d2bd465 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 30 Dec 2023 23:25:20 +0100 Subject: T5474: establish common file name pattern for XML conf mode commands We will use _ as CLI level divider. The XML definition filename and also the Python helper should match the CLI node. Example: set interfaces ethernet -> interfaces_ethernet.xml.in set interfaces bond -> interfaces_bond.xml.in set service dhcp-server -> service_dhcp-server-xml.in --- interface-definitions/service_dhcp-relay.xml.in | 126 ++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 interface-definitions/service_dhcp-relay.xml.in (limited to 'interface-definitions/service_dhcp-relay.xml.in') diff --git a/interface-definitions/service_dhcp-relay.xml.in b/interface-definitions/service_dhcp-relay.xml.in new file mode 100644 index 000000000..9fdd9581d --- /dev/null +++ b/interface-definitions/service_dhcp-relay.xml.in @@ -0,0 +1,126 @@ + + + + + + + + Host Configuration Protocol (DHCP) relay agent + 910 + + + #include + #include + + + Interface for DHCP Relay Agent to listen for requests + + + + + txt + Interface name + + + #include + + + + + + + Interface for DHCP Relay Agent forward requests out + + + + + txt + Interface name + + + #include + + + + + + + Relay options + + + + + Policy to discard packets that have reached specified hop-count + + u32:1-255 + Hop count + + + + + hop-count must be a value between 1 and 255 + + 10 + + + + Maximum packet size to send to a DHCPv4/BOOTP server + + u32:64-1400 + Maximum packet size + + + + + max-size must be a value between 64 and 1400 + + 576 + + + + Policy to handle incoming DHCPv4 packets which already contain relay agent options + + append replace forward discard + + + append + append own relay options to packet + + + replace + replace existing agent option field + + + forward + forward packet unchanged + + + discard + discard packet (default action if giaddr not set in packet) + + + (append|replace|forward|discard) + + + forward + + + + + + DHCP server address + + ipv4 + DHCP server IPv4 address + + + + + + + + + + + + -- cgit v1.2.3