Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F119900957
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
255 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Makefile b/Makefile
index 588595e42..3f13c66a0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,134 +1,133 @@
TMPL_DIR := templates-cfg
OP_TMPL_DIR := templates-op
BUILD_DIR := build
DATA_DIR := data
SHIM_DIR := src/shim
XDP_DIR := src/xdp
CC := gcc
LIBS := -lzmq
CFLAGS :=
-src = $(wildcard interface-definitions/*.xml.in)
-obj = $(src:.xml.in=.xml)
+config_xml_src = $(wildcard interface-definitions/*.xml.in)
+config_xml_obj = $(config_xml_src:.xml.in=.xml)
+op_xml_src = $(wildcard op-mode-definitions/*.xml.in)
+op_xml_obj = $(op_xml_src:.xml.in=.xml)
%.xml: %.xml.in
@echo Generating $(BUILD_DIR)/$@ from $<
# -ansi This turns off certain features of GCC that are incompatible
# with ISO C90. Without this regexes containing '/' as in an URL
# won't work
# -x c By default GCC guesses the input language from its file extension,
# thus XML is unknown. Force it to C language
# -E Stop after the preprocessing stage
# -undef Do not predefine any system-specific or GCC-specific macros.
# -nostdinc Do not search the standard system directories for header files
# -P Inhibit generation of linemarkers in the output from the
# preprocessor
- @$(CC) -x c-header -E -undef -nostdinc -P -I$(CURDIR)/interface-definitions -o $(BUILD_DIR)/$@ -c $<
-
-$(BUILD_DIR):
- install -d -m 0755 $(BUILD_DIR)/interface-definitions
- install -d -m 0755 $(BUILD_DIR)/op-mode-definitions
+ mkdir -p $(BUILD_DIR)/$(dir $@)
+ @$(CC) -x c-header -E -undef -nostdinc -P -I$(CURDIR)/$(dir $<) -o $(BUILD_DIR)/$@ -c $<
.PHONY: interface_definitions
.ONESHELL:
-interface_definitions: $(BUILD_DIR) $(obj)
+interface_definitions: $(config_xml_obj)
mkdir -p $(TMPL_DIR)
find $(BUILD_DIR)/interface-definitions -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-templates {} $(CURDIR)/schema/interface_definition.rng $(TMPL_DIR) || exit 1
# XXX: delete top level node.def's that now live in other packages
rm -f $(TMPL_DIR)/firewall/node.def
rm -f $(TMPL_DIR)/interfaces/node.def
rm -f $(TMPL_DIR)/protocols/node.def
rm -rf $(TMPL_DIR)/protocols/nbgp
rm -f $(TMPL_DIR)/protocols/static/node.def
rm -f $(TMPL_DIR)/policy/node.def
rm -f $(TMPL_DIR)/system/node.def
rm -f $(TMPL_DIR)/vpn/node.def
rm -f $(TMPL_DIR)/vpn/ipsec/node.def
rm -rf $(TMPL_DIR)/vpn/nipsec
# XXX: required until OSPF and RIP is migrated from vyatta-cfg-quagga to vyos-1x
mkdir $(TMPL_DIR)/interfaces/loopback/node.tag/ipv6
mkdir $(TMPL_DIR)/interfaces/dummy/node.tag/ipv6
mkdir $(TMPL_DIR)/interfaces/openvpn/node.tag/ip
mkdir -p $(TMPL_DIR)/interfaces/vti/node.tag/ip
mkdir -p $(TMPL_DIR)/interfaces/vti/node.tag/ipv6
cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ipv6/node.def $(TMPL_DIR)/interfaces/loopback/node.tag/ipv6
cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ipv6/node.def $(TMPL_DIR)/interfaces/dummy/node.tag/ipv6
cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ip/node.def $(TMPL_DIR)/interfaces/openvpn/node.tag/ip
cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ip/node.def $(TMPL_DIR)/interfaces/vti/node.tag/ip
cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ipv6/node.def $(TMPL_DIR)/interfaces/vti/node.tag/ipv6
.PHONY: op_mode_definitions
.ONESHELL:
-op_mode_definitions:
+op_mode_definitions: $(op_xml_obj)
mkdir -p $(OP_TMPL_DIR)
- find $(CURDIR)/op-mode-definitions/ -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) || exit 1
+ find $(BUILD_DIR)/op-mode-definitions/ -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) || exit 1
# XXX: delete top level op mode node.def's that now live in other packages
rm -f $(OP_TMPL_DIR)/add/node.def
rm -f $(OP_TMPL_DIR)/clear/interfaces/node.def
rm -f $(OP_TMPL_DIR)/clear/node.def
rm -f $(OP_TMPL_DIR)/delete/node.def
rm -f $(OP_TMPL_DIR)/generate/node.def
rm -f $(OP_TMPL_DIR)/monitor/node.def
rm -f $(OP_TMPL_DIR)/reset/vpn/node.def
rm -f $(OP_TMPL_DIR)/set/node.def
rm -f $(OP_TMPL_DIR)/show/interfaces/node.def
rm -f $(OP_TMPL_DIR)/show/node.def
rm -f $(OP_TMPL_DIR)/show/system/node.def
rm -f $(OP_TMPL_DIR)/show/vpn/node.def
# XXX: ping must be able to recursivly call itself as the
# options are provided from the script itself
ln -s ../node.tag $(OP_TMPL_DIR)/ping/node.tag/node.tag/
.PHONY: component_versions
.ONESHELL:
-component_versions: $(BUILD_DIR) $(obj)
+component_versions: interface_definitions
$(CURDIR)/scripts/build-component-versions $(BUILD_DIR)/interface-definitions $(DATA_DIR)
.PHONY: vyshim
vyshim:
$(MAKE) -C $(SHIM_DIR)
.PHONY: vyxdp
vyxdp:
$(MAKE) -C $(XDP_DIR)
.PHONY: all
all: clean interface_definitions op_mode_definitions component_versions vyshim vyxdp
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)
rm -rf $(TMPL_DIR)
rm -rf $(OP_TMPL_DIR)
$(MAKE) -C $(SHIM_DIR) clean
$(MAKE) -C $(XDP_DIR) clean
.PHONY: test
test:
set -e; python3 -m compileall -q .
PYTHONPATH=python/ python3 -m "nose" --with-xunit src --with-coverage --cover-erase --cover-xml --cover-package src/conf_mode,src/op_mode,src/completion,src/helpers,src/validators,src/tests --verbose
.PHONY: sonar
sonar:
sonar-scanner -X -Dsonar.login=${SONAR_TOKEN}
.PHONY: docs
.ONESHELL:
docs:
sphinx-apidoc -o sphinx/source/ python/
cd sphinx/
PYTHONPATH=../python make html
deb:
dpkg-buildpackage -uc -us -tc -b
.PHONY: schema
schema:
trang -I rnc -O rng schema/interface_definition.rnc schema/interface_definition.rng
trang -I rnc -O rng schema/op-mode-definition.rnc schema/op-mode-definition.rng
diff --git a/debian/control b/debian/control
index f7d9fccf6..d0ba72bcf 100644
--- a/debian/control
+++ b/debian/control
@@ -1,147 +1,148 @@
Source: vyos-1x
Section: contrib/net
Priority: extra
Maintainer: VyOS Package Maintainers <maintainers@vyos.net>
Build-Depends:
debhelper (>= 9),
fakeroot,
gcc-multilib [amd64],
clang [amd64],
llvm [amd64],
libelf-dev (>= 0.2) [amd64],
libpcap-dev [amd64],
build-essential,
libvyosconfig0 (>= 0.0.7),
libzmq3-dev,
python3,
python3-coverage,
python3-lxml,
python3-netifaces,
python3-nose,
python3-jinja2,
python3-psutil,
python3-setuptools,
+ python3-sphinx,
python3-xmltodict,
quilt,
whois
Standards-Version: 3.9.6
Package: vyos-1x
Architecture: amd64 arm64
Depends:
accel-ppp,
beep,
bmon,
bsdmainutils,
conntrack,
conserver-client,
conserver-server,
console-data,
crda,
cron,
dbus,
ddclient (>= 3.9.1),
dropbear,
easy-rsa,
etherwake,
fastnetmon,
file,
frr,
frr-pythontools,
hostapd (>= 0.6.8),
hvinfo,
igmpproxy,
ipaddrcheck,
iperf,
iperf3,
iputils-arping,
isc-dhcp-client,
isc-dhcp-relay,
isc-dhcp-server,
iw,
keepalived (>=2.0.5),
lcdproc,
libatomic1,
libndp-tools,
libpam-radius-auth (>= 1.5.0),
libvyosconfig0,
lldpd,
lm-sensors,
lsscsi,
mdns-repeater,
mtr-tiny,
netplug,
nftables (>= 0.9.3),
nginx-light,
ntp,
ntpdate,
ocserv,
openssh-server,
openssl,
openvpn,
openvpn-auth-ldap,
openvpn-auth-radius,
pciutils,
pdns-recursor,
pmacct (>= 1.6.0),
pppoe,
procps,
python3,
python3-certbot-nginx,
${python3:Depends},
python3-flask,
python3-hurry.filesize,
python3-isc-dhcp-leases,
python3-jinja2,
python3-jmespath,
python3-netaddr,
python3-netifaces,
python3-psutil,
python3-pystache,
python3-pyudev,
python3-six,
python3-tabulate,
python3-vici (>= 5.7.2),
python3-voluptuous,
python3-waitress,
python3-xmltodict,
python3-zmq,
radvd,
salt-minion,
snmp,
snmpd,
squid,
squidclient,
squidguard,
ssl-cert,
systemd,
tcpdump,
tcptraceroute,
telnet,
tftpd-hpa,
traceroute,
tuned,
udp-broadcast-relay,
usb-modeswitch,
usbutils,
vyos-utils,
wide-dhcpv6-client,
wireguard-tools,
wireless-regdb,
wpasupplicant (>= 0.6.7)
Description: VyOS configuration scripts and data
VyOS configuration scripts, interface definitions, and everything
Package: vyos-1x-vmware
Architecture: amd64
Depends:
vyos-1x,
open-vm-tools
Description: VyOS configuration scripts and data for VMware
Adds configuration files required for VyOS running on VMware hosts.
Package: vyos-1x-smoketest
Architecture: all
Depends:
vyos-1x
Description: VyOS build sanity checking toolkit
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in
index 34e14d8e7..919974eeb 100644
--- a/interface-definitions/system-login.xml.in
+++ b/interface-definitions/system-login.xml.in
@@ -1,155 +1,155 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="system">
<children>
<node name="login" owner="${vyos_conf_scripts_dir}/system-login.py">
<properties>
<help>System User Login Configuration</help>
<priority>400</priority>
</properties>
<children>
<tagNode name="user">
<properties>
<help>Local user account information</help>
<constraint>
<regex>[a-zA-Z0-9\-_\.]{1,100}</regex>
</constraint>
<constraintErrorMessage>Username contains illegal characters or\nexceeds 100 character limitation.</constraintErrorMessage>
</properties>
<children>
<node name="authentication">
<properties>
<help>Password authentication</help>
</properties>
<children>
<leafNode name="encrypted-password">
<properties>
<help>Encrypted password</help>
<constraint>
<regex>(\*|\!)</regex>
<regex>[a-zA-Z0-9\.\/]{13}$</regex>
<regex>\$1\$[a-zA-Z0-9\./]*\$[a-zA-Z0-9\./]{22}</regex>
<regex>\$5\$[a-zA-Z0-9\./]*\$[a-zA-Z0-9\./]{43}</regex>
<regex>\$6\$[a-zA-Z0-9\./]*\$[a-zA-Z0-9\./]{86}</regex>
</constraint>
<constraintErrorMessage>Invalid encrypted password for $VAR(../../@).</constraintErrorMessage>
</properties>
<defaultValue>!</defaultValue>
</leafNode>
<leafNode name="plaintext-password">
<properties>
<help>Plaintext password used for encryption</help>
</properties>
</leafNode>
<tagNode name="public-keys">
<properties>
<help>Remote access public keys</help>
<valueHelp>
<format>txt</format>
<description>Key identifier used by ssh-keygen (usually of form user@host)</description>
</valueHelp>
</properties>
<children>
<leafNode name="key">
<properties>
<help>Public key value (base64-encoded)</help>
</properties>
</leafNode>
<leafNode name="options">
<properties>
<help>Optional public key options</help>
</properties>
</leafNode>
<leafNode name="type">
<properties>
<help>Public key type</help>
<completionHelp>
<list>ssh-dss ssh-rsa ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519</list>
</completionHelp>
<valueHelp>
<format>ssh-dss</format>
<description/>
</valueHelp>
<valueHelp>
<format>ssh-rsa</format>
<description/>
</valueHelp>
<valueHelp>
<format>ecdsa-sha2-nistp256</format>
<description/>
</valueHelp>
<valueHelp>
<format>ecdsa-sha2-nistp384</format>
<description/>
</valueHelp>
<valueHelp>
<format>ssh-ed25519</format>
<description/>
</valueHelp>
<constraint>
<regex>^(ssh-dss|ssh-rsa|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521|ssh-ed25519)$</regex>
</constraint>
</properties>
</leafNode>
</children>
</tagNode>
</children>
- </node>
+ </node>
<leafNode name="full-name">
<properties>
<help>Full name of the user (use quotes for names with spaces)</help>
<constraint>
<regex>[^:]*$</regex>
</constraint>
<constraintErrorMessage>Cannot use ':' in full name</constraintErrorMessage>
</properties>
</leafNode>
<leafNode name="home-directory">
<properties>
<help>Home directory</help>
</properties>
</leafNode>
</children>
</tagNode>
#include <include/radius-server-ipv4-ipv6.xml.i>
<node name="radius">
<children>
<tagNode name="server">
<children>
<leafNode name="timeout">
<properties>
<help>Session timeout</help>
<valueHelp>
<format>u32:1-30</format>
<description>Session timeout in seconds (default: 2)</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 1-30"/>
</constraint>
<constraintErrorMessage>Timeout must be between 1 and 30 seconds</constraintErrorMessage>
</properties>
<defaultValue>2</defaultValue>
</leafNode>
<leafNode name="priority">
<properties>
<help>Server priority</help>
<valueHelp>
<format>u32:1-255</format>
<description>Server priority (default: 255)</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 1-255"/>
</constraint>
</properties>
<defaultValue>255</defaultValue>
</leafNode>
</children>
</tagNode>
#include <include/interface-vrf.xml.i>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/add-system-image.xml b/op-mode-definitions/add-system-image.xml.in
similarity index 96%
rename from op-mode-definitions/add-system-image.xml
rename to op-mode-definitions/add-system-image.xml.in
index 3dc1c67ab..67d8aa3b4 100644
--- a/op-mode-definitions/add-system-image.xml
+++ b/op-mode-definitions/add-system-image.xml.in
@@ -1,62 +1,62 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="add">
<children>
<node name="system">
<properties>
<help>Add item to a system facility</help>
</properties>
<children>
<tagNode name="image">
<properties>
<help>Add a new image to the system</help>
<completionHelp>
- <list>/path/to/vyos-image.iso http://example.com/vyos-image.iso</list>
+ <list>/path/to/vyos-image.iso "http://example.com/vyos-image.iso"</list>
</completionHelp>
</properties>
<command>sudo ${vyatta_sbindir}/install-image --url "${4}"</command>
<children>
<tagNode name="vrf">
<properties>
<help>Download image via specified VRF</help>
<completionHelp>
<path>vrf name</path>
</completionHelp>
</properties>
<command>sudo ${vyatta_sbindir}/install-image --url "${4}" --vrf "${6}"</command>
<children>
<tagNode name="username">
<properties>
<help>Username for authentication</help>
</properties>
<children>
<tagNode name="password">
<properties>
<help>Password to use with authentication</help>
</properties>
<command>sudo ${vyatta_sbindir}/install-image --url "${4}" --vrf "${6}" --username "${8}" --password "${10}"</command>
</tagNode>
</children>
</tagNode>
</children>
</tagNode>
<tagNode name="username">
<properties>
<help>Username for authentication</help>
</properties>
<children>
<tagNode name="password">
<properties>
<help>Password to use with authentication</help>
</properties>
<command>sudo ${vyatta_sbindir}/install-image --url "${4}" --username "${6}" --password "${8}"</command>
</tagNode>
</children>
</tagNode>
</children>
</tagNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/clear-ip.xml b/op-mode-definitions/clear-ip.xml.in
similarity index 100%
rename from op-mode-definitions/clear-ip.xml
rename to op-mode-definitions/clear-ip.xml.in
diff --git a/op-mode-definitions/clear-ipv6.xml b/op-mode-definitions/clear-ipv6.xml.in
similarity index 100%
rename from op-mode-definitions/clear-ipv6.xml
rename to op-mode-definitions/clear-ipv6.xml.in
diff --git a/op-mode-definitions/configure.xml b/op-mode-definitions/configure.xml.in
similarity index 100%
rename from op-mode-definitions/configure.xml
rename to op-mode-definitions/configure.xml.in
diff --git a/op-mode-definitions/connect.xml b/op-mode-definitions/connect.xml.in
similarity index 100%
rename from op-mode-definitions/connect.xml
rename to op-mode-definitions/connect.xml.in
diff --git a/op-mode-definitions/date.xml b/op-mode-definitions/date.xml.in
similarity index 100%
rename from op-mode-definitions/date.xml
rename to op-mode-definitions/date.xml.in
diff --git a/op-mode-definitions/dhcp.xml b/op-mode-definitions/dhcp.xml.in
similarity index 100%
rename from op-mode-definitions/dhcp.xml
rename to op-mode-definitions/dhcp.xml.in
diff --git a/op-mode-definitions/disconnect.xml b/op-mode-definitions/disconnect.xml.in
similarity index 100%
rename from op-mode-definitions/disconnect.xml
rename to op-mode-definitions/disconnect.xml.in
diff --git a/op-mode-definitions/disks.xml b/op-mode-definitions/disks.xml.in
similarity index 100%
rename from op-mode-definitions/disks.xml
rename to op-mode-definitions/disks.xml.in
diff --git a/op-mode-definitions/dns-dynamic.xml b/op-mode-definitions/dns-dynamic.xml.in
similarity index 100%
rename from op-mode-definitions/dns-dynamic.xml
rename to op-mode-definitions/dns-dynamic.xml.in
diff --git a/op-mode-definitions/dns-forwarding.xml b/op-mode-definitions/dns-forwarding.xml.in
similarity index 100%
rename from op-mode-definitions/dns-forwarding.xml
rename to op-mode-definitions/dns-forwarding.xml.in
diff --git a/op-mode-definitions/flow-accounting-op.xml b/op-mode-definitions/flow-accounting-op.xml.in
similarity index 100%
rename from op-mode-definitions/flow-accounting-op.xml
rename to op-mode-definitions/flow-accounting-op.xml.in
diff --git a/op-mode-definitions/force-arp.xml b/op-mode-definitions/force-arp.xml.in
similarity index 100%
rename from op-mode-definitions/force-arp.xml
rename to op-mode-definitions/force-arp.xml.in
diff --git a/op-mode-definitions/force-ipv6-nd.xml b/op-mode-definitions/force-ipv6-nd.xml.in
similarity index 100%
rename from op-mode-definitions/force-ipv6-nd.xml
rename to op-mode-definitions/force-ipv6-nd.xml.in
diff --git a/op-mode-definitions/force-ipv6-rd.xml b/op-mode-definitions/force-ipv6-rd.xml.in
similarity index 100%
rename from op-mode-definitions/force-ipv6-rd.xml
rename to op-mode-definitions/force-ipv6-rd.xml.in
diff --git a/op-mode-definitions/force-mtu-host.xml b/op-mode-definitions/force-mtu-host.xml.in
similarity index 100%
rename from op-mode-definitions/force-mtu-host.xml
rename to op-mode-definitions/force-mtu-host.xml.in
diff --git a/op-mode-definitions/generate-macsec-key.xml b/op-mode-definitions/generate-macsec-key.xml.in
similarity index 100%
rename from op-mode-definitions/generate-macsec-key.xml
rename to op-mode-definitions/generate-macsec-key.xml.in
diff --git a/op-mode-definitions/generate-ssh-server-key.xml b/op-mode-definitions/generate-ssh-server-key.xml.in
similarity index 100%
rename from op-mode-definitions/generate-ssh-server-key.xml
rename to op-mode-definitions/generate-ssh-server-key.xml.in
diff --git a/op-mode-definitions/igmp-proxy.xml b/op-mode-definitions/igmp-proxy.xml.in
similarity index 100%
rename from op-mode-definitions/igmp-proxy.xml
rename to op-mode-definitions/igmp-proxy.xml.in
diff --git a/op-mode-definitions/include/monitor-background.xml.i b/op-mode-definitions/include/monitor-background.xml.i
new file mode 100644
index 000000000..9931127e3
--- /dev/null
+++ b/op-mode-definitions/include/monitor-background.xml.i
@@ -0,0 +1,21 @@
+<!-- included start from monitor-background.xml.i -->
+<node name="background">
+ <properties>
+ <help>Monitor in background</help>
+ </properties>
+ <children>
+ <node name="start">
+ <properties>
+ <help>Start background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background ${3^^} ${3}</command>
+ </node>
+ <node name="stop">
+ <properties>
+ <help>Stop background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background-stop ${3^^}</command>
+ </node>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i b/op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i
new file mode 100644
index 000000000..8dbb5acea
--- /dev/null
+++ b/op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i
@@ -0,0 +1,36 @@
+<!-- included start from monitor-ospf-packet-detail.xml.i -->
+<node name="detail">
+ <properties>
+ <help>Disable detailed OSPF packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+</node>
+<node name="recv">
+ <properties>
+ <help>Disable OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Disable detailed OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<node name="send">
+ <properties>
+ <help>Disable OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Disable detailed OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/monitor-ospf-packet-detail.xml.i b/op-mode-definitions/include/monitor-ospf-packet-detail.xml.i
new file mode 100644
index 000000000..a4bd33673
--- /dev/null
+++ b/op-mode-definitions/include/monitor-ospf-packet-detail.xml.i
@@ -0,0 +1,36 @@
+<!-- included start from monitor-ospf-packet-detail.xml.i -->
+<node name="detail">
+ <properties>
+ <help>Enable detailed OSPF packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+</node>
+<node name="recv">
+ <properties>
+ <help>Enable OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Enable detailed OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<node name="send">
+ <properties>
+ <help>Enable OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Enable detailed OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-adv-router-id-node-tag.xml.i b/op-mode-definitions/include/ospfv3-adv-router-id-node-tag.xml.i
new file mode 100644
index 000000000..312ce2a4f
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-adv-router-id-node-tag.xml.i
@@ -0,0 +1,17 @@
+<!-- included start from ospfv3-adv-router-id-node-tag.xml.i -->
+<node name="node.tag">
+ <properties>
+ <help>Search by Advertising Router ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-adv-router.xml.i b/op-mode-definitions/include/ospfv3-adv-router.xml.i
new file mode 100644
index 000000000..d17538d4d
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-adv-router.xml.i
@@ -0,0 +1,16 @@
+<!-- included start from ospfv3-adv-router.xml.i -->
+<tagNode name="adv-router">
+ <properties>
+ <help>Search by Advertising Router ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ </children>
+</tagNode>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-detail.xml.i b/op-mode-definitions/include/ospfv3-detail.xml.i
new file mode 100644
index 000000000..76096fbc8
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-detail.xml.i
@@ -0,0 +1,9 @@
+<!-- included start from ospfv3-detail.xml.i -->
+<node name="detail">
+ <properties>
+ <help>Show detailed information</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-dump.xml.i b/op-mode-definitions/include/ospfv3-dump.xml.i
new file mode 100644
index 000000000..4271aec53
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-dump.xml.i
@@ -0,0 +1,9 @@
+<!-- included start from ospfv3-dump.xml.i -->
+<node name="dump">
+ <properties>
+ <help>Show dump of LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-internal.xml.i b/op-mode-definitions/include/ospfv3-internal.xml.i
new file mode 100644
index 000000000..8b45e86c1
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-internal.xml.i
@@ -0,0 +1,9 @@
+<!-- included start from ospfv3-internal.xml.i -->
+<node name="internal">
+ <properties>
+ <help>Show internal LSA information</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-linkstate-id-node-tag.xml.i b/op-mode-definitions/include/ospfv3-linkstate-id-node-tag.xml.i
new file mode 100644
index 000000000..24b549d28
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-linkstate-id-node-tag.xml.i
@@ -0,0 +1,18 @@
+<!-- included start from ospfv3-linkstate-id-node-tag.xml.i -->
+<node name="node.tag">
+ <properties>
+ <help>Search by Link state ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-linkstate-id.xml.i b/op-mode-definitions/include/ospfv3-linkstate-id.xml.i
new file mode 100644
index 000000000..eab5916f1
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-linkstate-id.xml.i
@@ -0,0 +1,15 @@
+<!-- included start from ospfv3-linkstate-id.xml.i -->
+<tagNode name="linkstate-id">
+ <properties>
+ <help>Search by Link state ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ </children>
+</tagNode>
+<!-- included end -->
diff --git a/op-mode-definitions/include/ospfv3-self-originated.xml.i b/op-mode-definitions/include/ospfv3-self-originated.xml.i
new file mode 100644
index 000000000..180bca6f6
--- /dev/null
+++ b/op-mode-definitions/include/ospfv3-self-originated.xml.i
@@ -0,0 +1,14 @@
+<!-- included start from ospfv3-self-originated.xml.i -->
+<node name="self-originated">
+ <properties>
+ <help>Show Self-originated LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/ipoe-server.xml b/op-mode-definitions/ipoe-server.xml.in
similarity index 100%
rename from op-mode-definitions/ipoe-server.xml
rename to op-mode-definitions/ipoe-server.xml.in
diff --git a/op-mode-definitions/ipv4-route.xml b/op-mode-definitions/ipv4-route.xml.in
similarity index 100%
rename from op-mode-definitions/ipv4-route.xml
rename to op-mode-definitions/ipv4-route.xml.in
diff --git a/op-mode-definitions/ipv6-route.xml b/op-mode-definitions/ipv6-route.xml.in
similarity index 100%
rename from op-mode-definitions/ipv6-route.xml
rename to op-mode-definitions/ipv6-route.xml.in
diff --git a/op-mode-definitions/l2tp-server.xml b/op-mode-definitions/l2tp-server.xml.in
similarity index 100%
rename from op-mode-definitions/l2tp-server.xml
rename to op-mode-definitions/l2tp-server.xml.in
diff --git a/op-mode-definitions/lldp.xml b/op-mode-definitions/lldp.xml.in
similarity index 100%
rename from op-mode-definitions/lldp.xml
rename to op-mode-definitions/lldp.xml.in
diff --git a/op-mode-definitions/monitor-bandwidth-test.xml b/op-mode-definitions/monitor-bandwidth-test.xml.in
similarity index 100%
rename from op-mode-definitions/monitor-bandwidth-test.xml
rename to op-mode-definitions/monitor-bandwidth-test.xml.in
diff --git a/op-mode-definitions/monitor-bandwidth.xml b/op-mode-definitions/monitor-bandwidth.xml.in
similarity index 100%
rename from op-mode-definitions/monitor-bandwidth.xml
rename to op-mode-definitions/monitor-bandwidth.xml.in
diff --git a/op-mode-definitions/monitor-log.xml b/op-mode-definitions/monitor-log.xml.in
similarity index 100%
rename from op-mode-definitions/monitor-log.xml
rename to op-mode-definitions/monitor-log.xml.in
diff --git a/op-mode-definitions/monitor-ndp.xml b/op-mode-definitions/monitor-ndp.xml.in
similarity index 100%
rename from op-mode-definitions/monitor-ndp.xml
rename to op-mode-definitions/monitor-ndp.xml.in
diff --git a/op-mode-definitions/monitor-protocol.xml.in b/op-mode-definitions/monitor-protocol.xml.in
new file mode 100644
index 000000000..6a6bd50f3
--- /dev/null
+++ b/op-mode-definitions/monitor-protocol.xml.in
@@ -0,0 +1,1542 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="monitor">
+ <children>
+ <node name="protocol">
+ <properties>
+ <help>Monitor routing protocols</help>
+ </properties>
+ <children>
+ <node name="bgp">
+ <properties>
+ <help>Monitor the Border Gateway Protocol (BGP)</help>
+ </properties>
+ <children>
+ #include <include/monitor-background.xml.i>
+ <node name="disable">
+ <properties>
+ <help>Disable Border Gateway Protocol (BGP) debugging</help>
+ </properties>
+ <children>
+ <node name="all">
+ <properties>
+ <help>Disable all BGP debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp"</command>
+ </node>
+ <node name="allow-martians">
+ <properties>
+ <help>Disable BGP martians next hops debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="as4">
+ <properties>
+ <help>Disable BGP allow AS4 actions debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="bestpath">
+ <properties>
+ <help>Disable BGP allow best path debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <tagNode name="bestpath">
+ <properties>
+ <help>Disable BGP bestpath IPv4 IPv6</help>
+ <completionHelp>
+ <list><x.x.x.x/x> <h:h:h:h:h:h:h:h/h></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </tagNode>
+ <node name="flowspec">
+ <properties>
+ <help>Disable BGP allow flowspec debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="keepalives">
+ <properties>
+ <help>Disable BGP keepalives debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="labelpool">
+ <properties>
+ <help>Disable BGP label pool debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="neighbor-events">
+ <properties>
+ <help>Disable BGP Neighbor events debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="nht">
+ <properties>
+ <help>Disable BGP next hop tracking debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="pbr">
+ <properties>
+ <help>Disable BGP policy based routing debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Disable BGP rib debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp zebra"</command>
+ </node>
+ <node name="update-groups">
+ <properties>
+ <help>Disable BGP update groups debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="updates">
+ <properties>
+ <help>Disable BGP updates debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="vnc">
+ <properties>
+ <help>Disable BGP VNC debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ <children>
+ <node name="import-bi-attach">
+ <properties>
+ <help>Disable BGP vnc import BI attachment debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="import-del-remote">
+ <properties>
+ <help>Disable BGP vnc import/delete remote routes debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="rfapi-query">
+ <properties>
+ <help>Disable BGP vnc rfapi query debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ <node name="verbose">
+ <properties>
+ <help>Disable BGP vnc verbose logging debugging</help>
+ </properties>
+ <command>vtysh -c "no debug bgp ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="enable">
+ <properties>
+ <help>Enable Border Gateway Protocol (BGP) debugging</help>
+ </properties>
+ <children>
+ <node name="allow-martians">
+ <properties>
+ <help>Enable BGP martians next hops debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="as4">
+ <properties>
+ <help>Enable BGP allow AS4 actions debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="bestpath">
+ <properties>
+ <help>Enable BGP allow best path debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <tagNode name="bestpath">
+ <properties>
+ <help>Debug bestpath IPv4 IPv6</help>
+ <completionHelp>
+ <list><x.x.x.x/x> <h:h:h:h:h:h:h:h/h></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </tagNode>
+ <node name="flowspec">
+ <properties>
+ <help>Enable BGP allow flowspec debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="keepalives">
+ <properties>
+ <help>Enable BGP keepalives debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="labelpool">
+ <properties>
+ <help>Enable BGP label pool debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="neighbor-events">
+ <properties>
+ <help>Enable BGP Neighbor events debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="nht">
+ <properties>
+ <help>Enable BGP next hop tracking debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="pbr">
+ <properties>
+ <help>Enable BGP policy based routing debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Enable BGP rib debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp zebra"</command>
+ </node>
+ <node name="update-groups">
+ <properties>
+ <help>Enable BGP update groups debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="updates">
+ <properties>
+ <help>Enable BGP updates debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="vnc">
+ <properties>
+ <help>Enable BGP VNC debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ <children>
+ <node name="import-bi-attach">
+ <properties>
+ <help>Enable BGP vnc import BI attachment debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="import-del-remote">
+ <properties>
+ <help>Enable BGP vnc import/delete remote routes debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="rfapi-query">
+ <properties>
+ <help>Enable BGP vnc rfapi query debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ <node name="verbose">
+ <properties>
+ <help>Enable BGP vnc verbose logging debugging</help>
+ </properties>
+ <command>vtysh -c "debug bgp ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="ospf">
+ <properties>
+ <help>Monitor the Open Shortest Path First (OSPF) protocol</help>
+ </properties>
+ <children>
+ #include <include/monitor-background.xml.i>
+
+
+ <node name="disable">
+ <children>
+ <node name="event">
+ <properties>
+ <help>Disable OSPF debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf"</command>
+ </node>
+ <node name="event">
+ <properties>
+ <help>Disable OSPF event debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="ism">
+ <properties>
+ <help>Disable OSPF ism debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Disable OSPF ism events debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="status">
+ <properties>
+ <help>Disable OSPF ism status debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="timers">
+ <properties>
+ <help>Disable OSPF ism timers debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="lsa">
+ <properties>
+ <help>Disable OSPF lsa debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ <node name="flooding">
+ <properties>
+ <help>Disable OSPF lsa flooding debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="generate">
+ <properties>
+ <help>Disable OSPF lsa generate debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="install">
+ <properties>
+ <help>Disable OSPF lsa install debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="refresh">
+ <properties>
+ <help>Disable OSPF lsa refresh debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="nsm">
+ <properties>
+ <help>Disable OSPF nsm debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Disable OSPF nsm events debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="status">
+ <properties>
+ <help>Disable OSPF nsm status debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="timers">
+ <properties>
+ <help>Disable OSPF nsm timers debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="nssa">
+ <properties>
+ <help>Disable OSPF nssa debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Disable OSPF packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ <node name="all">
+ <properties>
+ <help>Disable OSPF all packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-no-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="dd">
+ <properties>
+ <help>Disable OSPF dd packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-no-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="hello">
+ <properties>
+ <help>Disable OSPF hello packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-no-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="ls-ack">
+ <properties>
+ <help>Disable OSPF ls-ack packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-no-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="ls-request">
+ <properties>
+ <help>Disable OSPF ls-request packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-no-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="ls-update">
+ <properties>
+ <help>Disable OSPF ls-update packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-no-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Disable OSPF rib debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf zebra"</command>
+ <children>
+ <node name="interface">
+ <properties>
+ <help>Disable OSPF rib interface debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf zebra interface"</command>
+ </node>
+ <node name="redistribute">
+ <properties>
+ <help>Disable OSPF rib redistribute debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf zebra redistribute"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="enable">
+ <children>
+ <node name="event">
+ <properties>
+ <help>Enable OSPF event debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="ism">
+ <properties>
+ <help>Enable OSPF ism debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Enable OSPF ism events debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="status">
+ <properties>
+ <help>Enable OSPF ism status debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="timers">
+ <properties>
+ <help>Enable OSPF ism timers debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="lsa">
+ <properties>
+ <help>Enable OSPF lsa debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ <node name="flooding">
+ <properties>
+ <help>Enable OSPF lsa flooding debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="generate">
+ <properties>
+ <help>Enable OSPF lsa generate debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="install">
+ <properties>
+ <help>Enable OSPF lsa install debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="refresh">
+ <properties>
+ <help>Enable OSPF lsa refresh debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="nsm">
+ <properties>
+ <help>Enable OSPF nsm debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Enable OSPF nsm events debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="status">
+ <properties>
+ <help>Enable OSPF nsm status debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="timers">
+ <properties>
+ <help>Enable OSPF nsm timers debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="nssa">
+ <properties>
+ <help>Enable OSPF nssa debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Enable OSPF packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ <node name="all">
+ <properties>
+ <help>Enable OSPF all packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="dd">
+ <properties>
+ <help>Enable OSPF dd packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="hello">
+ <properties>
+ <help>Enable OSPF hello packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="ls-ack">
+ <properties>
+ <help>Enable OSPF ls-ack packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="ls-request">
+ <properties>
+ <help>Enable OSPF ls-request packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ <node name="ls-update">
+ <properties>
+ <help>Enable OSPF ls-update packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:5}"</command>
+ <children>
+ #include <include/monitor-ospf-packet-detail.xml.i>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Enable OSPF rib debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf zebra"</command>
+ <children>
+ <node name="interface">
+ <properties>
+ <help>Enable OSPF rib interface debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf zebra interface"</command>
+ </node>
+ <node name="redistribute">
+ <properties>
+ <help>Enable OSPF rib redistribute debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf zebra redistribute"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="ospfv3">
+ <properties>
+ <help>Monitor the IPv6 Open Shortest Path First (OSPFv3) protocol</help>
+ </properties>
+ <children>
+ <node name="background">
+ <properties>
+ <help>Monitor in background</help>
+ </properties>
+ <children>
+ <node name="start">
+ <properties>
+ <help>Start background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background OSPFv3 ospf6</command>
+ </node>
+ <node name="stop">
+ <properties>
+ <help>Stop background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background-stop OSPFv3</command>
+ </node>
+ </children>
+ </node>
+ <node name="disable">
+ <properties>
+ <help>Disable IPv6 Open Shortest Path First (OSPFv3) protocol debugging</help>
+ </properties>
+ <children>
+ <node name="abr">
+ <properties>
+ <help>Disable all OSPFv3 debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6"</command>
+ </node>
+ <node name="abr">
+ <properties>
+ <help>Disable OSPFv3 ABR debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="asbr">
+ <properties>
+ <help>Disable OSPFv3 ASBR debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="border-routers">
+ <properties>
+ <help>Disable OSPFv3 border router debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="area-id">
+ <properties>
+ <help>Disable debug border routers in specific Area</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="router-id">
+ <properties>
+ <help>Disable debug specific border router</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="flooding">
+ <properties>
+ <help>Disable OSPFv3 flooding debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="interface">
+ <properties>
+ <help>Disable OSPFv3 Interface debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsa">
+ <properties>
+ <help>Disable OSPFv3 Link State Advertisments debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="as-external">
+ <properties>
+ <help>Display As-External LSAs</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="inter-prefix">
+ <properties>
+ <help>Display Inter-Area-Prefix LSAs</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="inter-router">
+ <properties>
+ <help>Display Inter-Router LSAs</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="intra-prefix">
+ <properties>
+ <help>Display Intra-Area-Prefix LSAs</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="link">
+ <properties>
+ <help>Display Link LSAs</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="network">
+ <properties>
+ <help>Display Network LSAs</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="router">
+ <properties>
+ <help>Display Router LSAs</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="unknown">
+ <properties>
+ <help>Display LSAs of unknown origin</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="message">
+ <properties>
+ <help>Disable OSPFv3 message debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="all">
+ <properties>
+ <help>Debug All message</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="dbdesc">
+ <properties>
+ <help>Debug Database Description message</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="hello">
+ <properties>
+ <help>Debug Hello message</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsack">
+ <properties>
+ <help>Debug Link State Acknowledgement message</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsreq">
+ <properties>
+ <help>Debug Link State Request message</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsupdate">
+ <properties>
+ <help>Debug Link State Update message</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="unknown">
+ <properties>
+ <help>Debug Unknown message</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="neighbor">
+ <properties>
+ <help>Disable OSPFv3 Neighbor debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="event">
+ <properties>
+ <help>Debug OSPFv3 Neighbor Event</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="state">
+ <properties>
+ <help>Debug OSPFv3 Neighbor State Change</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Disable OSPFv3 connection to RIB debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="recv">
+ <properties>
+ <help>Debug receiving zebra</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Debug sending zebra</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="route">
+ <properties>
+ <help>Disable OSPFv3 route table calculation debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="inter-area">
+ <properties>
+ <help>Debug inter-area route calculation</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="intra-area">
+ <properties>
+ <help>Debug intra-area route calculation</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="memory">
+ <properties>
+ <help>Debug route memory use</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="table">
+ <properties>
+ <help>Debug route table calculation</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="spf">
+ <properties>
+ <help>Disable OSPFv3 SPF calculation debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="database">
+ <properties>
+ <help>Log number of LSAs at SPF Calculation time</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="process">
+ <properties>
+ <help>Debug Detailed SPF Process</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="time">
+ <properties>
+ <help>Measure time taken by SPF Calculation</help>
+ </properties>
+ <command>vtysh -c "no debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="enable">
+ <properties>
+ <help>Enable IPv6 Open Shortest Path First (OSPFv3) protocol debugging</help>
+ </properties>
+ <children>
+ <node name="abr">
+ <properties>
+ <help>Enable OSPFv3 ABR debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="asbr">
+ <properties>
+ <help>Enable OSPFv3 ASBR debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="border-routers">
+ <properties>
+ <help>Enable OSPFv3 border router debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="area-id">
+ <properties>
+ <help>Debug border routers in specific Area</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="router-id">
+ <properties>
+ <help>Debug specific border router</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="flooding">
+ <properties>
+ <help>Enable OSPFv3 flooding debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="interface">
+ <properties>
+ <help>Enable OSPFv3 Interface debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsa">
+ <properties>
+ <help>Enable OSPFv3 Link State Advertisments debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="as-external">
+ <properties>
+ <help>Display As-External LSAs</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="inter-prefix">
+ <properties>
+ <help>Display Inter-Area-Prefix LSAs</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="inter-router">
+ <properties>
+ <help>Display Inter-Router LSAs</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="intra-prefix">
+ <properties>
+ <help>Display Intra-Area-Prefix LSAs</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="link">
+ <properties>
+ <help>Display Link LSAs</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="network">
+ <properties>
+ <help>Display Network LSAs</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="router">
+ <properties>
+ <help>Display Router LSAs</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="unknown">
+ <properties>
+ <help>Display LSAs of unknown origin</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="message">
+ <properties>
+ <help>Enable OSPFv3 message debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="all">
+ <properties>
+ <help>Debug All message</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="dbdesc">
+ <properties>
+ <help>Debug Database Description message</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="hello">
+ <properties>
+ <help>Debug Hello message</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsack">
+ <properties>
+ <help>Debug Link State Acknowledgement message</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsreq">
+ <properties>
+ <help>Debug Link State Request message</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="lsupdate">
+ <properties>
+ <help>Debug Link State Update message</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="unknown">
+ <properties>
+ <help>Debug Unknown message</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="neighbor">
+ <properties>
+ <help>Enable OSPFv3 Neighbor debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="event">
+ <properties>
+ <help>Debug OSPFv3 Neighbor Event</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="state">
+ <properties>
+ <help>Debug OSPFv3 Neighbor State Change</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Enable OSPFv3 connection to RIB debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="recv">
+ <properties>
+ <help>Debug receiving zebra</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Debug sending zebra</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="route">
+ <properties>
+ <help>Enable OSPFv3 route table calculation debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="inter-area">
+ <properties>
+ <help>Debug inter-area route calculation</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="intra-area">
+ <properties>
+ <help>Debug intra-area route calculation</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="memory">
+ <properties>
+ <help>Debug route memory use</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="table">
+ <properties>
+ <help>Debug route table calculation</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="spf">
+ <properties>
+ <help>Enable OSPFv3 SPF calculation debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ <children>
+ <node name="database">
+ <properties>
+ <help>Log number of LSAs at SPF Calculation time</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="process">
+ <properties>
+ <help>Debug Detailed SPF Process</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ <node name="time">
+ <properties>
+ <help>Measure time taken by SPF Calculation</help>
+ </properties>
+ <command>vtysh -c "debug ospf6 ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Monitor the Routing Information Base (RIB)</help>
+ </properties>
+ <children>
+ <node name="background">
+ <properties>
+ <help>Monitor in background</help>
+ </properties>
+ <children>
+ <node name="start">
+ <properties>
+ <help>Start background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background RIB zebra</command>
+ </node>
+ <node name="stop">
+ <properties>
+ <help>Stop background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background-stop RIB</command>
+ </node>
+ </children>
+ </node>
+ <node name="disable">
+ <properties>
+ <help>Disable Route Information Base (RIB) debugging</help>
+ </properties>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Disable RIB events debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ <node name="kernel">
+ <properties>
+ <help>Disable RIB kernel debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Disable RIB packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Disable detailed debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ <node name="recv">
+ <properties>
+ <help>Disable receive packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Disable send packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="nexthop">
+ <properties>
+ <help>Disable RIB nexthop debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ <node name="mpls">
+ <properties>
+ <help>Disable RIP MPLS LSP debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Disable RIB debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ <children>
+ <node name="detailed">
+ <properties>
+ <help>Disable detailed debugging</help>
+ </properties>
+ <command>vtysh -c "no debug zebra ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="enable">
+ <properties>
+ <help>Enable Route Information Base (RIB) debugging</help>
+ </properties>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Enable RIB events debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ <node name="kernel">
+ <properties>
+ <help>Enable RIB kernel debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Enable RIB packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Enable detailed debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ <node name="recv">
+ <properties>
+ <help>Enable receive packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Enable send packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="nexthop">
+ <properties>
+ <help>Enable RIB nexthop debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ <node name="mpls">
+ <properties>
+ <help>Enable RIP MPLS LSP debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Enable RIB debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ <children>
+ <node name="detailed">
+ <properties>
+ <help>Enable detailed debugging</help>
+ </properties>
+ <command>vtysh -c "debug zebra ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="rip">
+ <properties>
+ <help>Monitor the Routing Information Protocol (RIP)</help>
+ </properties>
+ <children>
+ #include <include/monitor-background.xml.i>
+ <node name="disable">
+ <properties>
+ <help>Disable Routing Information Protocol (RIP) debugging</help>
+ </properties>
+ <children>
+ <node name="all">
+ <properties>
+ <help>Disable RIP debugging</help>
+ </properties>
+ <command>vtysh -c "no debug rip"</command>
+ </node>
+ <node name="events">
+ <properties>
+ <help>Disable RIP events debugging</help>
+ </properties>
+ <command>vtysh -c "no debug rip ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Disable RIP packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug rip ${@:5}"</command>
+ <children>
+ <node name="recv">
+ <properties>
+ <help>Disable receive packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug rip ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Disable send packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug rip ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Disable RIB debugging</help>
+ </properties>
+ <command>vtysh -c "no debug rip zebra"</command>
+ </node>
+ </children>
+ </node>
+ <node name="enable">
+ <properties>
+ <help>Enable Routing Information Protocol (RIP) debugging</help>
+ </properties>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Enable RIP events debugging</help>
+ </properties>
+ <command>vtysh -c "debug rip ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Enable RIP packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug rip ${@:5}"</command>
+ <children>
+ <node name="recv">
+ <properties>
+ <help>Enable receive packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug rip ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Enable send packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug rip ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Enable RIB debugging</help>
+ </properties>
+ <command>vtysh -c "debug rip zebra"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="ripng">
+ <properties>
+ <help>Monitor the Routing Information Protocol Next Generation (RIPng) protocol</help>
+ </properties>
+ <children>
+ #include <include/monitor-background.xml.i>
+ <node name="disable">
+ <properties>
+ <help>Disable Routing Information Protocol Next Generation (RIPNG) debugging</help>
+ </properties>
+ <children>
+ <node name="all">
+ <properties>
+ <help>Disable RIPNG debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ripng"</command>
+ </node>
+ <node name="events">
+ <properties>
+ <help>Disable RIPNG events debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ripng ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Disable RIPNG packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ripng ${@:5}"</command>
+ <children>
+ <node name="recv">
+ <properties>
+ <help>Disable receive packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ripng ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Disable send packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ripng ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Disable RIB debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ripng zebra"</command>
+ </node>
+ </children>
+ </node>
+ <node name="enable">
+ <properties>
+ <help>Enable Routing Information Protocol Next Generation (RIPNG) debugging</help>
+ </properties>
+ <children>
+ <node name="events">
+ <properties>
+ <help>Enable RIPNG events debugging</help>
+ </properties>
+ <command>vtysh -c "debug ripng ${@:5}"</command>
+ </node>
+ <node name="packet">
+ <properties>
+ <help>Enable RIPNG packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ripng ${@:5}"</command>
+ <children>
+ <node name="recv">
+ <properties>
+ <help>Enable receive packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ripng ${@:5}"</command>
+ </node>
+ <node name="send">
+ <properties>
+ <help>Enable send packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ripng ${@:5}"</command>
+ </node>
+ </children>
+ </node>
+ <node name="rib">
+ <properties>
+ <help>Enable RIB debugging</help>
+ </properties>
+ <command>vtysh -c "debug ripng zebra"</command>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/nat.xml b/op-mode-definitions/nat.xml.in
similarity index 95%
rename from op-mode-definitions/nat.xml
rename to op-mode-definitions/nat.xml.in
index f6c0fa748..4b09816f9 100644
--- a/op-mode-definitions/nat.xml
+++ b/op-mode-definitions/nat.xml.in
@@ -1,98 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="nat">
<properties>
<help>Show Network Address Translation (NAT) information</help>
</properties>
<children>
<node name="source">
<properties>
<help>Show source Network Address Translation (NAT) information</help>
</properties>
<children>
<node name="rules">
<properties>
<help>Show configured source NAT rules</help>
</properties>
- <command>echo To be migrated to Python - https://phabricator.vyos.net/T2459</command>
+ <command>echo To be migrated to Python - Phabricator T2459</command>
</node>
<node name="statistics">
<properties>
<help>Show statistics for configured source NAT rules</help>
</properties>
<command>${vyos_op_scripts_dir}/show_nat_statistics.py --source</command>
</node>
<node name="translations">
<properties>
<help>Show active source NAT translations</help>
</properties>
<children>
<tagNode name="address">
<properties>
<help>Show active source NAT translations for an IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/show_nat_translations.py --type=source --verbose --ipaddr="$6"</command>
</tagNode>
<node name="detail">
<properties>
<help>Show active source NAT translations detail</help>
</properties>
<command>${vyos_op_scripts_dir}/show_nat_translations.py --type=source --verbose</command>
</node>
</children>
<command>${vyos_op_scripts_dir}/show_nat_translations.py --type=source</command>
</node>
</children>
</node>
<node name="destination">
<properties>
<help>Show destination Network Address Translation (NAT) information</help>
</properties>
<children>
<node name="rules">
<properties>
<help>Show configured destination NAT rules</help>
</properties>
- <command>echo To be migrated to Python - https://phabricator.vyos.net/T2459</command>
+ <command>echo To be migrated to Python - Phabricator T2459</command>
</node>
<node name="statistics">
<properties>
<help>Show statistics for configured destination NAT rules</help>
</properties>
<command>${vyos_op_scripts_dir}/show_nat_statistics.py --destination</command>
</node>
<node name="translations">
<properties>
<help>Show active destination NAT translations</help>
</properties>
<children>
<tagNode name="address">
<properties>
<help>Show active NAT destination translations for an IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/show_nat_translations.py --type=destination --verbose --ipaddr="$6"</command>
</tagNode>
<node name="detail">
<properties>
<help>Show active destination NAT translations detail</help>
</properties>
<command>${vyos_op_scripts_dir}/show_nat_translations.py --type=destination --verbose</command>
</node>
</children>
<command>${vyos_op_scripts_dir}/show_nat_translations.py --type=destination</command>
</node>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/openconnect.xml b/op-mode-definitions/openconnect.xml.in
similarity index 100%
rename from op-mode-definitions/openconnect.xml
rename to op-mode-definitions/openconnect.xml.in
diff --git a/op-mode-definitions/openvpn.xml b/op-mode-definitions/openvpn.xml.in
similarity index 98%
rename from op-mode-definitions/openvpn.xml
rename to op-mode-definitions/openvpn.xml.in
index b9cb06dca..e9420904a 100644
--- a/op-mode-definitions/openvpn.xml
+++ b/op-mode-definitions/openvpn.xml.in
@@ -1,140 +1,139 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="generate">
<children>
<node name="openvpn">
<properties>
<help>OpenVPN key generation tool</help>
</properties>
<children>
<tagNode name="key">
<properties>
<help>Generate shared-secret key with specified file name</help>
<completionHelp>
<list><filename></list>
</completionHelp>
</properties>
<command>
result=1;
key_path=$4
full_path=
- # Prepend /config/auth if the path is not absolute
if echo $key_path | egrep -ve '^/.*' > /dev/null; then
full_path=/config/auth/$key_path
else
full_path=$key_path
fi
key_dir=`dirname $full_path`
if [ ! -d $key_dir ]; then
echo "Directory $key_dir does not exist!"
exit 1
fi
echo "Generating OpenVPN key to $full_path"
sudo /usr/sbin/openvpn --genkey --secret "$full_path"
result=$?
if [ $result = 0 ]; then
echo "Your new local OpenVPN key has been generated"
fi
/usr/libexec/vyos/validators/file-exists --directory /config/auth "$full_path"
</command>
</tagNode>
</children>
</node>
</children>
</node>
<node name="reset">
<properties>
<help>Reset a service</help>
</properties>
<children>
<node name="openvpn">
<children>
<tagNode name="client">
<properties>
<help>Reset specified OpenVPN client</help>
<completionHelp>
<script>sudo ${vyos_completion_dir}/list_openvpn_clients.py --all</script>
</completionHelp>
</properties>
<command>echo kill $4 | socat - UNIX-CONNECT:/run/openvpn/openvpn-mgmt-intf > /dev/null</command>
</tagNode>
<tagNode name="interface">
<properties>
<help>Reset OpenVPN process on interface</help>
<completionHelp>
<script>sudo ${vyos_completion_dir}/list_interfaces.py --type openvpn</script>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/reset_openvpn.py $4</command>
</tagNode>
</children>
</node>
</children>
</node>
<node name="show">
<children>
<node name="interfaces">
<children>
<node name="openvpn">
<properties>
<help>Show OpenVPN interface information</help>
</properties>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed OpenVPN interface information</help>
</properties>
<command>${vyos_op_scripts_dir}/show_interfaces.py --intf-type=openvpn --action=show</command>
</leafNode>
</children>
</node>
<tagNode name="openvpn">
<properties>
<help>Show OpenVPN interface information</help>
<completionHelp>
<script>sudo ${vyos_completion_dir}/list_interfaces.py --type openvpn</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/show_interfaces.py --intf=$4</command>
<children>
<leafNode name="brief">
<properties>
<help>Show summary of specified OpenVPN interface information</help>
</properties>
<command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" --action=show-brief</command>
</leafNode>
</children>
</tagNode>
</children>
</node>
<node name="openvpn">
<properties>
<help>Show OpenVPN information</help>
</properties>
<children>
<leafNode name="client">
<properties>
<help>Show tunnel status for OpenVPN client interfaces</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/show_openvpn.py --mode=client</command>
</leafNode>
<leafNode name="server">
<properties>
<help>Show tunnel status for OpenVPN server interfaces</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/show_openvpn.py --mode=server</command>
</leafNode>
<leafNode name="site-to-site">
<properties>
<help>Show tunnel status for OpenVPN site-to-site interfaces</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/show_openvpn.py --mode=site-to-site</command>
</leafNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/ping.xml b/op-mode-definitions/ping.xml.in
similarity index 100%
rename from op-mode-definitions/ping.xml
rename to op-mode-definitions/ping.xml.in
diff --git a/op-mode-definitions/poweroff.xml b/op-mode-definitions/poweroff.xml.in
similarity index 100%
rename from op-mode-definitions/poweroff.xml
rename to op-mode-definitions/poweroff.xml.in
diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml.in
similarity index 100%
rename from op-mode-definitions/pppoe-server.xml
rename to op-mode-definitions/pppoe-server.xml.in
diff --git a/op-mode-definitions/pptp-server.xml b/op-mode-definitions/pptp-server.xml.in
similarity index 100%
rename from op-mode-definitions/pptp-server.xml
rename to op-mode-definitions/pptp-server.xml.in
diff --git a/op-mode-definitions/reboot.xml b/op-mode-definitions/reboot.xml.in
similarity index 100%
rename from op-mode-definitions/reboot.xml
rename to op-mode-definitions/reboot.xml.in
diff --git a/op-mode-definitions/reset-conntrack.xml b/op-mode-definitions/reset-conntrack.xml.in
similarity index 100%
rename from op-mode-definitions/reset-conntrack.xml
rename to op-mode-definitions/reset-conntrack.xml.in
diff --git a/op-mode-definitions/reset-ip-bgp.xml b/op-mode-definitions/reset-ip-bgp.xml.in
similarity index 100%
rename from op-mode-definitions/reset-ip-bgp.xml
rename to op-mode-definitions/reset-ip-bgp.xml.in
diff --git a/op-mode-definitions/reset-ip-igmp.xml b/op-mode-definitions/reset-ip-igmp.xml.in
similarity index 100%
rename from op-mode-definitions/reset-ip-igmp.xml
rename to op-mode-definitions/reset-ip-igmp.xml.in
diff --git a/op-mode-definitions/reset-ip-multicast.xml b/op-mode-definitions/reset-ip-multicast.xml.in
similarity index 100%
rename from op-mode-definitions/reset-ip-multicast.xml
rename to op-mode-definitions/reset-ip-multicast.xml.in
diff --git a/op-mode-definitions/reset-ipv6-bgp.xml b/op-mode-definitions/reset-ipv6-bgp.xml.in
similarity index 100%
rename from op-mode-definitions/reset-ipv6-bgp.xml
rename to op-mode-definitions/reset-ipv6-bgp.xml.in
diff --git a/op-mode-definitions/reset-mpls.xml b/op-mode-definitions/reset-mpls.xml.in
similarity index 100%
rename from op-mode-definitions/reset-mpls.xml
rename to op-mode-definitions/reset-mpls.xml.in
diff --git a/op-mode-definitions/reset-vpn.xml b/op-mode-definitions/reset-vpn.xml.in
similarity index 71%
rename from op-mode-definitions/reset-vpn.xml
rename to op-mode-definitions/reset-vpn.xml.in
index ae553c272..71dbb4ed9 100644
--- a/op-mode-definitions/reset-vpn.xml
+++ b/op-mode-definitions/reset-vpn.xml.in
@@ -1,96 +1,96 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="reset">
<properties>
<help>Reset a service</help>
</properties>
<children>
<node name="vpn">
<properties>
<help>Reset Virtual Private Network (VPN) information</help>
</properties>
<children>
<node name="remote-access">
<properties>
<help>Reset remote access VPN connections</help>
</properties>
<children>
<node name="all">
<properties>
- <help>Terminate all user's current remote access VPN session(s)</help>
+ <help>Terminate all users current remote access VPN session(s)</help>
</properties>
<children>
<node name="protocol">
<properties>
- <help>Terminate specified user's current remote access VPN session(s) with specified protocol</help>
+ <help>Terminate specified users current remote access VPN session(s) with specified protocol</help>
</properties>
<children>
<leafNode name="l2tp">
<properties>
- <help>Terminate all user's current remote access VPN session(s) with L2TP protocol</help>
+ <help>Terminate all users current remote access VPN session(s) with L2TP protocol</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="l2tp"</command>
+ <command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="l2tp"</command>
</leafNode>
<leafNode name="pptp">
<properties>
- <help>Terminate all user's current remote access VPN session(s) with PPTP protocol</help>
+ <help>Terminate all users current remote access VPN session(s) with PPTP protocol</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="pptp"</command>
+ <command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="pptp"</command>
</leafNode>
<leafNode name="sstp">
<properties>
- <help>Terminate all user's current remote access VPN session(s) with SSTP protocol</help>
+ <help>Terminate all users current remote access VPN session(s) with SSTP protocol</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="sstp"</command>
+ <command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="sstp"</command>
</leafNode>
</children>
</node>
</children>
<command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users"</command>
</node>
<tagNode name="interface">
<properties>
<help>Terminate a remote access VPN interface</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --interface="$5"</command>
</tagNode>
<tagNode name="user">
<properties>
- <help>Terminate specified user's current remote access VPN session(s)</help>
+ <help>Terminate specified users current remote access VPN session(s)</help>
</properties>
<children>
<node name="protocol">
<properties>
- <help>Terminate specified user's current remote access VPN session(s) with specified protocol</help>
+ <help>Terminate specified users current remote access VPN session(s) with specified protocol</help>
</properties>
<children>
<leafNode name="l2tp">
<properties>
- <help>Terminate all user's current remote access VPN session(s) with L2TP protocol</help>
+ <help>Terminate all users current remote access VPN session(s) with L2TP protocol</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" --protocol="l2tp"</command>
</leafNode>
<leafNode name="pptp">
<properties>
- <help>Terminate all user's current remote access VPN session(s) with PPTP protocol</help>
+ <help>Terminate all users current remote access VPN session(s) with PPTP protocol</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" --protocol="pptp"</command>
</leafNode>
<leafNode name="sstp">
<properties>
- <help>Terminate all user's current remote access VPN session(s) with SSTP protocol</help>
+ <help>Terminate all users current remote access VPN session(s) with SSTP protocol</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" --protocol="sstp"</command>
</leafNode>
</children>
</node>
</children>
<command>sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5"</command>
</tagNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/restart-frr.xml b/op-mode-definitions/restart-frr.xml.in
similarity index 100%
rename from op-mode-definitions/restart-frr.xml
rename to op-mode-definitions/restart-frr.xml.in
diff --git a/op-mode-definitions/restart.xml b/op-mode-definitions/restart.xml.in
similarity index 100%
rename from op-mode-definitions/restart.xml
rename to op-mode-definitions/restart.xml.in
diff --git a/op-mode-definitions/show-acceleration.xml b/op-mode-definitions/show-acceleration.xml.in
similarity index 100%
rename from op-mode-definitions/show-acceleration.xml
rename to op-mode-definitions/show-acceleration.xml.in
diff --git a/op-mode-definitions/show-bridge.xml b/op-mode-definitions/show-bridge.xml.in
similarity index 100%
rename from op-mode-definitions/show-bridge.xml
rename to op-mode-definitions/show-bridge.xml.in
diff --git a/op-mode-definitions/show-configuration.xml b/op-mode-definitions/show-configuration.xml.in
similarity index 100%
rename from op-mode-definitions/show-configuration.xml
rename to op-mode-definitions/show-configuration.xml.in
diff --git a/op-mode-definitions/show-console-server.xml b/op-mode-definitions/show-console-server.xml.in
similarity index 100%
rename from op-mode-definitions/show-console-server.xml
rename to op-mode-definitions/show-console-server.xml.in
diff --git a/op-mode-definitions/show-environment.xml b/op-mode-definitions/show-environment.xml.in
similarity index 100%
rename from op-mode-definitions/show-environment.xml
rename to op-mode-definitions/show-environment.xml.in
diff --git a/op-mode-definitions/show-hardware.xml b/op-mode-definitions/show-hardware.xml.in
similarity index 98%
rename from op-mode-definitions/show-hardware.xml
rename to op-mode-definitions/show-hardware.xml.in
index c3ff3a60f..0df2e4404 100644
--- a/op-mode-definitions/show-hardware.xml
+++ b/op-mode-definitions/show-hardware.xml.in
@@ -1,94 +1,94 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="hardware">
<properties>
<help>Show system hardware details</help>
</properties>
<children>
<node name="cpu">
<properties>
<help>Show CPU info</help>
</properties>
<command>lscpu</command>
<children>
<node name="detail">
<properties>
<help> Show system CPU details</help>
</properties>
<command>cat /proc/cpuinfo</command>
</node>
<node name="summary">
<properties>
- <help>Show CPU's on system</help>
+ <help>Show system CPUs</help>
</properties>
<command>${vyos_op_scripts_dir}/cpu_summary.py</command>
</node>
</children>
</node>
<node name="dmi">
<properties>
<help>Show system DMI details</help>
</properties>
<command>${vyatta_bindir}/vyatta-show-dmi</command>
</node>
<node name="mem">
<properties>
<help>Show system RAM details</help>
</properties>
<command>cat /proc/meminfo</command>
</node>
<node name="pci">
<properties>
<help>Show system PCI bus details</help>
</properties>
<command>lspci</command>
<children>
<node name="detail">
<properties>
<help>Show verbose system PCI bus details</help>
</properties>
<command>lspci -vvv</command>
</node>
</children>
</node>
<node name="scsi">
<properties>
<help>Show SCSI device information</help>
</properties>
<command>lsscsi</command>
<children>
<node name="detail">
<properties>
<help>Show detailed SCSI device information</help>
</properties>
<command>lsscsi -vvv</command>
</node>
</children>
</node>
<node name="usb">
<properties>
<help>Show peripherals connected to the USB bus</help>
</properties>
<command>/usr/bin/lsusb -t</command>
<children>
<node name="detail">
<properties>
<help>Show detailed USB bus information</help>
</properties>
<command>/usr/bin/lsusb -v</command>
</node>
<leafNode name="serial">
<properties>
<help>Show information about connected USB serial ports</help>
</properties>
<command>${vyos_op_scripts_dir}/show_usb_serial.py</command>
</leafNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/show-history.xml b/op-mode-definitions/show-history.xml.in
similarity index 100%
rename from op-mode-definitions/show-history.xml
rename to op-mode-definitions/show-history.xml.in
diff --git a/op-mode-definitions/show-host.xml b/op-mode-definitions/show-host.xml.in
similarity index 100%
rename from op-mode-definitions/show-host.xml
rename to op-mode-definitions/show-host.xml.in
diff --git a/op-mode-definitions/show-interfaces-bonding.xml b/op-mode-definitions/show-interfaces-bonding.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-bonding.xml
rename to op-mode-definitions/show-interfaces-bonding.xml.in
diff --git a/op-mode-definitions/show-interfaces-bridge.xml b/op-mode-definitions/show-interfaces-bridge.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-bridge.xml
rename to op-mode-definitions/show-interfaces-bridge.xml.in
diff --git a/op-mode-definitions/show-interfaces-dummy.xml b/op-mode-definitions/show-interfaces-dummy.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-dummy.xml
rename to op-mode-definitions/show-interfaces-dummy.xml.in
diff --git a/op-mode-definitions/show-interfaces-ethernet.xml b/op-mode-definitions/show-interfaces-ethernet.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-ethernet.xml
rename to op-mode-definitions/show-interfaces-ethernet.xml.in
diff --git a/op-mode-definitions/show-interfaces-input.xml b/op-mode-definitions/show-interfaces-input.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-input.xml
rename to op-mode-definitions/show-interfaces-input.xml.in
diff --git a/op-mode-definitions/show-interfaces-l2tpv3.xml b/op-mode-definitions/show-interfaces-l2tpv3.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-l2tpv3.xml
rename to op-mode-definitions/show-interfaces-l2tpv3.xml.in
diff --git a/op-mode-definitions/show-interfaces-loopback.xml b/op-mode-definitions/show-interfaces-loopback.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-loopback.xml
rename to op-mode-definitions/show-interfaces-loopback.xml.in
diff --git a/op-mode-definitions/show-interfaces-macsec.xml b/op-mode-definitions/show-interfaces-macsec.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-macsec.xml
rename to op-mode-definitions/show-interfaces-macsec.xml.in
diff --git a/op-mode-definitions/show-interfaces-pppoe.xml b/op-mode-definitions/show-interfaces-pppoe.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-pppoe.xml
rename to op-mode-definitions/show-interfaces-pppoe.xml.in
diff --git a/op-mode-definitions/show-interfaces-pseudo-ethernet.xml b/op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-pseudo-ethernet.xml
rename to op-mode-definitions/show-interfaces-pseudo-ethernet.xml.in
diff --git a/op-mode-definitions/show-interfaces-tunnel.xml b/op-mode-definitions/show-interfaces-tunnel.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-tunnel.xml
rename to op-mode-definitions/show-interfaces-tunnel.xml.in
diff --git a/op-mode-definitions/show-interfaces-vti.xml b/op-mode-definitions/show-interfaces-vti.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-vti.xml
rename to op-mode-definitions/show-interfaces-vti.xml.in
diff --git a/op-mode-definitions/show-interfaces-vxlan.xml b/op-mode-definitions/show-interfaces-vxlan.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-vxlan.xml
rename to op-mode-definitions/show-interfaces-vxlan.xml.in
diff --git a/op-mode-definitions/show-interfaces-wirelessmodem.xml b/op-mode-definitions/show-interfaces-wirelessmodem.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces-wirelessmodem.xml
rename to op-mode-definitions/show-interfaces-wirelessmodem.xml.in
diff --git a/op-mode-definitions/show-interfaces.xml b/op-mode-definitions/show-interfaces.xml.in
similarity index 100%
rename from op-mode-definitions/show-interfaces.xml
rename to op-mode-definitions/show-interfaces.xml.in
diff --git a/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml b/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml.in
similarity index 100%
rename from op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml
rename to op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml.in
diff --git a/op-mode-definitions/show-ip-bgp.xml b/op-mode-definitions/show-ip-bgp.xml.in
similarity index 98%
rename from op-mode-definitions/show-ip-bgp.xml
rename to op-mode-definitions/show-ip-bgp.xml.in
index 5eb2ae56e..a92a78266 100644
--- a/op-mode-definitions/show-ip-bgp.xml
+++ b/op-mode-definitions/show-ip-bgp.xml.in
@@ -1,342 +1,342 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="ip">
<children>
<node name="bgp">
<properties>
<help>Show Border Gateway Protocol (BGP) information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp"</command>
<children>
<leafNode name="attribute-info">
<properties>
<help>Show BGP attribute information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp attribute-info"</command>
</leafNode>
<leafNode name="cidr-only">
<properties>
<help>Display only routes with non-natural netmasks</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp cidr-only"</command>
</leafNode>
<node name="community">
<properties>
<help>Show BGP routes matching the communities</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community"</command>
</node>
<tagNode name="community">
<properties>
<help>Display routes matching the specified communities</help>
<completionHelp>
- <list><AA:NN> local-AS no-advertise no-export</list>
+ <list><AA:NN> local-AS no-advertise no-export</list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community $5"</command>
</tagNode>
<leafNode name="community-info">
<properties>
<help>List all bgp community information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community-info"</command>
</leafNode>
<tagNode name="community-list">
<properties>
<help>Show BGP routes matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community-list $5"</command>
<children>
<leafNode name="exact-match">
<properties>
<help>Show BGP routes exactly matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community-list $5 exact-match"</command>
</leafNode>
</children>
</tagNode>
<leafNode name="dampened-paths">
<properties>
<help>Show dampened BGP paths</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp dampening dampened-paths"</command>
</leafNode>
<tagNode name="filter-list">
<properties>
<help>Show BGP information for specified word</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp filter-list $5"</command>
</tagNode>
<leafNode name="flap-statistics">
<properties>
<help>Show flap statistics of routes</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp dampening flap-statistics"</command>
</leafNode>
<node name="ipv4">
<properties>
<help>Show BGP IPv4 information</help>
</properties>
<children>
<node name="unicast">
<properties>
<help>Show BGP IPv4 unicast information</help>
</properties>
<children>
<leafNode name="cidr-only">
<properties>
<help>Display only routes with non-natural netmasks</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast cidr-only"</command>
</leafNode>
<node name="community"> <!-- START new code -->
<properties>
<help>Show BGP routes matching the communities</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community"</command>
</node>
- <tagNode name="community">
+ <tagNode name="community">
<properties>
<help>Display routes matching the specified communities</help>
<completionHelp>
- <list><AA:NN> local-AS no-advertise no-export</list>
+ <list><AA:NN> local-AS no-advertise no-export</list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community $7"</command>
</tagNode>
<tagNode name="community-list">
<properties>
<help>Show BGP routes matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community-list $7"</command>
<children>
<leafNode name="exact-match">
<properties>
<help>Show BGP routes exactly matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community-list $7 exact-match"</command>
</leafNode>
</children>
</tagNode>
<tagNode name="filter-list">
<properties>
<help>Show BGP information for specified word</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp filter-list $5"</command>
</tagNode>
<tagNode name="neighbors">
<properties>
<help>Show detailed BGP IPv4 unicast neighbor information</help>
<completionHelp>
<script>vtysh -c "show ip bgp ipv4 unicast summary" | awk '{print $1}' | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"</script>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbors $7"</command>
<children>
<leafNode name="advertised-routes">
<properties>
<help>Show routes advertised to a BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 advertised-routes"</command>
</leafNode>
<leafNode name="prefix-counts">
<properties>
<help>Show detailed prefix count information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 prefix-counts"</command>
</leafNode>
<leafNode name="received-routes">
<properties>
<help>Show the received routes from neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 received-routes"</command>
</leafNode>
<leafNode name="routes">
<properties>
<help>Show routes learned from neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 routes"</command>
</leafNode>
</children>
- </tagNode>
+ </tagNode>
<leafNode name="paths">
<properties>
<help>Show BGP path information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast paths"</command>
</leafNode>
<tagNode name="prefix-list">
<properties>
<help>Show BGP routes matching the specified prefix list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast prefix-list $7"</command>
</tagNode>
<tagNode name="regexp">
<properties>
<help>Show BGP routes matching the specified AS path regular expression</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast regexp $5"</command>
</tagNode>
<tagNode name="route-map">
<properties>
<help>Show BGP routes matching the specified route map</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp route-map $5"</command>
</tagNode>
<leafNode name="summary">
<properties>
<help>Show summary of BGP information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp summary"</command>
- </leafNode>
+ </leafNode>
</children>
</node>
<tagNode name="unicast">
<properties>
<help>Show BGP information for specified IP address or prefix</help>
<completionHelp>
<list><x.x.x.x> <x.x.x.x/x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp $6"</command>
</tagNode>
</children>
</node>
<node name="large-community">
<properties>
<help>Show BGP routes matching the specified large-communities</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp large-community"</command>
</node>
<leafNode name="large-community-info">
<properties>
<help>Show BGP large-community information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp large-community-info"</command>
</leafNode>
<tagNode name="large-community-list">
<properties>
<help>Show BGP routes matching the specified large-community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp large-community-list $5"</command>
</tagNode>
<leafNode name="memory">
<properties>
<help>Show BGP memory usage</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp memory"</command>
- </leafNode>
+ </leafNode>
<tagNode name="neighbors">
<properties>
<help>Show detailed BGP IPv4 unicast neighbor information</help>
<completionHelp>
<script>vtysh -c "show ip bgp summary" | awk '{print $1}' | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"</script>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbors $5"</command>
<children>
<leafNode name="advertised-routes">
<properties>
<help>Show routes advertised to a BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 advertised-routes"</command>
</leafNode>
<leafNode name="dampened-routes">
<properties>
<help>Show dampened routes received from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 dampened-routes"</command>
</leafNode>
<leafNode name="flap-statistics">
<properties>
<help>Show flap statistics of the routes learned from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 flap-statistics"</command>
</leafNode>
<leafNode name="prefix-counts">
<properties>
<help>Show detailed prefix count information for BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 prefix-counts"</command>
</leafNode>
<node name="received">
<properties>
<help>Show information received from BGP neighbor</help>
</properties>
<children>
<leafNode name="prefix-filter">
<properties>
<help>Show prefixlist filter</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 received prefix-filter"</command>
</leafNode>
</children>
</node>
<leafNode name="received-routes">
<properties>
<help>Show received routes from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 received-routes"</command>
</leafNode>
<leafNode name="routes">
<properties>
<help>Show routes learned from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 routes"</command>
</leafNode>
</children>
- </tagNode>
+ </tagNode>
<leafNode name="paths">
<properties>
<help>Show BGP path information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp paths"</command>
</leafNode>
<tagNode name="prefix-list">
<properties>
<help>Show BGP routes matching the specified prefix list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp prefix-list $5"</command>
</tagNode>
<tagNode name="regexp">
<properties>
<help>Show BGP routes matching the specified AS path regular expression</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp regexp $5"</command>
</tagNode>
<tagNode name="route-map">
<properties>
<help>Show BGP routes matching the specified route map</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp route-map $5"</command>
</tagNode>
<leafNode name="statistics">
<properties>
<help>Show summary of BGP information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp statistics"</command>
</leafNode>
<leafNode name="summary">
<properties>
<help>Show summary of BGP information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp summary"</command>
</leafNode>
</children>
</node>
<tagNode name="bgp">
<properties>
<help>Show BGP information for specified IP address or prefix</help>
<completionHelp>
<list><x.x.x.x> <x.x.x.x/x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp $4"</command>
</tagNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/show-ip-igmp.xml b/op-mode-definitions/show-ip-igmp.xml.in
similarity index 100%
rename from op-mode-definitions/show-ip-igmp.xml
rename to op-mode-definitions/show-ip-igmp.xml.in
diff --git a/op-mode-definitions/show-ip-multicast.xml b/op-mode-definitions/show-ip-multicast.xml.in
similarity index 100%
rename from op-mode-definitions/show-ip-multicast.xml
rename to op-mode-definitions/show-ip-multicast.xml.in
diff --git a/op-mode-definitions/show-ip-ospf.xml b/op-mode-definitions/show-ip-ospf.xml.in
similarity index 98%
rename from op-mode-definitions/show-ip-ospf.xml
rename to op-mode-definitions/show-ip-ospf.xml.in
index 99441d185..50628d18e 100644
--- a/op-mode-definitions/show-ip-ospf.xml
+++ b/op-mode-definitions/show-ip-ospf.xml.in
@@ -1,579 +1,579 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="ip">
<properties>
<help>Show IPv4 routing information</help>
</properties>
<children>
<node name="ospf">
<properties>
<help>Show IPv4 Open Shortest Path First (OSPF) routing information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf"</command>
<children>
<leafNode name="border-routers">
<properties>
<help>Show IPv4 OSPF border-routers information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf border-routers"</command>
</leafNode>
<node name="database">
<properties>
<help>Show IPv4 OSPF database information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database"</command>
<children>
<node name="asbr-summary">
<properties>
<help>Show IPv4 OSPF ASBR summary database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database asbr-summary"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF ASBR summary database for given address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database asbr-summary adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF ASBR summary database for given address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="asbr-summary">
<properties>
<help>Show IPv4 OSPF ASBR summary database information of given address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database asbr-summary"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database asbr-summary $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF ASBR summary database of given address for given advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database asbr-summary $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show summary of self-originate IPv4 OSPF ASBR database</help>
</properties>
<command>show ip ospf database asbr-summary $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<node name="external">
<properties>
<help>Show IPv4 OSPF external database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database external"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF external database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database external adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF external database for specified IP address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="external">
<properties>
<help>Show IPv4 OSPF external database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database external"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database external $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF external database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database external $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF external database</help>
</properties>
<command>show ip ospf database external $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<leafNode name="max-age">
<properties>
<help>Show IPv4 OSPF max-age database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database max-age"</command>
</leafNode>
<node name="network">
<properties>
<help>Show IPv4 OSPF network database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database network"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF network database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database network adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF network database for given address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="network">
<properties>
<help>Show IPv4 OSPF network database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database network"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database network $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF network database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database network $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF network database</help>
</properties>
<command>show ip ospf database network $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<node name="nssa-external">
<properties>
<help>Show IPv4 OSPF NSSA external database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database nssa-external"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF NSSA external database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database nssa-external adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF NSSA external database for specified IP address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="nssa-external">
<properties>
<help>Show IPv4 OSPF NSSA external database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database nssa-external"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database nssa-external $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF NSSA external database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database nssa-external $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF NSSA external database</help>
</properties>
<command>show ip ospf database nssa-external $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<node name="opaque-area">
<properties>
<help>Show IPv4 OSPF opaque-area database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-area"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-area database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-area adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-area database for specified IP address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="opaque-area">
<properties>
<help>Show IPv4 OSPF opaque-area database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-area"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database opaque-area $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-area database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-area $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF opaque-area database</help>
</properties>
<command>show ip ospf database opaque-area $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<node name="opaque-as">
<properties>
<help>Show IPv4 OSPF opaque-as database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-as"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-as database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-as adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-as database for specified IP address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="opaque-as">
<properties>
<help>Show IPv4 OSPF opaque-as database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-as"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database opaque-as $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-as database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-as $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF opaque-as database</help>
</properties>
<command>show ip ospf database opaque-as $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<node name="opaque-link">
<properties>
<help>Show IPv4 OSPF opaque-link database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-link"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-link database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-link adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-link database for specified IP address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="opaque-link">
<properties>
<help>Show IPv4 OSPF opaque-link database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database opaque-link"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database opaque-link $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF opaque-link database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database opaque-link $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF opaque-link database</help>
</properties>
<command>show ip ospf database opaque-link $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<node name="router">
<properties>
<help>Show IPv4 OSPF router database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database router"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF router database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database router adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF router database for specified IP address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="router">
<properties>
<help>Show IPv4 OSPF router database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database router"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database router $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF router database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database router $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF router database</help>
</properties>
<command>show ip ospf database router $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show IPv4 OSPF self-originate database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database self-originate"</command>
</leafNode>
<node name="summary">
<properties>
<help>Show summary of IPv4 OSPF database</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database summary"</command>
<children>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF summary database for specified IP address of advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database summary adv-router $7"</command>
</tagNode>
<node name="adv-router">
<properties>
<help>Show IPv4 OSPF summary database for specified IP address of advertised router</help>
</properties>
</node>
</children>
</node>
<tagNode name="summary">
<properties>
<help>Show IPv4 OSPF summary database information of specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
- <command>/usr/bin/vtysh -c "show ip ospf database summary"</command>
+ <command>/usr/bin/vtysh -c "show ip ospf database summary $6"</command>
<children>
<node name="adv-router">
<properties>
<help>Show advertising router link states</help>
</properties>
</node>
<tagNode name="adv-router">
<properties>
<help>Show IPv4 OSPF summary database of specified IP address for specified advertised router</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf database summary $6 adv-router $8"</command>
</tagNode>
<leafNode name="self-originate">
<properties>
<help>Show self-originate IPv4 OSPF summary database</help>
</properties>
<command>show ip ospf database summary $6 self-originate</command>
- </leafNode>
+ </leafNode>
</children>
</tagNode>
</children>
</node>
<node name="interface">
<properties>
<help>Show IPv4 OSPF interface information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf interface"</command>
</node>
<tagNode name="interface">
<properties>
<help>Show IPv4 OSPF information for specified interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces.py</script>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf interface $5"</command>
</tagNode>
<node name="neighbor">
<properties>
<help>Show IPv4 OSPF neighbor information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf neighbor"</command>
<children>
<tagNode name="address">
<properties>
<help>Show IPv4 OSPF neighbor information for specified IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf neighbor $6"</command>
</tagNode>
<node name="detail">
<properties>
<help>Show detailed IPv4 OSPF neighbor information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf neighbor detail"</command>
</node>
</children>
</node>
<tagNode name="neighbor">
<properties>
<help>Show IPv4 OSPF neighbor information for specified IP address or interface</help>
<completionHelp>
<list><x.x.x.x></list>
<script>${vyos_completion_dir}/list_interfaces.py</script>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf neighbor $5"</command>
</tagNode>
<leafNode name="route">
<properties>
<help>Show IPv4 OSPF route information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip ospf route"</command>
</leafNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/show-ip-pim.xml b/op-mode-definitions/show-ip-pim.xml.in
similarity index 100%
rename from op-mode-definitions/show-ip-pim.xml
rename to op-mode-definitions/show-ip-pim.xml.in
diff --git a/op-mode-definitions/show-ip-ports.xml b/op-mode-definitions/show-ip-ports.xml.in
similarity index 100%
rename from op-mode-definitions/show-ip-ports.xml
rename to op-mode-definitions/show-ip-ports.xml.in
diff --git a/op-mode-definitions/show-ip-rip.xml b/op-mode-definitions/show-ip-rip.xml.in
similarity index 100%
rename from op-mode-definitions/show-ip-rip.xml
rename to op-mode-definitions/show-ip-rip.xml.in
diff --git a/op-mode-definitions/show-ip-route.xml b/op-mode-definitions/show-ip-route.xml.in
similarity index 100%
rename from op-mode-definitions/show-ip-route.xml
rename to op-mode-definitions/show-ip-route.xml.in
diff --git a/op-mode-definitions/show-ipv6-bgp.xml b/op-mode-definitions/show-ipv6-bgp.xml.in
similarity index 100%
rename from op-mode-definitions/show-ipv6-bgp.xml
rename to op-mode-definitions/show-ipv6-bgp.xml.in
diff --git a/op-mode-definitions/show-ipv6-ospfv3.xml b/op-mode-definitions/show-ipv6-ospfv3.xml
deleted file mode 100644
index 36bb5b40e..000000000
--- a/op-mode-definitions/show-ipv6-ospfv3.xml
+++ /dev/null
@@ -1,777 +0,0 @@
-<?xml version="1.0"?>
-<interfaceDefinition>
- <node name="show">
- <children>
- <node name="ipv6">
- <properties>
- <help>Show IPv6 routing information</help>
- </properties>
- <children>
- <node name="ospfv3">
- <properties>
- <help>Show IPv6 Open Shortest Path First (OSPF)</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6"</command>
- <children>
- <node name="area">
- <properties>
- <help>Show Shortest Path First tree information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 spf tree"</command>
- </node>
- <tagNode name="area">
- <properties>
- <help>Area ID (as an IPv4 notation)</help>
- <completionHelp>
- <path>protocols ospfv3 area</path>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 area $4 spf tree"</command>
- <children>
- <tagNode name="router">
- <properties>
- <help> Simulate view point (Router ID)</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 simulate spf-tree $7 $4 $5"</command>
- </tagNode>
- </children>
- </tagNode>
- <node name="border-routers">
- <properties>
- <help>Show OSPFv3 border-router (ABR and ASBR) information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 border-routers"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show OSPFv3 detailed border-router information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 border-routers detail"</command>
- </node>
- </children>
- </node>
- <tagNode name="border-routers">
- <properties>
- <help>Border router ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 border-routers $5"</command>
- </tagNode>
- <node name="database">
- <properties>
- <help>Show OSPFv3 Link state database information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database"</command>
- <children>
- <tagNode name="adv-router">
- <properties>
- <help>Search by Advertising Router ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <tagNode name="linkstate-id">
- <properties>
- <help>Search by Link state ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database adv-router $6 linkstate-id $8 internal"</command>
- </node>
- </children>
- </tagNode>
- </children>
- </tagNode>
- <node name="any">
- <properties>
- <help>Search by Any Link state Type</help>
- </properties>
- <children>
- <tagNode name="any">
- <properties>
- <help>Search by Link state ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * * $7 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * * $7 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * * $7 internal"</command>
- </node>
- </children>
- </tagNode>
- </children>
- </node>
- <tagNode name="any">
- <properties>
- <help>Search by Link state ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6 internal"</command>
- </node>
- <node name="node.tag">
- <properties>
- <help>Search by Advertising Router ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6 $7"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6 $7 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6 $7 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database * $6 $7 internal"</command>
- </node>
- </children>
- </node>
- </children>
- </tagNode>
-
-
-
-
-
- <node name="as-external">
- <properties>
- <help>Show AS-External LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external"</command>
- <children>
- <tagNode name="adv-router">
- <properties>
- <help>Search by Advertising Router ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <tagNode name="linkstate-id">
- <properties>
- <help>Search by Link state ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external adv-router $7 linkstate-id $9 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external adv-router $7 linkstate-id $9 internal"</command>
- </node>
- </children>
- </tagNode>
- </children>
- </tagNode>
- <tagNode name="any">
- <properties>
- <help>Search by Advertising Router ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external * $7"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external * $7 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external * $7 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external * $7 internal"</command>
- </node>
- </children>
- </tagNode>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external internal"</command>
- </node>
- <tagNode name="linkstate-id">
- <properties>
- <help>Search by Link state ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external linkstate-id $7 internal"</command>
- </node>
- </children>
- </tagNode>
- <node name="self-originated">
- <properties>
- <help>Show Self-originated LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external self-originated"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external self-originated detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external self-originated dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external self-originated internal"</command>
- </node>
- <tagNode name="linkstate-id">
- <properties>
- <help>Search by Link state ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external self-originated linkstate-id $8 internal"</command>
- </node>
- </children>
- </tagNode>
- </children>
- </node>
- </children>
- </node>
- <tagNode name="as-external">
- <properties>
- <help>Search by Advertising Router IDs</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external $6 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external $6 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external $6 internal"</command>
- </node>
- <node name="self-originated">
- <properties>
- <help>Show Self-originated LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database as-external $6 self-originated internal"</command>
- </node>
- </children>
- </node>
- <node name="node.tag">
- <properties>
- <help>Search by Advertising Router ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>echo vtysh -c "show ipv6 ospf6 database as-external $6 $7 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>echo vtysh -c "show ipv6 ospf6 database as-external $6 $7 internal"</command>
- </node>
- </children>
- </node>
- </children>
- </tagNode>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database dump"</command>
- </node>
- <tagNode name="linkstate-id">
- <properties>
- <help>Search by Link state ID</help>
- <completionHelp>
- <list><x.x.x.x></list>
- </completionHelp>
- </properties>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database linkstate-id $6 detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database linkstate-id $6 dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database linkstate-id $6 internal"</command>
- </node>
- </children>
- </tagNode>
- <node name="self-originated">
- <properties>
- <help>Show Self-originated LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database self-originated"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show details of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database self-originated detail"</command>
- </node>
- <node name="dump">
- <properties>
- <help>Show dump of LSAs</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database self-originated dump"</command>
- </node>
- <node name="internal">
- <properties>
- <help>Show LSAs internal information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 database self-originated internal"</command>
- </node>
- </children>
- </node>
- </children>
- </node>
- <node name="interface">
- <properties>
- <help>Show OSPFv3 interface information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface"</command>
- <children>
- <node name="prefix">
- <properties>
- <help>Show connected prefixes to advertise</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface prefix"</command>
- <children>
- <node name="detail">
- <properties>
- <help>More detailed interface prefix information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface prefix detail"</command>
- </node>
- </children>
- </node>
- <tagNode name="prefix">
- <properties>
- <help>Show interface prefix route specific information</help>
- <completionHelp>
- <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface prefix $6"</command>
- <children>
- <node name="detail">
- <properties>
- <help>More detailed information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface prefix $6 detail"</command>
- </node>
- <node name="match">
- <properties>
- <help>Matched interface prefix information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface prefix $6 match"</command>
- </node>
- </children>
- </tagNode>
- </children>
- </node>
- <tagNode name="interface">
- <properties>
- <help>Specific insterface to examine</help>
- <completionHelp>
- <script>${vyos_completion_dir}/list_interfaces.py</script>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface $5"</command>
- <children>
- <node name="prefix">
- <properties>
- <help>Show connected prefixes to advertise</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface $5 prefix"</command>
- <children>
- <node name="detail">
- <properties>
- <help>More detailed interface prefix information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface $5 prefix detail"</command>
- </node>
- </children>
- </node>
- <tagNode name="prefix">
- <properties>
- <help>Show interface prefix route specific information</help>
- <completionHelp>
- <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7"</command>
- <children>
- <node name="detail">
- <properties>
- <help>More detailed information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7 detail"</command>
- </node>
- <node name="match">
- <properties>
- <help>Matched interface prefix information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7 match"</command>
- </node>
- </children>
- </tagNode>
- </children>
- </tagNode>
- <node name="linkstate">
- <properties>
- <help>Show OSPFv3 linkstate routing information</help>
- </properties>
- <children>
- <node name="detail">
- <properties>
- <help>Show detailed linkstate information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 linkstate detail"</command>
- </node>
- <node name="network">
- <properties>
- <help>Show linkstate Network information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 linkstate network"</command>
- </node>
- <node name="router">
- <properties>
- <help>Show linkstate Router information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 linkstate router"</command>
- </node>
- </children>
- </node>
- <node name="neighbor">
- <properties>
- <help>Show OSPFv3 neighbor information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 neighbor"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show detailed neighbor information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 neighbor detail"</command>
- </node>
- <node name="drchoice">
- <properties>
- <help>Show neighbor DR choice information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 neighbor drchoice"</command>
- </node>
- </children>
- </node>
- <node name="redistribute">
- <properties>
- <help>Show OSPFv3 redistribute external information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 redistribute"</command>
- </node>
- <node name="route">
- <properties>
- <help>Show OSPFv3 routing table information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route"</command>
- <children>
- <node name="external-1">
- <properties>
- <help>Show Type-1 External route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route external-1"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show detailed Type-1 External route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route external-1 detail"</command>
- </node>
- </children>
- </node>
- <node name="external-2">
- <properties>
- <help>Show Type-2 External route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route external-2"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show detailed Type-2 External route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route external-2 detail"</command>
- </node>
- </children>
- </node>
- <node name="inter-area">
- <properties>
- <help>Show Inter-Area route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route inter-area"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show detailed Inter-Area route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route inter-area detail"</command>
- </node>
- </children>
- </node>
- <node name="intra-area">
- <properties>
- <help>Show Intra-Area route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route intra-area"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Show detailed Intra-Area route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route intra-area detail"</command>
- </node>
- </children>
- </node>
- <node name="detail">
- <properties>
- <help>Show detailed route information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route detail"</command>
- </node>
- <node name="summary">
- <properties>
- <help>Show route table summary</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route summary"</command>
- </node>
- </children>
- </node>
- <tagNode name="route">
- <properties>
- <help>Show specified route/prefix information</help>
- <completionHelp>
- <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list>
- </completionHelp>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route $5"</command>
- <children>
- <node name="longer">
- <properties>
- <help>Show routes longer than specified prefix</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route $5 longer"</command>
- </node>
- <node name="match">
- <properties>
- <help>Show routes matching specified prefix</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route $5 match"</command>
- <children>
- <node name="detail">
- <properties>
- <help>Detailed information</help>
- </properties>
- <command>vtysh -c "show ipv6 ospf6 route $5 match detail"</command>
- </node>
- </children>
- </node>
- </children>
- </tagNode>
- </children>
- </node>
- </children>
- </node>
- </children>
- </node>
-</interfaceDefinition>
diff --git a/op-mode-definitions/show-ipv6-ospfv3.xml.in b/op-mode-definitions/show-ipv6-ospfv3.xml.in
new file mode 100644
index 000000000..9227fdae1
--- /dev/null
+++ b/op-mode-definitions/show-ipv6-ospfv3.xml.in
@@ -0,0 +1,502 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="ipv6">
+ <properties>
+ <help>Show IPv6 routing information</help>
+ </properties>
+ <children>
+ <node name="ospfv3">
+ <properties>
+ <help>Show IPv6 Open Shortest Path First (OSPF)</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6"</command>
+ <children>
+ <node name="area">
+ <properties>
+ <help>Show Shortest Path First tree information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 spf tree"</command>
+ </node>
+ <tagNode name="area">
+ <properties>
+ <help>Area ID (as an IPv4 notation)</help>
+ <completionHelp>
+ <path>protocols ospfv3 area</path>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 area $4 spf tree"</command>
+ <children>
+ <tagNode name="router">
+ <properties>
+ <help> Simulate view point (Router ID)</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 simulate spf-tree $7 $4 $5"</command>
+ </tagNode>
+ </children>
+ </tagNode>
+ <node name="border-routers">
+ <properties>
+ <help>Show OSPFv3 border-router (ABR and ASBR) information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 border-routers"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ <tagNode name="border-routers">
+ <properties>
+ <help>Border router ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 border-routers $5"</command>
+ </tagNode>
+ <node name="database">
+ <properties>
+ <help>Show OSPFv3 Link state database information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 database"</command>
+ <children>
+ <tagNode name="adv-router">
+ <properties>
+ <help>Search by Advertising Router ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <children>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ </children>
+ </tagNode>
+ <node name="any">
+ <properties>
+ <help>Search by Any Link state Type</help>
+ </properties>
+ <children>
+ <tagNode name="any">
+ <properties>
+ <help>Search by Link state ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ <tagNode name="any">
+ <properties>
+ <help>Search by Link state ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 database * $6"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-adv-router-id-node-tag.xml.i>
+ </children>
+ </tagNode>
+ <node name="as-external">
+ <properties>
+ <help>Show AS-External LSAs</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 database as-external"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ <tagNode name="any">
+ <properties>
+ <help>Search by Advertising Router ID</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 database as-external * $7"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ </children>
+ </tagNode>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <tagNode name="as-external">
+ <properties>
+ <help>Search by Advertising Router IDs</help>
+ <completionHelp>
+ <list><x.x.x.x></list>
+ </completionHelp>
+ </properties>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ #include <include/ospfv3-adv-router-id-node-tag.xml.i>
+ </children>
+ </tagNode>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ <node name="group-membership">
+ <properties>
+ <help>Show Group-Membership LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="inter-prefix">
+ <properties>
+ <help>Show Inter-Area-Prefix LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="inter-router">
+ <properties>
+ <help>Show Inter-Area-Router LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="intra-prefix">
+ <properties>
+ <help>Show Intra-Area-Prefix LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="link">
+ <properties>
+ <help>Show Link LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="network">
+ <properties>
+ <help>Show Network LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="node.tag">
+ <properties>
+ <help>Show LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="router">
+ <properties>
+ <help>Show router LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ <node name="type-7">
+ <properties>
+ <help>Show Type-7 LSAs</help>
+ </properties>
+ <!-- FRR uses ospf6 where we use ospfv3, thus alter the command -->
+ <command>vtysh -c "show ipv6 ospf6 ${@:4}"</command>
+ <children>
+ #include <include/ospfv3-adv-router.xml.i>
+ #include <include/ospfv3-detail.xml.i>
+ #include <include/ospfv3-dump.xml.i>
+ #include <include/ospfv3-internal.xml.i>
+ #include <include/ospfv3-linkstate-id.xml.i>
+ #include <include/ospfv3-linkstate-id-node-tag.xml.i>
+ #include <include/ospfv3-self-originated.xml.i>
+ </children>
+ </node>
+ </children>
+ </node>
+ <node name="interface">
+ <properties>
+ <help>Show OSPFv3 interface information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface"</command>
+ <children>
+ <node name="prefix">
+ <properties>
+ <help>Show connected prefixes to advertise</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface prefix"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ <tagNode name="prefix">
+ <properties>
+ <help>Show interface prefix route specific information</help>
+ <completionHelp>
+ <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface prefix $6"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ <node name="match">
+ <properties>
+ <help>Matched interface prefix information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface prefix $6 match"</command>
+ </node>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ <tagNode name="interface">
+ <properties>
+ <help>Specific insterface to examine</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface $5"</command>
+ <children>
+ <node name="prefix">
+ <properties>
+ <help>Show connected prefixes to advertise</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface $5 prefix"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ <tagNode name="prefix">
+ <properties>
+ <help>Show interface prefix route specific information</help>
+ <completionHelp>
+ <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ <node name="match">
+ <properties>
+ <help>Matched interface prefix information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 interface $5 prefix $7 match"</command>
+ </node>
+ </children>
+ </tagNode>
+ </children>
+ </tagNode>
+ <node name="linkstate">
+ <properties>
+ <help>Show OSPFv3 linkstate routing information</help>
+ </properties>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ <node name="network">
+ <properties>
+ <help>Show linkstate Network information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 linkstate network"</command>
+ </node>
+ <node name="router">
+ <properties>
+ <help>Show linkstate Router information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 linkstate router"</command>
+ </node>
+ </children>
+ </node>
+ <node name="neighbor">
+ <properties>
+ <help>Show OSPFv3 neighbor information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 neighbor"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ <node name="drchoice">
+ <properties>
+ <help>Show neighbor DR choice information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 neighbor drchoice"</command>
+ </node>
+ </children>
+ </node>
+ <node name="redistribute">
+ <properties>
+ <help>Show OSPFv3 redistribute external information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 redistribute"</command>
+ </node>
+ <node name="route">
+ <properties>
+ <help>Show OSPFv3 routing table information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route"</command>
+ <children>
+ <node name="external-1">
+ <properties>
+ <help>Show Type-1 External route information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route external-1"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ <node name="external-2">
+ <properties>
+ <help>Show Type-2 External route information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route external-2"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ <node name="inter-area">
+ <properties>
+ <help>Show Inter-Area route information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route inter-area"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ <node name="intra-area">
+ <properties>
+ <help>Show Intra-Area route information</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route intra-area"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ #include <include/ospfv3-detail.xml.i>
+ <node name="summary">
+ <properties>
+ <help>Show route table summary</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route summary"</command>
+ </node>
+ </children>
+ </node>
+ <tagNode name="route">
+ <properties>
+ <help>Show specified route/prefix information</help>
+ <completionHelp>
+ <list><h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x></list>
+ </completionHelp>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route $5"</command>
+ <children>
+ <node name="longer">
+ <properties>
+ <help>Show routes longer than specified prefix</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route $5 longer"</command>
+ </node>
+ <node name="match">
+ <properties>
+ <help>Show routes matching specified prefix</help>
+ </properties>
+ <command>vtysh -c "show ipv6 ospf6 route $5 match"</command>
+ <children>
+ #include <include/ospfv3-detail.xml.i>
+ </children>
+ </node>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/show-ipv6-prefix-list.xml b/op-mode-definitions/show-ipv6-prefix-list.xml.in
similarity index 100%
rename from op-mode-definitions/show-ipv6-prefix-list.xml
rename to op-mode-definitions/show-ipv6-prefix-list.xml.in
diff --git a/op-mode-definitions/show-ipv6-route.xml b/op-mode-definitions/show-ipv6-route.xml.in
similarity index 100%
rename from op-mode-definitions/show-ipv6-route.xml
rename to op-mode-definitions/show-ipv6-route.xml.in
diff --git a/op-mode-definitions/show-ipv6.xml b/op-mode-definitions/show-ipv6.xml.in
similarity index 100%
rename from op-mode-definitions/show-ipv6.xml
rename to op-mode-definitions/show-ipv6.xml.in
diff --git a/op-mode-definitions/show-isis.xml b/op-mode-definitions/show-isis.xml.in
similarity index 100%
rename from op-mode-definitions/show-isis.xml
rename to op-mode-definitions/show-isis.xml.in
diff --git a/op-mode-definitions/show-license.xml b/op-mode-definitions/show-license.xml.in
similarity index 100%
rename from op-mode-definitions/show-license.xml
rename to op-mode-definitions/show-license.xml.in
diff --git a/op-mode-definitions/show-log.xml b/op-mode-definitions/show-log.xml.in
similarity index 100%
rename from op-mode-definitions/show-log.xml
rename to op-mode-definitions/show-log.xml.in
diff --git a/op-mode-definitions/show-login.xml b/op-mode-definitions/show-login.xml.in
similarity index 100%
rename from op-mode-definitions/show-login.xml
rename to op-mode-definitions/show-login.xml.in
diff --git a/op-mode-definitions/show-monitoring.xml b/op-mode-definitions/show-monitoring.xml.in
similarity index 100%
rename from op-mode-definitions/show-monitoring.xml
rename to op-mode-definitions/show-monitoring.xml.in
diff --git a/op-mode-definitions/show-mpls.xml b/op-mode-definitions/show-mpls.xml.in
similarity index 100%
rename from op-mode-definitions/show-mpls.xml
rename to op-mode-definitions/show-mpls.xml.in
diff --git a/op-mode-definitions/show-ntp.xml b/op-mode-definitions/show-ntp.xml.in
similarity index 100%
rename from op-mode-definitions/show-ntp.xml
rename to op-mode-definitions/show-ntp.xml.in
diff --git a/op-mode-definitions/show-poweroff.xml b/op-mode-definitions/show-poweroff.xml.in
similarity index 100%
rename from op-mode-definitions/show-poweroff.xml
rename to op-mode-definitions/show-poweroff.xml.in
diff --git a/op-mode-definitions/show-protocols-bfd.xml b/op-mode-definitions/show-protocols-bfd.xml.in
similarity index 100%
rename from op-mode-definitions/show-protocols-bfd.xml
rename to op-mode-definitions/show-protocols-bfd.xml.in
diff --git a/op-mode-definitions/show-protocols-static.xml b/op-mode-definitions/show-protocols-static.xml.in
similarity index 100%
rename from op-mode-definitions/show-protocols-static.xml
rename to op-mode-definitions/show-protocols-static.xml.in
diff --git a/op-mode-definitions/show-raid.xml b/op-mode-definitions/show-raid.xml.in
similarity index 100%
rename from op-mode-definitions/show-raid.xml
rename to op-mode-definitions/show-raid.xml.in
diff --git a/op-mode-definitions/show-reboot.xml b/op-mode-definitions/show-reboot.xml.in
similarity index 100%
rename from op-mode-definitions/show-reboot.xml
rename to op-mode-definitions/show-reboot.xml.in
diff --git a/op-mode-definitions/show-route-map.xml b/op-mode-definitions/show-route-map.xml.in
similarity index 100%
rename from op-mode-definitions/show-route-map.xml
rename to op-mode-definitions/show-route-map.xml.in
diff --git a/op-mode-definitions/show-rpki.xml b/op-mode-definitions/show-rpki.xml.in
similarity index 100%
rename from op-mode-definitions/show-rpki.xml
rename to op-mode-definitions/show-rpki.xml.in
diff --git a/op-mode-definitions/show-system.xml b/op-mode-definitions/show-system.xml.in
similarity index 100%
rename from op-mode-definitions/show-system.xml
rename to op-mode-definitions/show-system.xml.in
diff --git a/op-mode-definitions/show-table.xml b/op-mode-definitions/show-table.xml.in
similarity index 100%
rename from op-mode-definitions/show-table.xml
rename to op-mode-definitions/show-table.xml.in
diff --git a/op-mode-definitions/show-users.xml b/op-mode-definitions/show-users.xml.in
similarity index 100%
rename from op-mode-definitions/show-users.xml
rename to op-mode-definitions/show-users.xml.in
diff --git a/op-mode-definitions/show-version.xml b/op-mode-definitions/show-version.xml.in
similarity index 100%
rename from op-mode-definitions/show-version.xml
rename to op-mode-definitions/show-version.xml.in
diff --git a/op-mode-definitions/show-vpn.xml b/op-mode-definitions/show-vpn.xml.in
similarity index 99%
rename from op-mode-definitions/show-vpn.xml
rename to op-mode-definitions/show-vpn.xml.in
index 0e7fc38e9..3fbc74ad1 100644
--- a/op-mode-definitions/show-vpn.xml
+++ b/op-mode-definitions/show-vpn.xml.in
@@ -1,20 +1,20 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="vpn">
<properties>
<help>Show active remote access Virtual Private Network (VPN) sessions</help>
</properties>
<children>
<leafNode name="remote-access">
<properties>
<help>Show active VPN server sessions</help>
</properties>
- <command>${vyos_op_scripts_dir}/show_vpn_ra.py</command>
+ <command>${vyos_op_scripts_dir}/show_vpn_ra.py</command>
</leafNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
diff --git a/op-mode-definitions/show-vrf.xml b/op-mode-definitions/show-vrf.xml.in
similarity index 100%
rename from op-mode-definitions/show-vrf.xml
rename to op-mode-definitions/show-vrf.xml.in
diff --git a/op-mode-definitions/snmp.xml b/op-mode-definitions/snmp.xml.in
similarity index 100%
rename from op-mode-definitions/snmp.xml
rename to op-mode-definitions/snmp.xml.in
diff --git a/op-mode-definitions/sstp-server.xml b/op-mode-definitions/sstp-server.xml.in
similarity index 100%
rename from op-mode-definitions/sstp-server.xml
rename to op-mode-definitions/sstp-server.xml.in
diff --git a/op-mode-definitions/telnet.xml b/op-mode-definitions/telnet.xml.in
similarity index 100%
rename from op-mode-definitions/telnet.xml
rename to op-mode-definitions/telnet.xml.in
diff --git a/op-mode-definitions/terminal.xml b/op-mode-definitions/terminal.xml.in
similarity index 100%
rename from op-mode-definitions/terminal.xml
rename to op-mode-definitions/terminal.xml.in
diff --git a/op-mode-definitions/traceroute.xml b/op-mode-definitions/traceroute.xml.in
similarity index 100%
rename from op-mode-definitions/traceroute.xml
rename to op-mode-definitions/traceroute.xml.in
diff --git a/op-mode-definitions/traffic-dump.xml b/op-mode-definitions/traffic-dump.xml.in
similarity index 100%
rename from op-mode-definitions/traffic-dump.xml
rename to op-mode-definitions/traffic-dump.xml.in
diff --git a/op-mode-definitions/vrrp.xml b/op-mode-definitions/vrrp.xml.in
similarity index 100%
rename from op-mode-definitions/vrrp.xml
rename to op-mode-definitions/vrrp.xml.in
diff --git a/op-mode-definitions/wake-on-lan.xml b/op-mode-definitions/wake-on-lan.xml.in
similarity index 100%
rename from op-mode-definitions/wake-on-lan.xml
rename to op-mode-definitions/wake-on-lan.xml.in
diff --git a/op-mode-definitions/webproxy.xml b/op-mode-definitions/webproxy.xml.in
similarity index 100%
rename from op-mode-definitions/webproxy.xml
rename to op-mode-definitions/webproxy.xml.in
diff --git a/op-mode-definitions/wireguard.xml b/op-mode-definitions/wireguard.xml.in
similarity index 99%
rename from op-mode-definitions/wireguard.xml
rename to op-mode-definitions/wireguard.xml.in
index a7bfa36a3..69ba8043d 100644
--- a/op-mode-definitions/wireguard.xml
+++ b/op-mode-definitions/wireguard.xml.in
@@ -1,138 +1,137 @@
<?xml version="1.0"?>
<!-- wireguard key management -->
<interfaceDefinition>
<node name="generate">
<children>
<node name="wireguard">
<properties>
<help>wireguard key generation utility</help>
</properties>
<children>
<leafNode name="default-keypair">
<properties>
<help>generates the wireguard default-keypair</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/wireguard.py --genkey</command>
</leafNode>
<leafNode name="preshared-key">
<properties>
<help>generate a wireguard preshared key</help>
</properties>
<command>${vyos_op_scripts_dir}/wireguard.py --genpsk</command>
</leafNode>
<tagNode name="named-keypairs">
<properties>
<help>Generates named wireguard keypairs</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/wireguard.py --genkey --location "$4"</command>
</tagNode>
</children>
</node>
</children>
</node>
<node name="show">
<children>
<node name="wireguard">
<properties>
<help>Show wireguard properties</help>
</properties>
<children>
<node name="keypairs">
<properties>
<help>Shows named wireguard keys</help>
</properties>
<children>
<tagNode name="pubkey">
<properties>
<help>Show wireguard private named key</help>
<completionHelp>
<script>${vyos_op_scripts_dir}/wireguard.py --listkdir</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/wireguard.py --showpub --location "$5"</command>
</tagNode>
<tagNode name="privkey">
<properties>
<help>Show wireguard public named key</help>
<completionHelp>
<script>${vyos_op_scripts_dir}/wireguard.py --listkdir</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/wireguard.py --showpriv --location "$5"</command>
</tagNode>
</children>
</node>
</children>
</node>
<node name="interfaces">
<children>
<tagNode name="wireguard">
<properties>
<help>show wireguard interface information</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces.py --type wireguard</script>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/wireguard.py --showinterface "$4"</command>
<children>
<leafNode name="allowed-ips">
<properties>
<help>show all allowed-ips for the specified interface</help>
</properties>
<command>sudo wg show "$4" allowed-ips</command>
</leafNode>
<leafNode name="endpoints">
<properties>
<help>show all endpoints for the specified interface</help>
</properties>
<command>sudo wg show "$4" endpoints</command>
</leafNode>
<leafNode name="peers">
<properties>
<help>show all peer IDs for the specified interface</help>
</properties>
<command>sudo wg show "$4" peers</command>
</leafNode>
<!-- more commands upon request -->
</children>
</tagNode>
<node name="wireguard">
<properties>
<help>Show wireguard interface information</help>
</properties>
<command>${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireguard --action=show-brief</command>
<children>
<leafNode name="detail">
<properties>
<help>Show detailed wireguard interface information</help>
</properties>
<command>${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireguard --action=show</command>
</leafNode>
</children>
</node>
</children>
</node>
</children>
</node>
<node name="delete">
<children>
<node name="wireguard">
<properties>
<help>Delete wireguard properties</help>
</properties>
<children>
<tagNode name="keypair">
<properties>
<help>Delete a wireguard keypair</help>
<completionHelp>
<script>${vyos_op_scripts_dir}/wireguard.py --listkdir</script>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/wireguard.py --delkdir --location "$4"</command>
</tagNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
-
diff --git a/op-mode-definitions/wireless.xml b/op-mode-definitions/wireless.xml.in
similarity index 100%
rename from op-mode-definitions/wireless.xml
rename to op-mode-definitions/wireless.xml.in
diff --git a/sphinx/source/.gitignore b/sphinx/source/.gitignore
new file mode 100644
index 000000000..30d85567b
--- /dev/null
+++ b/sphinx/source/.gitignore
@@ -0,0 +1 @@
+*.rst
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Nov 26, 8:53 PM (2 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4950760
Default Alt Text
(255 KB)
Attached To
Mode
rVYOSONEX vyos-1x
Attached
Detach File
Event Timeline
Log In to Comment