vincentbernat/wiremaps — pull request #13 by brutester (2012-05-11 14:29:11+00:00)
Title: Add support for Juniper devices. Tested with EX4200 and SRX240

Code is working, but not written pretty (my second python script).

class JuniperPortCollector is same as PortCollector with only two differences:
1. interface description is acquired with ifAlias (ifDescr by default)
2. permit aggregated ethernet interfaces - ieee8023adLag(161)
3. permit virtual interfaces - propVirtual(53) - we need this because Juniper EX switches use "unit 0" (sub-interface in Cisco) for ethernet switching. All VLAN/MAC information is associated with it.

A nice update will be to associate "ge-0/0/1.0" with "ge-0/0/1" and threat them as one.

JuniperVlanCollector and JuniperFdbCollector both walk over dot1dBasePortIfIndex. This causes SNMP to walk over same tree for a second time. Some caching will solve it.