28-Jan-2021 20:10
Hi
Can we disable specific interface via iControl?
ie when F5 failover. (status change from Active to standby , ) I want monitoring tool to send icontrol command to disable some interface on F5 standby unit. we have problem with BGP peering which router still peer with standby unit so I need to disable that Interface.
Kridsana
29-Jan-2021 02:47
Hi
Yes, details for this can be found here -> https://clouddocs.f5.com/api/icontrol-rest/APIRef_tm_net_interface.html
So to enable 1.1 you would send something like
curl -k -u admin:<password> https:/-X PATCH -H "Content-Type: application/json" https://<bigip>/mgmt/tm/net/interface/1.1 -d '{ "enabled":true }'
...and to disable 1.1...
curl -k -u admin:<password> -X PATCH -H "Content-Type: application/json" https://<bigip>/mgmt/tm/net/interface/1.1 -d '{ "disabled":true }'