From 4167778e92fe08865027524f17965fc96defc1be Mon Sep 17 00:00:00 2001
From: Viacheslav Hletenko <v.gletenko@vyos.io>
Date: Tue, 30 Aug 2022 07:15:32 +0000
Subject: op-mode: T4606: Fix monitor nat src|dst translation

A quick fix for "monitor nat source|destination translations"
Due to old Perl script "vyatta-nat-translations.pl" was deleted and
to return it requires an additional Perl packages (XML::Simple module)
There is no sense to do it until we'll rewrite it to Python
So a compromise solution is show conntrack events 'conntrack' itself
---
 templates/monitor/nat/source/translations/node.def | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'templates/monitor/nat/source/translations/node.def')

diff --git a/templates/monitor/nat/source/translations/node.def b/templates/monitor/nat/source/translations/node.def
index 7ded6c1..e458848 100644
--- a/templates/monitor/nat/source/translations/node.def
+++ b/templates/monitor/nat/source/translations/node.def
@@ -1,4 +1,4 @@
 help: Monitor active source NAT translations events
 run: LESSOPEN=cat
-     echo Type control-C to quit 
-     sudo /usr/sbin/conntrack -E -n -o xml 2>/dev/null | ${vyatta_bindir}/sudo-users/vyatta-nat-translations.pl --pipe --type=source
+     echo Type control-C to quit
+     sudo /usr/sbin/conntrack --src-nat --event
-- 
cgit v1.2.3

