Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACL list processing problem #60

Closed
llastowski opened this issue Feb 3, 2023 · 4 comments
Closed

ACL list processing problem #60

llastowski opened this issue Feb 3, 2023 · 4 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@llastowski
Copy link

When more than 1 acl exists in the named.conf file, only the last one gets processed - example data:
acl "a3internet" { 10.1.12.25; 10.1.12.26; };
acl "my" { 127.0.0.1; };

the result is that only the last ACL is included in the output json file

@egberts
Copy link
Owner

egberts commented Feb 3, 2023

Uh?

What does my unit and integration test say?

I have been passing the ones that I've (so thought) elaborated, but do recognize that I may not have accommodated all permutations and combinations.

tests/test_clause_acl.py

Will create another test using your example... Stay tuned.

@egberts
Copy link
Owner

egberts commented Feb 3, 2023

Created more unit tests:

  1. extended ACL test (test_clause_acl.py) and
  2. a brand-new test (to go into test_clause.py).
    def test_isc_clause_issue_50_passing(self):

And I am now showing that my code is failing (in the brand-new test).

Quick eyeball of the situation shows that this is my PyParsing error (probably missing a critical * symbol in the .setName('acl*') somewhere in isc_clause or isc_clause_acl to preserve the indexing number (and thusly capture the 2nd and nth rows of ACL data).

@egberts egberts pinned this issue Feb 3, 2023
@egberts egberts self-assigned this Feb 3, 2023
@egberts egberts added bug Something isn't working good first issue Good for newcomers labels Feb 3, 2023
@egberts
Copy link
Owner

egberts commented Feb 3, 2023

@egberts egberts closed this as completed Feb 3, 2023
@egberts
Copy link
Owner

egberts commented Feb 3, 2023

All tests except for issue #61 under tests/* have passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants