RESTCONF
Overview
EOS provides support for RESTCONF and the necessary transport services to support it.
The RESTCONF server is in the EOS device.
RESTCONF configuration on EOS
Certificate
Certificate-based authentication is required for RESTCONF to operate. You should follow the instructions in the Certificate Authentication section in order to generate and install a certificate to support RESTCONF in your environment. Alternately, a self-signed certificate may be generated on the switch and certificate validation can be handled appropriately by remote RESTCONF clients.
The following Cli command generates a self-signed cert:
security pki certificate generate self-signed restconf.crt key restconf.key generate rsa 2048 parameters common-name restconf
Create ssl profile:
RESTCONF API
Configure RESTCONF:
Default VRF:
Non-default VRF
Changing the port:
Apply ACL
Note The ACL should be a standard ACL allowing hosts or subnets.
Control-plane ACL
The default RESTCONF port on Arista devices is TCP 6020.
We need to change the default control-plane ACL on EOS in order to allow TCP 6020 (or to allow the configured RESTCONF port).
Please refer to this link