diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-03-03 20:01:56 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-04 21:43:59 +0100 |
commit | 665d1c5bdb24aa0aef79405dc2f2962b930fb9b3 (patch) | |
tree | 467499a4ce63308ca6d1e349b13f1e807ba4703e /op-mode-definitions/show-vrf.xml | |
parent | dac5ad318b00853591121078bce5c849db23c810 (diff) | |
download | vyos-1x-665d1c5bdb24aa0aef79405dc2f2962b930fb9b3.tar.gz vyos-1x-665d1c5bdb24aa0aef79405dc2f2962b930fb9b3.zip |
vrf: T31: initial support for a VRF backend in XML/Python
This is a work in progress to complete T31 whoever thought it was less than
1 hour of work was ..... optimistic.
Only VRF vreation and show is supported right now. No interface can be bound
to any one VRF.
Diffstat (limited to 'op-mode-definitions/show-vrf.xml')
-rw-r--r-- | op-mode-definitions/show-vrf.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/op-mode-definitions/show-vrf.xml b/op-mode-definitions/show-vrf.xml new file mode 100644 index 000000000..fb2fddd49 --- /dev/null +++ b/op-mode-definitions/show-vrf.xml @@ -0,0 +1,24 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="vrf"> + <properties> + <help>Show VRF information</help> + </properties> + <command>${vyos_completion_dir}/list_vrf.py -e</command> + <children> + <tagNode name="name"> + <properties> + <help>Show VRF information for an interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_vrf.py</script> + </completionHelp> + </properties> + <command>${vyos_completion_dir}/list_vrf.py -e "$4"</command> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |