From d8d466bff36bbe2fb87cc7c1156ba307cb41a794 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Mon, 1 Feb 2021 17:28:11 +0000 Subject: vrf: T3278: Add XML for conf-mode --- Makefile | 1 + interface-definitions/protocols-vrf.xml.in | 359 +++++++++++++++++++++++++++++ 2 files changed, 360 insertions(+) create mode 100644 interface-definitions/protocols-vrf.xml.in diff --git a/Makefile b/Makefile index 66b1e8bb7..19911fa58 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,7 @@ interface_definitions: $(config_xml_obj) rm -f $(TMPL_DIR)/vpn/node.def rm -f $(TMPL_DIR)/vpn/ipsec/node.def rm -rf $(TMPL_DIR)/vpn/nipsec + rm -rf $(TMPL_DIR)/protocols/nvrf # XXX: required until OSPF and RIP is migrated from vyatta-cfg-quagga to vyos-1x mkdir $(TMPL_DIR)/interfaces/loopback/node.tag/ipv6 diff --git a/interface-definitions/protocols-vrf.xml.in b/interface-definitions/protocols-vrf.xml.in new file mode 100644 index 000000000..d58f85b02 --- /dev/null +++ b/interface-definitions/protocols-vrf.xml.in @@ -0,0 +1,359 @@ + + + + + + + + Name of VRF to add route for + + txt + Name of VRF to add route for + + + protocols vrf + + + + + + Static route parameters + + + + + Interface based static route + + ipv4net + Interface based static route + + + + + + + + + Next-hop interface [REQUIRED] + + + + + + + + Disable IPv4 interface static route + + + + + + Distance for this route + + u32:1-255 + Distance for this route + + + + + + + + + VRF to leak route + + txt + Name of VRF to leak to + + + default + Name of VRF to leak to + + + default + protocols vrf + + + ^[a-zA-Z0-9\-_]{1,100}$ + + + + + + + + + + Interface based IPv6 static route + + ipv6net + Interface based IPv6 static route + + + + + + + + + Next-hop interface [REQUIRED] + + + + + + + + Disable IPv6 interface static route + + + + + + Distance for this route + + u32:1-255 + Distance for this route + + + + + + + + + VRF to leak route + + txt + Name of VRF to leak to + + + default + Name of VRF to leak to + + + default + protocols vrf + + + ^[a-zA-Z0-9\-_]{1,100}$ + + + + + + + + + + VRF static IPv4 route + + ipv4net + VRF static IPv4 route + + + + + + + + + Silently discard pkts when matched + + + + + Distance value for this route + + u32:1-255 + Distance 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 + + + + + + + + + Disable IPv4 interface static route + + + + + + Distance for this route + + u32:1-255 + Distance for this route + + + + + + + + + IPv4 gateway interface name + + + + + txt + IPv4 gateway interface name + + + + + + VRF to leak route + + txt + Name of VRF to leak to + + + default + Name of VRF to leak to + + + default + protocols vrf + + + ^[a-zA-Z0-9\-_]{1,100}$ + + + + + + + + + + VRF static IPv6 route + + ipv6net + VRF static IPv6 route + + + + + + + + + Silently discard pkts when matched + + + + + Distance value for this route + + u32:1-255 + Distance for this route + + + + + + + + + + + Next-hop IPv6 router [REQUIRED] + + ipv6 + Next-hop IPv6 router [REQUIRED] + + + + + + + + + Disable IPv6 interface static route + + + + + + Distance for this route + + u32:1-255 + Distance for this route + + + + + + + + + IPv6 gateway interface name + + + + + txt + IPv6 gateway interface name + + + + + + VRF to leak route + + txt + Name of VRF to leak to + + + default + Name of VRF to leak to + + + default + protocols vrf + + + ^[a-zA-Z0-9\-_]{1,100}$ + + + + + + + + + + + + + + -- cgit v1.2.3