Forum Discussion

kridsana's avatar
kridsana
Icon for Cirrocumulus rankCirrocumulus
Jan 29, 2021

Disable specific interface via iControl?

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

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