netenglabs / suzieq

Using network observability to operate and design healthier networks
https://www.stardustsystems.net/
Apache License 2.0
795 stars 107 forks source link

juniper - assert fail even if LLDP data exists #275

Closed anubisg1 closed 3 years ago

anubisg1 commented 4 years ago

root> lldp show namespace=JUNIPER
   namespace             hostname     ifname          peerHostname peerIfname                                        description mgmtIP               timestamp
0    JUNIPER  Jun_Leaf101-QFX5120        em0      CZBRNRK5-MGMT-01          -  Cisco IOS Software, C3750E Software (C3750E-UN...        2020-11-16 14:32:40.482
8    JUNIPER  Jun_Leaf101-QFX5120  et-0/0/54   Jun_Spine01-QFX5210          -  Juniper Networks, Inc. qfx5210-64c Ethernet Sw...        2020-11-16 14:32:40.482
9    JUNIPER  Jun_Leaf101-QFX5120  et-0/0/55   Jun_Spine02-QFX5210          -  Juniper Networks, Inc. qfx5210-64c Ethernet Sw...        2020-11-16 14:32:40.482
19   JUNIPER  Jun_Leaf102-QFX5120        em0      CZBRNRK5-MGMT-01          -  Cisco IOS Software, C3750E Software (C3750E-UN...        2020-11-16 14:32:41.759
17   JUNIPER  Jun_Leaf102-QFX5120  et-0/0/54   Jun_Spine01-QFX5210          -  Juniper Networks, Inc. qfx5210-64c Ethernet Sw...        2020-11-16 14:32:41.759
18   JUNIPER  Jun_Leaf102-QFX5120  et-0/0/55   Jun_Spine02-QFX5210          -  Juniper Networks, Inc. qfx5210-64c Ethernet Sw...        2020-11-16 14:32:41.759
11   JUNIPER  Jun_Spine01-QFX5210        em0      CZBRNRK5-MGMT-01          -  Cisco IOS Software, C3750E Software (C3750E-UN...        2020-11-16 14:32:40.939
10   JUNIPER  Jun_Spine01-QFX5210   et-0/0/0   Jun_BLeaf301-MX204R          -  Juniper Networks, Inc. JNP204 [MX204] internet...        2020-11-16 14:32:40.939
15   JUNIPER  Jun_Spine01-QFX5210   et-0/0/1   Jun_BLeaf302-MX204R          -  Juniper Networks, Inc. JNP204 [MX204] internet...        2020-11-16 14:32:40.939
13   JUNIPER  Jun_Spine01-QFX5210  et-0/0/30   Jun_Leaf101-QFX5120          -  Juniper Networks, Inc. qfx5120-48y-8c Ethernet...        2020-11-16 14:32:40.939
14   JUNIPER  Jun_Spine01-QFX5210  et-0/0/31   Jun_Leaf102-QFX5120          -  Juniper Networks, Inc. qfx5120-48y-8c Ethernet...        2020-11-16 14:32:40.939
16   JUNIPER  Jun_Spine01-QFX5210  et-0/0/62  Jun_Leaf401-EX4300MP          -  Juniper Networks, Inc. ex4300-48mp Ethernet Sw...        2020-11-16 14:32:40.939
12   JUNIPER  Jun_Spine01-QFX5210  et-0/0/63  Jun_Leaf402-EX4300MP          -  Juniper Networks, Inc. ex4300-48mp Ethernet Sw...        2020-11-16 14:32:40.939
5    JUNIPER  Jun_Spine02-QFX5210        em0      CZBRNRK5-MGMT-01          -  Cisco IOS Software, C3750E Software (C3750E-UN...        2020-11-16 14:32:40.482
3    JUNIPER  Jun_Spine02-QFX5210   et-0/0/0   Jun_BLeaf301-MX204R          -  Juniper Networks, Inc. JNP204 [MX204] internet...        2020-11-16 14:32:40.482
4    JUNIPER  Jun_Spine02-QFX5210   et-0/0/1   Jun_BLeaf302-MX204R          -  Juniper Networks, Inc. JNP204 [MX204] internet...        2020-11-16 14:32:40.482
6    JUNIPER  Jun_Spine02-QFX5210  et-0/0/30   Jun_Leaf101-QFX5120          -  Juniper Networks, Inc. qfx5120-48y-8c Ethernet...        2020-11-16 14:32:40.482
7    JUNIPER  Jun_Spine02-QFX5210  et-0/0/31   Jun_Leaf102-QFX5120          -  Juniper Networks, Inc. qfx5120-48y-8c Ethernet...        2020-11-16 14:32:40.482
2    JUNIPER  Jun_Spine02-QFX5210  et-0/0/62  Jun_Leaf401-EX4300MP          -  Juniper Networks, Inc. ex4300-48mp Ethernet Sw...        2020-11-16 14:32:40.482
1    JUNIPER  Jun_Spine02-QFX5210  et-0/0/63  Jun_Leaf402-EX4300MP          -  Juniper Networks, Inc. ex4300-48mp Ethernet Sw...        2020-11-16 14:32:40.482
root> ospf show namespace=JUNIPER
   namespace             hostname      vrf     area       ifname ifState  nbrCount adjState     peerIP          lastChangeTime  numChanges               timestamp
3    JUNIPER  Jun_Leaf101-QFX5120  default  0.0.0.1  et-0/0/54.0      up         1     full   10.0.0.1 2020-11-16 14:31:40.539         0.0 2020-11-16 14:32:38.578
4    JUNIPER  Jun_Leaf101-QFX5120  default  0.0.0.1  et-0/0/55.0      up         1     full   10.0.0.2 2020-11-16 14:31:41.539         0.0 2020-11-16 14:32:38.578
5    JUNIPER  Jun_Leaf101-QFX5120  default  0.0.0.1        lo0.0      up         0  passive          - 1970-01-01 00:00:00.000         0.0 2020-11-16 14:32:38.578
0    JUNIPER  Jun_Leaf102-QFX5120  default  0.0.0.1  et-0/0/54.0      up         1     full   10.0.0.1 2020-11-16 14:31:21.833         0.0 2020-11-16 14:32:38.376
1    JUNIPER  Jun_Leaf102-QFX5120  default  0.0.0.1  et-0/0/55.0      up         1     full   10.0.0.2 2020-11-16 14:31:21.833         0.0 2020-11-16 14:32:38.376
2    JUNIPER  Jun_Leaf102-QFX5120  default  0.0.0.1        lo0.0      up         0  passive          - 1970-01-01 00:00:00.000         0.0 2020-11-16 14:32:38.376
17   JUNIPER  Jun_Spine01-QFX5210  default  0.0.0.1   et-0/0/0.0      up         1     full  10.0.0.11 2020-11-16 14:30:20.641         0.0 2020-11-16 14:32:38.685
16   JUNIPER  Jun_Spine01-QFX5210  default  0.0.0.1   et-0/0/1.0      up         1     full  10.0.0.12 2020-11-16 14:30:20.641         0.0 2020-11-16 14:32:38.685
15   JUNIPER  Jun_Spine01-QFX5210  default  0.0.0.1  et-0/0/30.0      up         1     full  10.0.0.13 2020-11-16 14:31:40.641         0.0 2020-11-16 14:32:38.685
19   JUNIPER  Jun_Spine01-QFX5210  default  0.0.0.1  et-0/0/31.0      up         1     full  10.0.0.14 2020-11-16 14:31:22.641         0.0 2020-11-16 14:32:38.685
14   JUNIPER  Jun_Spine01-QFX5210  default  0.0.0.1  et-0/0/62.0      up         1     full  10.0.0.15 2020-11-16 14:30:17.641         0.0 2020-11-16 14:32:38.685
18   JUNIPER  Jun_Spine01-QFX5210  default  0.0.0.1  et-0/0/63.0      up         1     full  10.0.0.16 2020-11-16 14:30:17.641         0.0 2020-11-16 14:32:38.685
13   JUNIPER  Jun_Spine01-QFX5210  default  0.0.0.1        lo0.0      up         0  passive          - 1970-01-01 00:00:00.000         0.0 2020-11-16 14:32:38.685
10   JUNIPER  Jun_Spine02-QFX5210  default  0.0.0.1   et-0/0/0.0      up         1     full  10.0.0.11 2020-11-16 14:30:20.685         0.0 2020-11-16 14:32:38.634
9    JUNIPER  Jun_Spine02-QFX5210  default  0.0.0.1   et-0/0/1.0      up         1     full  10.0.0.12 2020-11-16 14:30:21.685         0.0 2020-11-16 14:32:38.634
8    JUNIPER  Jun_Spine02-QFX5210  default  0.0.0.1  et-0/0/30.0      up         1     full  10.0.0.13 2020-11-16 14:31:40.685         0.0 2020-11-16 14:32:38.634
7    JUNIPER  Jun_Spine02-QFX5210  default  0.0.0.1  et-0/0/31.0      up         1     full  10.0.0.14 2020-11-16 14:31:22.685         0.0 2020-11-16 14:32:38.634
6    JUNIPER  Jun_Spine02-QFX5210  default  0.0.0.1  et-0/0/62.0      up         1     full  10.0.0.15 2020-11-16 14:30:17.685         0.0 2020-11-16 14:32:38.634
12   JUNIPER  Jun_Spine02-QFX5210  default  0.0.0.1  et-0/0/63.0      up         1     full  10.0.0.16 2020-11-16 14:30:16.685         0.0 2020-11-16 14:32:38.634
11   JUNIPER  Jun_Spine02-QFX5210  default  0.0.0.1        lo0.0      up         0  passive          - 1970-01-01 00:00:00.000         0.0 2020-11-16 14:32:38.634
root> ospf assert namespace=JUNIPER
   namespace             hostname      vrf       ifname          assertReason assert
3    JUNIPER  Jun_Leaf101-QFX5120  default  et-0/0/54.0  No LLDP peering info   fail
4    JUNIPER  Jun_Leaf101-QFX5120  default  et-0/0/55.0  No LLDP peering info   fail
5    JUNIPER  Jun_Leaf101-QFX5120  default        lo0.0  No LLDP peering info   fail
0    JUNIPER  Jun_Leaf102-QFX5120  default  et-0/0/54.0  No LLDP peering info   fail
1    JUNIPER  Jun_Leaf102-QFX5120  default  et-0/0/55.0  No LLDP peering info   fail
2    JUNIPER  Jun_Leaf102-QFX5120  default        lo0.0  No LLDP peering info   fail
17   JUNIPER  Jun_Spine01-QFX5210  default   et-0/0/0.0  No LLDP peering info   fail
16   JUNIPER  Jun_Spine01-QFX5210  default   et-0/0/1.0  No LLDP peering info   fail
15   JUNIPER  Jun_Spine01-QFX5210  default  et-0/0/30.0  No LLDP peering info   fail
19   JUNIPER  Jun_Spine01-QFX5210  default  et-0/0/31.0  No LLDP peering info   fail
14   JUNIPER  Jun_Spine01-QFX5210  default  et-0/0/62.0  No LLDP peering info   fail
18   JUNIPER  Jun_Spine01-QFX5210  default  et-0/0/63.0  No LLDP peering info   fail
13   JUNIPER  Jun_Spine01-QFX5210  default        lo0.0  No LLDP peering info   fail
10   JUNIPER  Jun_Spine02-QFX5210  default   et-0/0/0.0  No LLDP peering info   fail
9    JUNIPER  Jun_Spine02-QFX5210  default   et-0/0/1.0  No LLDP peering info   fail
8    JUNIPER  Jun_Spine02-QFX5210  default  et-0/0/30.0  No LLDP peering info   fail
7    JUNIPER  Jun_Spine02-QFX5210  default  et-0/0/31.0  No LLDP peering info   fail
6    JUNIPER  Jun_Spine02-QFX5210  default  et-0/0/62.0  No LLDP peering info   fail
12   JUNIPER  Jun_Spine02-QFX5210  default  et-0/0/63.0  No LLDP peering info   fail
11   JUNIPER  Jun_Spine02-QFX5210  default        lo0.0  No LLDP peering info   fail
Assert failed
anubisg1 commented 4 years ago

notice that SOME are supposed to fail on the spines, but also the onces meant to work fail