Skip to content

Commit

Permalink
corrected per YANG schema
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed Jul 11, 2022
1 parent 9423d0d commit e5be04f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions dockers/docker-fpm-frr/bgp_regex.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
[
{
"tag": "bgp_down",
"regex": "Peer .default\\|([0-9a-f:.]*[0-9a-f]*). admin state is set to .down.",
"params": [ "peer_ip" ]
},
{
"tag": "bgp_up",
"regex": "Peer .default\\|([0-9a-f:.]*[0-9a-f]*). admin state is set to .up.",
"params": [ "peer_ip" ]
"tag": "bgp-state",
"regex": "Peer .default\\|([0-9a-f:.]*[0-9a-f]*). admin state is set to .(up|down).",
"params": [ "peer_ip", "status" ]
}
]

2 changes: 1 addition & 1 deletion files/build_templates/rsyslog_plugin.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ template(name="prog_msg" type="list") {
$ModLoad omprog

{% for proc in proclist %}
if startswith($programname, "{{ proc.name }}") then {
if re_match($programname, "{{ proc.name }}") then {
action(type="omprog"
binary="/usr/share/sonic/scripts/rsyslog_plugin -r /etc/rsyslog.d/{{ proc.parse_json }} -m {{ yang_module }}"
output="/var/log/rsyslog_plugin.log"
Expand Down

0 comments on commit e5be04f

Please sign in to comment.