mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
Fix Juniper BGP Community processing, closes #37
This commit is contained in:
parent
a562c90094
commit
dddf8d8563
1 changed files with 4 additions and 1 deletions
|
|
@ -77,7 +77,10 @@ class Construct:
|
|||
# For devices that follow Juniper's AS_PATH regex standards,
|
||||
# filter out Cisco-style special characters.
|
||||
|
||||
if self.device.nos in TARGET_JUNIPER_ASPATH:
|
||||
if (
|
||||
self.device.nos in TARGET_JUNIPER_ASPATH
|
||||
and self.query_data.query_type in ("bgp_aspath",)
|
||||
):
|
||||
query = str(self.query_data.query_target)
|
||||
asns = re.findall(r"\d+", query)
|
||||
if bool(re.match(r"^\_", query)):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue