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/interfaces_bonding.xml.in | 286 ++++++++++++++++++++++++ 1 file changed, 286 insertions(+) create mode 100644 interface-definitions/interfaces_bonding.xml.in (limited to 'interface-definitions/interfaces_bonding.xml.in') diff --git a/interface-definitions/interfaces_bonding.xml.in b/interface-definitions/interfaces_bonding.xml.in new file mode 100644 index 000000000..62ee0bdc7 --- /dev/null +++ b/interface-definitions/interfaces_bonding.xml.in @@ -0,0 +1,286 @@ + + + + + + + Bonding Interface/Link Aggregation + 320 + + bond[0-9]+ + + Bonding interface must be named bondN + + bondN + Bonding interface name + + + + #include + + + ARP link monitoring parameters + + + + + ARP link monitoring interval + + u32 + Specifies the ARP link monitoring frequency in milliseconds + + + + + + + + + IP address used for ARP monitoring + + ipv4 + Specify IPv4 address of ARP requests when interval is enabled + + + + + + + + + + #include + #include + #include + #include + #include + #include + #include + + + EVPN Multihoming + + + + + Preference value used for designated forwarder (DF) election + + u32:1-65535 + DF Preference value + + + + + + + + + Ethernet segment identifier + + u32:1-16777215 + Local discriminator + + + txt + 10-byte ID - 00:11:22:33:44:55:AA:BB:CC:DD + + + + ([0-9A-Fa-f][0-9A-Fa-f]:){9}[0-9A-Fa-f][0-9A-Fa-f] + + + + + + Ethernet segment system MAC + + macaddr + MAC address + + + + + + + + + Uplink to the VXLAN core + + + + + + + + Bonding transmit hash policy + + layer2 layer2+3 layer3+4 encap2+3 encap3+4 + + + layer2 + use MAC addresses to generate the hash + + + layer2+3 + combine MAC address and IP address to make hash + + + layer3+4 + combine IP address and port to make hash + + + encap2+3 + combine encapsulated MAC address and IP address to make hash + + + encap3+4 + combine encapsulated IP address and port to make hash + + + (layer2\+3|layer3\+4|layer2|encap2\+3|encap3\+4) + + hash-policy must be layer2 layer2+3 layer3+4 encap2+3 or encap3+4 + + layer2 + + #include + #include + #include + + + Specifies the MII link monitoring frequency in milliseconds + + u32:0 + Disable MII link monitoring + + + u32:50-1000 + MII link monitoring frequency in milliseconds + + + + + + 100 + + + + Minimum number of member interfaces required up before enabling bond + + u32:0-16 + Minimum number of member interfaces required up before enabling bond + + + + + + 0 + + + + Rate in which we will ask our link partner to transmit LACPDU packets + + slow fast + + + slow + Request partner to transmit LACPDUs every 30 seconds + + + fast + Request partner to transmit LACPDUs every 1 second + + + (slow|fast) + + + slow + + + + Bonding mode + + 802.3ad active-backup broadcast round-robin transmit-load-balance adaptive-load-balance xor-hash + + + 802.3ad + IEEE 802.3ad Dynamic link aggregation + + + active-backup + Fault tolerant: only one slave in the bond is active + + + broadcast + Fault tolerant: transmits everything on all slave interfaces + + + round-robin + Load balance: transmit packets in sequential order + + + transmit-load-balance + Load balance: adapts based on transmit load and speed + + + adaptive-load-balance + Load balance: adapts based on transmit and receive plus ARP + + + xor-hash + Distribute based on MAC address + + + (802.3ad|active-backup|broadcast|round-robin|transmit-load-balance|adaptive-load-balance|xor-hash) + + mode must be 802.3ad, active-backup, broadcast, round-robin, transmit-load-balance, adaptive-load-balance, or xor + + 802.3ad + + + + Bridge member interfaces + + + + + Member interface name + + + + + txt + Interface name + + + #include + + + + + + + #include + + + Primary device interface + + + + + txt + Interface name + + + #include + + + + #include + #include + #include + + + + + -- cgit v1.2.3