Skip to content

Commit

Permalink
Merge 116fba2 into 7ddf154
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceaulinic committed Jun 15, 2020
2 parents 7ddf154 + 116fba2 commit ac25894
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 1 deletion.
13 changes: 12 additions & 1 deletion napalm_logs/config/junos/BGP_MD5_INCORRECT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@ messages:
- error: BGP_MD5_INCORRECT
tag: tcp_auth_ok
values:
peer: (\d+\.\d+\.\d+\.\d+)
peer: ([\w\d:\.]+)
port: (\d+)
line: 'Packet from {peer}:{port} wrong MD5 digest'
model: openconfig-bgp
mapping:
variables: {}
static:
bgp//neighbors//neighbor//{peer}//state//session_state: CONNECT
- error: BGP_MD5_INCORRECT
tag: tcp_auth_ok
values:
peer: ([\w\d:\.]+)
port: (\d+)
line: 'Packet from {peer}:{port} missing MD5 digest'
model: openconfig-bgp
mapping:
variables: {}
static:
bgp//neighbors//neighbor//{peer}//state//session_state: ACTIVE
1 change: 1 addition & 0 deletions tests/config/junos/BGP_MD5_INCORRECT/ipv6/syslog.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<4>Jul 20 21:23:00 vmx01 /kernel: tcp_auth_ok: Packet from 2001:db8:1::a502:764:1:61664 wrong MD5 digest
36 changes: 36 additions & 0 deletions tests/config/junos/BGP_MD5_INCORRECT/ipv6/yang.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"yang_message": {
"bgp": {
"neighbors": {
"neighbor": {
"2001:db8:1::a502:764:1": {
"state": {
"session_state": "CONNECT"
}
}
}
}
}
},
"message_details": {
"processId": null,
"severity": 4,
"facility": 0,
"hostPrefix": null,
"pri": "4",
"processName": "kernel",
"host": "vmx01",
"tag": "tcp_auth_ok",
"time": "21:23:00",
"date": "Jul 20",
"message": "Packet from 2001:db8:1::a502:764:1:61664 wrong MD5 digest"
},
"timestamp": 1500585780,
"facility": 0,
"ip": "127.0.0.1",
"host": "vmx01",
"yang_model": "openconfig-bgp",
"error": "BGP_MD5_INCORRECT",
"os": "junos",
"severity": 4
}
1 change: 1 addition & 0 deletions tests/config/junos/BGP_MD5_INCORRECT/missing/syslog.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<4>Jul 20 21:23:00 vmx01 kernel: tcp_auth_ok: Packet from 192.168.140.254:61664 missing MD5 digest
36 changes: 36 additions & 0 deletions tests/config/junos/BGP_MD5_INCORRECT/missing/yang.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"yang_message": {
"bgp": {
"neighbors": {
"neighbor": {
"192.168.140.254": {
"state": {
"session_state": "ACTIVE"
}
}
}
}
}
},
"message_details": {
"processId": null,
"severity": 4,
"facility": 0,
"hostPrefix": null,
"pri": "4",
"processName": "kernel",
"host": "vmx01",
"tag": "tcp_auth_ok",
"time": "21:23:00",
"date": "Jul 20",
"message": "Packet from 192.168.140.254:61664 missing MD5 digest"
},
"timestamp": 1500585780,
"facility": 0,
"ip": "127.0.0.1",
"host": "vmx01",
"yang_model": "openconfig-bgp",
"error": "BGP_MD5_INCORRECT",
"os": "junos",
"severity": 4
}

0 comments on commit ac25894

Please sign in to comment.