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

Option for clearing ACLs. #207

Open
rickdonato opened this issue Jan 26, 2023 · 3 comments
Open

Option for clearing ACLs. #207

rickdonato opened this issue Jan 26, 2023 · 3 comments
Labels
good first issue Good for newcomers

Comments

@rickdonato
Copy link

rickdonato commented Jan 26, 2023

Is there a way to not add the clear interface lines i.e

clear configure access-list acl-outside
access-list acl-outside remark $Id:$
access-list acl-outside remark $Date:$
access-list acl-outside remark $Revision:$


access-list acl-outside remark client-to-web-https
access-list acl-outside extended permit tcp any any eq https
clear configure access-list acl-dmz
access-list acl-dmz remark $Id:$
access-list acl-dmz remark $Date:$
access-list acl-dmz remark $Revision:$

When adding the config to a file for a config merge or replace it would be nice to not have this included. Thanks,

@fischa
Copy link
Collaborator

fischa commented Jan 26, 2023

You probably could add it as verbatim statement in a term but that would be after the repository tags. Would that help too? I have not tested it.

term bla {
  verbatim:: "clear configure access-list acl-dmz"
}

@ankenyr
Copy link
Collaborator

ankenyr commented Feb 1, 2023

Currently there is not. This could be an option for the Cisco ASA platform. Would you like to take a stab at implementing it?

@ankenyr ankenyr added the good first issue Good for newcomers label Feb 1, 2023
@rickdonato
Copy link
Author

@fischa id say a bool parameter would be good on whether to get the clear statements added or not. As by adding a verbatim in the client would need to know what the statements were.

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

No branches or pull requests

3 participants