Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
See matching posts in thread - SSG-550M Random ARP Drops Log - packet dropped p...
Interface VLAN ID VM MAC Virtual Machine Name ge-2/0/35.0 105 00:50:56:a8:1a:e9 windows7.mydomain.local ge-2/0/35.0 201 00:50:56:a8:85:41 w2k10-1.mydomain.local ge-2/0/35.0 201 00:50:56:a8:d4:29 w2k10-2.mydomain.local ge-2/0/35.0 201 00:50:56:a8:52:54 w2k10-3.mydomain.local ge-2/0/35.0 107 00:50:56:a8:b1:f2 w2k10-3.mydomain.local ge-2/0/35.0 107 00:50:56:a8:0c:bb MAAS.mydomain.local ge-2/0/35.0 105 00:50:56:a8:24:d6 JunosSpace.mydomain.local ge-2/0/35.0 107 00:50:56:a8:c8:91 OpenContrail1.mydomain.local ge-2/0/35.0 105 00:50:56:a8:a6:13 OpenContrail2.mydomain.local ge-2/0/35.0 201 00:50:56:11:11:11 OpenContrail3.mydomain.local ge-2/0/35.0 201 00:50:56:a8:f6:3c MySQL-1.mydomain.local ubuntu:systest$ #Python #How-To #vSwitches #pyez #vmware #ScriptingHow-To #vCenter
Below is a snippet of the rendered output from trunks.jinja : interfaces ( xe-0/0/4 ( description redTrunk unit 0 ( family ethernet-switching ( interface-mode trunk vlan ( members [ vn201 vn200 ] ) ) ) ) ) irb ( unit 201 ( family inet ( mtu 9000; address 1.1.201.1/24; ) ) unit 200 ( family inet ( mtu 9000; address 1.1.200.1/24; ) ) ) ) vlans ( vn201 ( vlan-id 201; description going somewhere-201; l3-interface irb.201; ) vn200 ( vlan-id 200; description going nowhere-200; l3-interface irb.200; ) ) trunks.jinja Config Template # Jinja2 in Purple & plain text in black (% set Rendered VNs = () %) # creating a place to store the VLAN and IRB details as we iterate through TrunkVars (% for ps tag in property sets.TrunkVars %) # iterate through TrunkVars and pull out the high-level key (% for interface name, iface in interfaces.iteritems() %) # iterate through the interfaces in the Blueprint (% if ((iface.link tags) and (ps tag in iface.link tags)) %) # check to see if there is a tag on the interface AND there is a match between the tag assigned to the link and the key in the TrunkVars Property Set dictionary interfaces ( # if we get here, a match has been found ((interface name)) ( # print the interface name found in the Blueprint interfaces description (( ps tag )) # add an optional description