Posted on June 12, 2020 1:43 pm
 |  Asked by Rakesh kulkarni
 |  530 views
RESOLVED
0
0
Print Friendly, PDF & Email

Hi,

Is it possible to create IP ACL rules using the Netconf protocol? if yes shall I get some examples?

0
Posted by Himanshu Singh
Answered on September 10, 2020 3:01 pm

Hello Rakesh,

You can refer to the attached file (acl-example.txt) which uses ncclient (a NETCONF client implementation in Python) to create an access list similar to the below example:

 

ip access-list IPv4_ACL_NETCONF
10 permit 4 host 10.10.10.2 any ttl eq 5

 

Also please refer to our EOS central articles on Netconf

https://eos.arista.com/eos-4-22-0f/openconfig-configuration-guide/

https://eos.arista.com/ncclient-example-with-eos/

 

more ncclient examples: https://github.com/arista-netdevops-community/arista_eos_automation_with_ncclient

Attachments:

Post your Answer

You must be logged in to post an answer.