Forum Discussion
Get route-advertisement state for a VIP
- Apr 02, 2015
Although it doesn't simply provide a true/false response, you can at least parse fewer lines with:
(tmos) list ltm virtual-address 1.1.1.1 route-advertisement ltm virtual-address 1.1.1.1 { route-advertisement enabled }
Just tried also with:
set obs [tmsh::get_config /ltm virtual-address ip-address]
which should return an object in the format that the scripting engine expects..but ran into the same error (probably I'm not getting the syntax right) when trying to do get_field_value/get_field_name on it.
If I print just $obs I get:
ltm virtual-address ip-address {
address ip-address
mask 255.255.255.255
route-advertisement enabled
traffic-group Redundant
unit 2
}
But so far it seems I am missing an important bit or not seeing it in front of my eyes..how to access the contents.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com