Configuration Examples for NETCONF and RESTCONF Service-Level ACLs Example:
Configuring an ACL for a NETCONF Session Device# enable Device# configure terminal Device(config)# ip access-list standard acl1_permit Device(config-std-nacl)# permit 192.168.255.0 0.0.0.255 Device(config-std-nacl)# deny any Device(config-std-nacl)# exit Device(config)# netconf-yang ssh ipv4 access-list name acl1_permit Device(config)# end Model-Driven Programmability Configuration Examples for NETCONF and RESTCONF Service-Level ACLs Command or Action Purpose Device(config)# ip access-list standard acl1 permit _ Device(config)# ipv6 access-list ipv6-acl1 permit _ Step 4 permit {protocol-number | ipv6-source-address | ipv6-source-prefix | protocol}any Example:
Device(config-ipv6-acl)# permit ipv6 2001:db8::1/32 any Sets conditions in an IPv6 access list that will permit packets. Step 5 deny {protocol-number | ipv6-source-address | ipv6-source-prefix | protocol}any any Example: Device(config-ipv6-acl)# deny ipv6 any any Sets conditions in an IPv6 access list that will deny packets. Step 6 exit Example: Device(config-ipv6-acl)# exit Exits IPv6 access list configuration mode and returns to global configuration mode. Step 7 restconf {ipv4 | ipv6 }access-list name access-list-name Example: Device(config)# restconf ipv6 access-list name ipv6-acl1 permit _ Configures an ACL for the RESTCONF session. Step 8 end Example:
Device(config)# end Exits global configuration mode and returns to privileged EXEC mode. Programmability Configuration Guide, Cisco IOS XE 17.16.x 244