获取端口下的地址 描述 vlan arp mac等信息标签:vlan,端口,Value,port,mac,template,ntc,type,PORT From: https://www.cnblogs.com/yc-tec/p/17867402.html
Value PORT (\S+)
Value IP (\S+)
Value mask (\S+)
Value mac (\S+)
Value vlan (.*)
Value type (\S+)
Value descr (.*)
Start
^.*MAC\s+Address\s+VLAN/VSI/BD\s+Learned-From\s+Type -> mac
^.*VLAN/CEVLAN -> arp
^aaa -> others
mac
^${mac}\s+${vlan}/-/-\s+${PORT}\s+dynamic -> Record
^<CQBOSS -> Start
arp
^${IP}\s+${mac}\s+\S+\s+\S+\s+${PORT} -> Record
^<CQBOSS -> Start
others
^interface\s+${PORT}
^\s+description\s+${descr}$$
^\s+ip\s+address\s+${IP}\s+${mask}$$
^\s+port\s+link-type\s+${type}
^\s+port\s+default\s+vlan\s+${vlan}
^\s+port\s+trunk\s+allow-pass\s+vlan\s+${vlan}
^# -> Record
^<CQBOSS -> Start