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-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:
Create ssl profile:
Changing the port:
Note The ACL should be a standard ACL allowing hosts or subnets.
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