From 1f8c257f126d492a3f41eee72728b2c35b6b534e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 4 Feb 2021 19:35:18 +0100 Subject: route: static: T2450: provide full protocol support in XML and Python with new CLI --- interface-definitions/arp.xml.in | 37 --- interface-definitions/include/static-route.xml.i | 14 +- interface-definitions/include/static-route6.xml.i | 14 +- interface-definitions/protocols-multicast.xml.in | 1 - interface-definitions/protocols-static-arp.xml.in | 37 +++ interface-definitions/protocols-static.xml.in | 341 +--------------------- 6 files changed, 69 insertions(+), 375 deletions(-) delete mode 100644 interface-definitions/arp.xml.in create mode 100644 interface-definitions/protocols-static-arp.xml.in (limited to 'interface-definitions') diff --git a/interface-definitions/arp.xml.in b/interface-definitions/arp.xml.in deleted file mode 100644 index 082afe00f..000000000 --- a/interface-definitions/arp.xml.in +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - Static ARP translation - - ipv4 - IPv4 destination address - - - - - - - - - mac address to translate to - - macaddr - Hardware (MAC) address - - - - - - - - - - - - - diff --git a/interface-definitions/include/static-route.xml.i b/interface-definitions/include/static-route.xml.i index 9ab3926da..1f79aaca8 100644 --- a/interface-definitions/include/static-route.xml.i +++ b/interface-definitions/include/static-route.xml.i @@ -4,7 +4,7 @@ VRF static IPv4 route ipv4net - VRF static IPv4 route + IPv4 static route @@ -17,6 +17,18 @@ #include + + + Tag value for this route + + u32:1-4294967295 + Tag value for this route + + + + + + diff --git a/interface-definitions/include/static-route6.xml.i b/interface-definitions/include/static-route6.xml.i index d484b285c..1ff6bbead 100644 --- a/interface-definitions/include/static-route6.xml.i +++ b/interface-definitions/include/static-route6.xml.i @@ -4,7 +4,7 @@ VRF static IPv6 route ipv6net - VRF static IPv6 route + IPv6 static route @@ -17,6 +17,18 @@ #include + + + Tag value for this route + + u32:1-4294967295 + Tag value for this route + + + + + + diff --git a/interface-definitions/protocols-multicast.xml.in b/interface-definitions/protocols-multicast.xml.in index a06f2b287..bf0ead78f 100644 --- a/interface-definitions/protocols-multicast.xml.in +++ b/interface-definitions/protocols-multicast.xml.in @@ -1,5 +1,4 @@ - diff --git a/interface-definitions/protocols-static-arp.xml.in b/interface-definitions/protocols-static-arp.xml.in new file mode 100644 index 000000000..e5e8a9ad9 --- /dev/null +++ b/interface-definitions/protocols-static-arp.xml.in @@ -0,0 +1,37 @@ + + + + + + + + + Static ARP translation + + ipv4 + IPv4 destination address + + + + + + + + + Translation MAC address + + macaddr + Hardware (MAC) address + + + + + + + + + + + + + diff --git a/interface-definitions/protocols-static.xml.in b/interface-definitions/protocols-static.xml.in index 3ad6434db..59a7927a5 100644 --- a/interface-definitions/protocols-static.xml.in +++ b/interface-definitions/protocols-static.xml.in @@ -1,193 +1,15 @@ - - + - + Static route parameters - - - Interface based static route - - ipv4net - Interface based static route - - - - - - - - - Next-hop interface [REQUIRED] - - - - - - #include - #include - #include - - - - - - - Interface based IPv6 static route - - ipv6net - Interface based IPv6 static route - - - - - - - - - Next-hop interface [REQUIRED] - - - - - - #include - #include - - - - #include - - - Static route - - ipv4net - Static route - - - - - - - - - Silently discard pkts when matched - - - #include - - - Tag value for this route - - u32:1-4294967295 - Tag value for this route - - - - - - - - - - - DHCP interface that supplies the next-hop IP address for this static route - - - - - txt - DHCP interface - - - - - - Next-hop router - - ipv4 - Next-hop router - - - - - - - #include - #include - - - IPv4 gateway interface name - - - - - txt - IPv4 gateway interface name - - - - #include - - - - - - - Static IPv6 route - - ipv6net - Static IPv6 route - - - - - - - - - Silently discard pkts when matched - - - #include - - - - - Next-hop IPv6 router [REQUIRED] - - ipv6 - Next-hop IPv6 router [REQUIRED] - - - - - - - #include - #include - - - IPv6 gateway interface name - - - - - txt - IPv6 gateway interface name - - - - #include - - - - + #include + #include Policy route table number @@ -200,159 +22,8 @@ - - - Interface based static route - - ipv4net - Interface based static route - - - - - - - - - Next-hop interface [REQUIRED] - - - - - - #include - #include - - - - - - - Interface based IPv6 static route - - ipv6net - Interface based IPv6 static route - - - - - - - - - Next-hop interface [REQUIRED] - - - - - - #include - #include - - - - - - - Static route - - ipv4net - Static route - - - - - - - - - Silently discard pkts when matched - - - #include - - - - - DHCP interface that supplies the next-hop IP address for this static route - - - - - txt - DHCP interface - - - - - - Next-hop router - - ipv4 - Next-hop router - - - - - - - #include - #include - - - IPv4 gateway interface name - - - - - txt - IPv4 gateway interface name - - - - #include - - - - - - - Static IPv6 route - - ipv6net - Static IPv6 route - - - - - - - - - Silently discard pkts when matched - - - #include - - - - - Next-hop IPv6 router [REQUIRED] - - ipv6 - Next-hop IPv6 router [REQUIRED] - - - - - - - #include - #include - - - - + #include + #include -- cgit v1.2.3