From 47d5f21b7770b0b8dcd29272e6c93bea9028adfe Mon Sep 17 00:00:00 2001 From: Kyrylo Yatsenko Date: Fri, 26 Sep 2025 22:59:43 +0300 Subject: T5942: Make failover support dhcp-interface * Refactor XML a little: move common dhcp-interface properties to separate include file * Add failover support for dhcp-interface * Add test for DHCP in failover protocol --- .../include/failover/common-failover.xml.i | 105 ++++++++++++++++++++ .../include/failover/protocol-common-config.xml.i | 110 ++------------------- 2 files changed, 112 insertions(+), 103 deletions(-) create mode 100644 interface-definitions/include/failover/common-failover.xml.i (limited to 'interface-definitions/include/failover') diff --git a/interface-definitions/include/failover/common-failover.xml.i b/interface-definitions/include/failover/common-failover.xml.i new file mode 100644 index 000000000..b147a0f8d --- /dev/null +++ b/interface-definitions/include/failover/common-failover.xml.i @@ -0,0 +1,105 @@ + + + + + Check target options + + + + + Policy for check targets + + any-available all-available + + + all-available + All targets must be alive + + + any-available + Any target must be alive + + + (all-available|any-available) + + + any-available + + #include + + + Check target address + + ipv4 + Address to check + + + + + + + #include + #include + + + + + Timeout between checks + + u32:1-300 + Timeout in seconds between checks + + + + + + 10 + + + + Check type + + arp icmp tcp + + + arp + Check target by ARP + + + icmp + Check target by ICMP + + + tcp + Check target by TCP + + + (arp|icmp|tcp) + + + icmp + + + + #include + + + Route metric for this gateway + + u32:1-255 + Route metric + + + + + + 1 + + + + The next hop is directly connected to the interface, even if it does not match interface prefix + + + + + diff --git a/interface-definitions/include/failover/protocol-common-config.xml.i b/interface-definitions/include/failover/protocol-common-config.xml.i index a106fdc74..56c9d8f90 100644 --- a/interface-definitions/include/failover/protocol-common-config.xml.i +++ b/interface-definitions/include/failover/protocol-common-config.xml.i @@ -22,109 +22,13 @@ - - - - Check target options - - - - - Policy for check targets - - any-available all-available - - - all-available - All targets must be alive - - - any-available - Any target must be alive - - - (all-available|any-available) - - - any-available - - #include - - - Check target address - - ipv4 - Address to check - - - - - - - #include - #include - - - - - Timeout between checks - - u32:1-300 - Timeout in seconds between checks - - - - - - 10 - - - - Check type - - arp icmp tcp - - - arp - Check target by ARP - - - icmp - Check target by ICMP - - - tcp - Check target by TCP - - - (arp|icmp|tcp) - - - icmp - - - - #include - - - Route metric for this gateway - - u32:1-255 - Route metric - - - - - - 1 - - - - The next hop is directly connected to the interface, even if it does not match interface prefix - - - - + #include + + + + #include + + #include -- cgit v1.2.3