Skip to content

InterfaceOptions

Static class in Oadm.Sdk.Network · Oadm.Sdk.dll

Builds the entries of an interface select.

public static class InterfaceOptions
static InterfaceOption All { get; }

The first entry of every select: every address.

static InterfaceOption From(ServerNetworkInterface nic, string? addressText = null)

The option of an interface; addressText defaults to its primary address.

static bool IsAll(string? id)

The id means every address (null, empty or InterfaceOptions.AllId).

static string Label(ServerNetworkInterface nic, string addressText)

“Ethernet - 10.0.0.17 (Intel I219)”; the description is left out when it equals the name.

const string AllId = "all"

The id of the choice that listens on every address.

const string AllLabel = "All interfaces"

The text of that choice.