Table of Contents

Interface IInterfaceSettings

Namespace
Skyline.DataMiner.Utils.Interfaces.Network
Assembly
Skyline.DataMiner.Utils.Interfaces.dll

Defines interface settings.

public interface IInterfaceSettings
Extension Methods

Methods

AddVlan(int)

Add a VLAN to the interface. Equivalent to 'switchport trunk allowed vlan add [VLAN ID]' command.

AddVlan(int[])

Add multiple VLANs to the interface. Equivalent to 'switchport trunk allowed vlan add [VLAN ID]' command.

Push()

Push multiple settings at once. No validation is done with this method to see if the set was successful.

RemoveVlan(int)

Remove a VLAN from the interface. Equivalent to 'switchport trunk allowed vlan remove [VLAN ID]' command.

RemoveVlan(int[])

Remove multiple VLANs from the interface. Equivalent to 'switchport trunk allowed vlan remove [VLAN ID]' command.

SetAdminState(bool)

Sets the administrator state of the interface. Equivalent to 'shutdown' and 'no shutdown' commands.

SetBridgeDomain(int)

Add this interface to a bridge domain.

SetEncapsulation(int)

Configure the encapsulation on the interface using IEEE 802.1Q (dot1q).

SetEncapsulation(int, EncapsulationFormats)

Configure encapsulation on the interface.

SetEncapsulation(int, int)

Configure the encapsulation on the interface using IEEE 802.1Q (dot1q).

SetEncapsulation(int, int, EncapsulationFormats)

Configure encapsulation on the interface for a specific VLAN.

SetPvid(int)

Set the PVID to the interface. All incoming untagged traffic will be tagged with this VLAN.

SetVlan(int[])

Set the VLANs to the interface. Equivalent to 'switchport trunk allowed vlan [VLAN ID]' command.

TryPush(TimeSpan)

Push multiple settings at once. This method will wait until the set is confirmed.