summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-07-22 12:14:29 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-07-22 12:56:52 +0000
commit4dc5d78eed411c7584265ee33cf1848fdf6492bc (patch)
treeade47f60fe93ba08a50a79f6b515aee77a9568db /op-mode-definitions
parentbec3e9de40b57a1d7cd805ddcdd498033105679b (diff)
downloadvyos-1x-4dc5d78eed411c7584265ee33cf1848fdf6492bc.tar.gz
vyos-1x-4dc5d78eed411c7584265ee33cf1848fdf6492bc.zip
conntrack: T4145: Modify conntrack to format command runner
Change op-mode "show conntrack table ipvX" script to work with vyos.opmode module Change name "show_conntrack.py" => "conntrack.py" Ability to get IPv6 conntrack information Ability to get raw and formatted data
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-conntrack.xml.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/op-mode-definitions/show-conntrack.xml.in b/op-mode-definitions/show-conntrack.xml.in
index 792623d7d..8d921e6a5 100644
--- a/op-mode-definitions/show-conntrack.xml.in
+++ b/op-mode-definitions/show-conntrack.xml.in
@@ -16,7 +16,13 @@
<properties>
<help>Show conntrack entries for IPv4 protocol</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/show_conntrack.py</command>
+ <command>sudo ${vyos_op_scripts_dir}/conntrack.py show --family inet</command>
+ </node>
+ <node name="ipv6">
+ <properties>
+ <help>Show conntrack entries for IPv6 protocol</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/conntrack.py show --family inet6</command>
</node>
</children>
</node>