02-18-2022 12:36 PM
I'm trying to write a policy that checks the interfaces and if an ACL is applied to that interface, return the interface name, the ACL that is applied, and show ip access-list. I thought I had it setup correctly, but my job is just showing "success." So I'm not sure where I'm going wrong. I'm new to prime so I'm learning as I go.
So say config looks like this:
interface GigabitEthernet1/1
ip access-group 75 in
It would return saying int Gi1/1 has access-group 75 in
Here is show ip access-lists 75
This is condition 2:
This is condition 3:
02-18-2022 08:52 PM
Fix cli should fix the issue right ? if the ACL not exits ? why we configuring this as show commands ?
Click on the success it show you what action it took against device :
check this video step by step :
02-19-2022 05:48 AM
because I'm trying to see what interfaces have an acl applied to them and then list the interface and the acl.
So say config looks like this:
interface GigabitEthernet1/1
ip access-group 75 in
The policy would return saying int Gi1/1 has access-group 75 in
Here is show ip access-lists 75
02-19-2022 07:04 AM
as i understand your requirement to check the interface do have ACL ignore it, if not add ACL is this correct.
as i understand fix were you looking to change the config. or am i misunderstanding your requirement?
02-19-2022 07:27 AM
No sir. I want to check the interface to see if it has an ACL. If the interface does have an ACL, I want to list what ACL it has.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide