0.9.1

  • iApps Home
  • iControlREST Home
  • iControl (SOAP) Home
  • iRules Home
  • iRulesLX Home
  • TMSH Home

  • Clouddocs > > LINK::vlan_id

Version notice:

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

LINK::vlan_id¶

  • Returns the VLAN tag of the packet.

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
}

Related Information¶

Valid Events:


Introduced: BIGIP-9.0.0

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.