Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Disable specific interface via iControl?

kridsana
Cirrocumulus
Cirrocumulus

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

1 REPLY 1

iaine
MVP
MVP

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 }'