LINK::vlan_id¶
Description¶
Returns the VLAN tag of the packet. This command is equivalent to the
BIG-IP 4.X variable vlan_id.
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
}
rule rule_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
}