diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-08 21:50:14 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-09 09:03:04 +0000 |
commit | 0cbe4cd087aeeb435e2d34820aa34fb7af1add21 (patch) | |
tree | 80d4a2a148adf0c7abdadacd87e1e1bc36c2e4b6 /op-mode-definitions/show-conntrack.xml.in | |
parent | 44b1bdd3273dce4e74a5474c401ac7107950635b (diff) | |
download | vyos-1x-0cbe4cd087aeeb435e2d34820aa34fb7af1add21.tar.gz vyos-1x-0cbe4cd087aeeb435e2d34820aa34fb7af1add21.zip |
conntrack: T4145: Add show conntrack table ipv4
After firewall rewriting, we lost the ability to show conntrack
table as it used old code
Rewrite and add it to XML/Python
Diffstat (limited to 'op-mode-definitions/show-conntrack.xml.in')
-rw-r--r-- | op-mode-definitions/show-conntrack.xml.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/op-mode-definitions/show-conntrack.xml.in b/op-mode-definitions/show-conntrack.xml.in new file mode 100644 index 000000000..792623d7d --- /dev/null +++ b/op-mode-definitions/show-conntrack.xml.in @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="conntrack"> + <properties> + <help>Show conntrack tables entries</help> + </properties> + <children> + <node name="table"> + <properties> + <help>Show conntrack entries for table</help> + </properties> + <children> + <node name="ipv4"> + <properties> + <help>Show conntrack entries for IPv4 protocol</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/show_conntrack.py</command> + </node> + </children> + </node> + </children> + </node> + </children> + </node> +</interfaceDefinition> |