summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2017-07-25 19:19:13 +0200
committerKim Hagen <kim.sidney@gmail.com>2017-07-25 19:20:28 +0200
commit1e094d77022ad49f29f05718913b4c5b23203012 (patch)
treed032696ec19b54bff475f4a4515f89bf0513d87c /templates
parent76822101f04681402df67fcb194e8c0fdd71c96d (diff)
downloadvyatta-op-1e094d77022ad49f29f05718913b4c5b23203012.tar.gz
vyatta-op-1e094d77022ad49f29f05718913b4c5b23203012.zip
The command "show log firewall name <name>" does not show the expected log entries
Diffstat (limited to 'templates')
-rw-r--r--templates/show/log/firewall/ipv6-name/node.tag/node.def2
-rw-r--r--templates/show/log/firewall/name/node.tag/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/show/log/firewall/ipv6-name/node.tag/node.def b/templates/show/log/firewall/ipv6-name/node.tag/node.def
index 072e210..629e237 100644
--- a/templates/show/log/firewall/ipv6-name/node.tag/node.def
+++ b/templates/show/log/firewall/ipv6-name/node.tag/node.def
@@ -1,5 +1,5 @@
help: Show log for a specified firewall
allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall ipv6-name)
echo "${ARR[@]//\'/}"
-run: cat $(printf "%s\n" /var/log/messages* | sort -nr) | egrep "\[$5-[0-9]+|default-[ADR]\]"
+run: cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-([0-9]+|default)-[ADR]\]"
diff --git a/templates/show/log/firewall/name/node.tag/node.def b/templates/show/log/firewall/name/node.tag/node.def
index 4e71fa0..7431f8a 100644
--- a/templates/show/log/firewall/name/node.tag/node.def
+++ b/templates/show/log/firewall/name/node.tag/node.def
@@ -1,5 +1,5 @@
help: Show log for a specified firewall
allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall name)
echo "${ARR[@]//\'/}"
-run: cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-[0-9]+|default-[ADR]\]"
+run: cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-([0-9]+|default)-[ADR]\]"