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 }
One last question and a pertinent one for Shaggy :)
set entity [tmsh::list /ltm virtual-address "My VIP here"] puts $entity set ohaoha [tmsh::get_field_value $entity mask] puts "nothing==$ohaoha" }
The entity works and if I do puts it shows: ltm virtual-address my-IP { address my-IP mask 255.255.255.255 route-advertisement enabled traffic-group Redundant unit 2 }
the ohaoha testing part did not work....tested with mask/route-advertisement/etc Anything I might be missing out in the syntax ?
The error given is: can't eval proc: "script::run" unexpected TCL object type while executing "tmsh::get_field_value $entity mask" (procedure "script::run" line 22) invoked from within
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