---
name: "SNMP::Info::Layer2::Foundry"
section: "3pm"
platform: "linux"
package: "libsnmp-info-perl"
version: "2.06-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SNMP::Info::Layer2::Foundry"
---

# SNMP::Info::Layer2::Foundry(3pm)

SNMP Interface to Foundry FastIron Network Devices

## NAME

SNMP::Info::Layer2::Foundry - SNMP Interface to Foundry FastIron Network Devices

## AUTHOR

Max Baker

## SYNOPSIS

This module is Deprecated.  Please use Layer3::Foundry instead.

```
 # Let SNMP::Info determine the correct subclass for you.
 my $foundry = new SNMP::Info(
                          AutoSpecify => 1,
                          Debug       => 1,
                          DestHost    => 'myswitch',
                          Community   => 'public',
                          Version     => 1
                        )
    or die "Can't connect to DestHost.\n";
 my $class = $foundry->class();
 print "SNMP::Info determined this device to fall under subclass : $class\n";
```

## DESCRIPTION

This module is Deprecated.  Please use Layer3::Foundry instead.

This module provides support for Foundry EdgeIron Switches

### Inherited Classes

- SNMP::Info::Layer2

  - SNMP::Info::FDP

  ### Required MIBs

- *FOUNDRY-SN-ROOT-MIB*

  - Inherited Classes' MIBs

  See classes listed above for their required MIBs.

## GLOBALS

These are methods that return scalar value from SNMP

- $foundry-\>*model()*

  Returns model type.

- $foundry-\>*vendor()*

  Returns 'foundry'

- $foundry-\>*os()*

  Returns 'foundry'

- $foundry-\>*os\_ver()*

  Returns the software version

- $foundry-\>*serial()*

  Returns the serial number

### Globals imported from SNMP::Info::Layer2

See documentation in "GLOBALS" in SNMP::Info::Layer2 for details.

### Globals imported from SNMP::Info::FDP

See documentation in "GLOBALS" in SNMP::Info::FDP for details.

## TABLE METHODS

These are methods that return tables of information in the form of a reference to a hash.

### Overrides

- $foundry-\>*interfaces()*

  Returns reference to hash of interface names to iids.

- $foundry-\>*i\_ignore()*

  Returns reference to hash of interfaces to be ignored.

  Ignores interfaces with descriptions of  tunnel,loopback,null

- $foundry-\>*i\_duplex()*

  Returns reference to hash of interface link duplex status.

  Crosses `$foundry`-\>*sw\_duplex()* with `$foundry`-\>*sw\_index()*

- $foundry-\>*i\_duplex\_admin()*

  Returns reference to hash of interface administrative duplex status.

- $foundry-\>*stp\_p\_state()*

  "The port's current state as defined by application of the Spanning Tree Protocol.

  Skipped if device is an EdgeIron 24G due to reports of hangs.

  (`"dot1dStpPortState"`)

- $foundry-\>*i\_vlan()*

  Returns a mapping between `"ifIndex"` and the PVID or default VLAN.

### Table Methods imported from SNMP::Info::Layer2

See documentation in "TABLE METHODS" in SNMP::Info::Layer2 for details.

### Table Methods imported from SNMP::Info::FDP

See documentation in "TABLE METHODS" in SNMP::Info::FDP for details.
