Table of Contents

Class NetworkingDevicePort

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a single port on a networking device.

public class NetworkingDevicePort : GlobalSerializableClassicBase, IComparable<NetworkingDevicePort>
Inheritance
NetworkingDevicePort
Implements

Constructors

NetworkingDevicePort()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.NetworkingDevicePort class.

public NetworkingDevicePort()

Properties

AdvancedSettings

Gets or sets the advanced settings for a networking device port.

public NetworkingDevicePortAdvancedSettings AdvancedSettings { get; set; }

Property Value

NetworkingDevicePortAdvancedSettings

AutoNegotiate

Gets or sets whether this port is configured for autonegotiation.

public NetworkingDevicePortAutoNegotiateMode AutoNegotiate { get; set; }

Property Value

NetworkingDevicePortAutoNegotiateMode

Description

Gets or sets the description of this networking device port - for example "HP ProCurve Switch software loopback interface".

public string Description { get; set; }

Property Value

string

Remarks

If the description returned from the port is an integer value - for example "1" a more descriptive "Port 1" is returned.

Enabled

Gets or sets whether the interface is currently enabled.

public BooleanOption Enabled { get; set; }

Property Value

BooleanOption

FlowControl

Gets or sets whether the port has flow control configured.

public NetworkingDevicePortFlowControlSetting FlowControl { get; set; }

Property Value

NetworkingDevicePortFlowControlSetting

IPAddresses

Gets or sets the IP Address(es) assigned to this interface.

public SerializableIPAddressCollection IPAddresses { get; set; }

Property Value

SerializableIPAddressCollection

IPAddressesString

Gets the IP addresses assigned to this interface as a human readable string. This is used by the data comparer.

public string IPAddressesString { get; }

Property Value

string

Index

Gets or sets the index of this networking device port.

public int Index { get; set; }

Property Value

int

InterfaceType

Gets or sets the interface type.

public NetworkingDevicePortInterfaceType InterfaceType { get; set; }

Property Value

NetworkingDevicePortInterfaceType

InterfaceTypeString

Gets the interface type.

public string InterfaceTypeString { get; set; }

Property Value

string

MacAddress

Gets or sets the physical MAC address of this interface.

public string MacAddress { get; set; }

Property Value

string

Mtu

Gets or sets the MTU (maximum transmission unit) for this interface.

public int Mtu { get; set; }

Property Value

int

Speed

Gets or sets the speed of this interface in bits per second.

public long Speed { get; set; }

Property Value

long

SpeedString

Gets the speed of this interface as a human readable string.

public string SpeedString { get; set; }

Property Value

string

Methods

CompareTo(NetworkingDevicePort)

Compares two CENTREL.XIA.Configuration.Types.NetworkingDevicePort objects to allow sorting by port index.

public int CompareTo(NetworkingDevicePort other)

Parameters

other NetworkingDevicePort

The CENTREL.XIA.Configuration.Types.NetworkingDevicePort to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.NetworkingDevicePort objects.

ToString()

Returns the description of this networking device port.

public override string ToString()

Returns

string

The description of this networking device port.