Forum Discussion
mihai_178850
Nimbostratus
Apr 02, 2015Get route-advertisement state for a VIP
Hi guys,
I'm stumbling a bit on something that seems to be quite easy to find in the docs of iControl but not for iCall...
I have a TCL array of VIPs (name or IPs..I can do both) that I selected...
- 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 }
amolari
Cirrostratus
Apr 02, 2015Hi Mihai
you have to get_config with all-properties (otherwise no route-advertisement object) and then iterate
set vipaddresses [tmsh::get_config /ltm virtual-address all-properties]
foreach virt $vipaddresses {
if { [tmsh::get_name $virt] eq $vaddr } {
puts "virtual=$virt"
set routeadv [tmsh::get_field_value $virt route-advertisement]
puts "route adv status=$routeadv"
}
}
would output
virtual=ltm virtual-address 172.31.xx.xxx {
address 172.31.xx.xxx
app-service none
arp enabled
auto-delete true
connection-limit 0
description none
enabled yes
floating enabled
icmp-echo enabled
inherited-traffic-group false
mask 255.255.255.255
metadata none
partition Common
route-advertisement enabled
server-scope any
traffic-group traffic-group-1
unit 1
}
route adv status=enabled
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects