From 4e2b169f0ea3528ab6c537a5510f55610572f2b0 Mon Sep 17 00:00:00 2001 From: dark1587 Date: Sun, 23 Aug 2020 13:54:35 +0100 Subject: [PATCH] Checking for SRX headers to get better check responses. --- capirca/lib/aclcheck.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/capirca/lib/aclcheck.py b/capirca/lib/aclcheck.py index 6ad67f75..3181ae22 100644 --- a/capirca/lib/aclcheck.py +++ b/capirca/lib/aclcheck.py @@ -118,7 +118,12 @@ def __init__(self, self.matches = [] self.exact_matches = [] for header, terms in self.pol_obj.filters: - filtername = header.target[0].options[0] + check_target = str(header.target[0]) + if check_target == 'srx': + delim = " " + filtername = delim.join(header.target[0].options) + else: + filtername = header.target[0].options[0] for term in terms: possible = [] logging.debug('checking term: %s', term.name)