Class Layer3Interface
In: lib/antfarm/layer3_interface.rb
Parent: ActiveRecord::Base

Layer3Interface class that wraps the layer3_interfaces table in the ANTFARM database.

  • has many traffic entries (defined as outbound_traffic)
  • has many traffic entries (defined as inbound_traffic)
  • has one IP interface
  • belongs to a layer 3 network
  • belongs to a layer 2 interface

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

The node and layer2_interface_media_type attributes are only applicable when an existing layer 2 interface is not specified.

The layer3_network_protocol attribute is only applicable when an existing layer 3 network is not specified.

Methods

Attributes

layer2_interface_media_type  [W]  Media type of the layer 2 interface automatically creted for this layer 3 interface.
layer3_network_protocol  [W]  Protocol of the layer 3 network automatically created for this layer 3 interface.
node  [W]  Existing node the layer 2 interface automatically created for this layer 3 interface should belong to.
node_device_type  [W]  Device type of the node automatically created by the layer 2 interface created for this layer 3 interface.
node_name  [W]  Name of the node automatically created by the layer 2 interface created for this layer 3 interface.

Public Class methods

Find and return the layer 3 interface with the given IP address.

[Validate]