ltm rule command LINK vlan id
iRule(1) BIG-IP TMSH Manual iRule(1)
LINK::vlan_id
Returns the VLAN tag of the packet.
SYNOPSIS
LINK::vlan_id
DESCRIPTION
Returns the VLAN tag of the packet. This command is equivalent to the
BIG-IP 4.X variable vlan_id.
Syntax
LINK::vlan_id
* Returns the VLAN tag of the packet.
RETURN VALUE
LINK::vlan_id
* Returns the VLAN tag of the packet.
VALID DURING
EXAMPLES
# log requests
when CLIENT_ACCEPTED {
set info "client { [IP::client_addr]:[TCP::client_port] -> [IP::local_addr]:[TCP::local_port] }"
append info " ethernet "
append info " { [string range [LINK::lasthop] 0 16] -> [string range [LINK::nexthop] 0 16] "
append info "tag [LINK::vlan_id] qos [LINK::qos] }"
log local0. $info
}
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.0 --First introduced the command.
BIG-IP 2017-01-31 iRule(1)