Adding New Controller
ONES Agent configuration file allows user to add new collector(controller) after the agent installation if required
Overview
Steps to add new Controller-IP
admin@Spine-2:~$ cd /etc/sonic/ admin@Spine-2:/etc/sonic$admin@Spine-2:/etc/sonic$ sudo vi agent.conf # Configuration file for agent gnmi # Any edits require restart of the agent # Mode - can be Tls/NoTls mode = NoTls #restrict_collector_ip = Yes/No #Setting this to yes means that only the IP address mentioned under collectorip #will be allowed to connect to the agent. No sets off this behavior restrict_collector_ip = No #layer of the switch Eg - Superspine/ Leaf/ Spine/ ToR layer = Spine #region of the switch Eg - Denver region = Sj #ip of the switch Eg - 10.4.4.33 agentip = 10.20.2.12 #ip of the collector Eg - 10.1.1.10 collectorip = 10.20.0.16,10.20.0.14 #azid of the switch Eg - 1 azid = 1 #brickid of the switch Eg - 1 brickid = 1 #rackid of the switch Eg - 1admin@Spine-2:/etc/sonic$ docker restart ones-agent