Class Layer2Interface
In: lib/antfarm/layer2_interface.rb
Parent: ActiveRecord::Base

Layer2Interface class that wraps the layer2_interfaces table in the ANTFARM database.

  • has many layer 3 interfaces
  • has one ethernet interface
  • belongs to a node

The node_name and node_device_type attributes are only applicable when an existing node is not specified.

Methods

Attributes

node_device_type  [W]  Device type of the node automatically created for this layer 2 interface.
node_name  [W]  Name of the node automatically created for this layer 2 interface.

Public Class methods

Find and return the layer 2 interface with the given ethernet address.

[Validate]