Class GrpcNewInternalSwitchRequest
Adds an internal Hyper-V switch configured for the specified subnet and gateway as well as an optional NAT enabling external connectivity. This requ3est returns a GrpcBaseReply.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
[DataContract]
public class GrpcNewInternalSwitchRequest
Constructors
GrpcNewInternalSwitchRequest()
Default constructor.
Declaration
public GrpcNewInternalSwitchRequest()
GrpcNewInternalSwitchRequest(string, NetworkCidr, bool)
Adds an internal Hyper-V switch configured for the specified subnet and gateway as well as an optional NAT enabling external connectivity.
Declaration
public GrpcNewInternalSwitchRequest(string switchName, NetworkCidr subnet, bool addNat = false)
Parameters
Type | Name | Description |
---|---|---|
string | switchName | The new switch name. |
NetworkCidr | subnet | Specifies the internal subnet. |
bool | addNat | Optionally configure a NAT to support external routing. |
Properties
AddNat
Configure a NAT to support external routing.
Declaration
[DataMember(Order = 3)]
public bool AddNat { get; set; }
Property Value
Type | Description |
---|---|
bool |
Subnet
Specifies the internal subnet (as a NetworkCidr string.
Declaration
[DataMember(Order = 2)]
public string? Subnet { get; set; }
Property Value
Type | Description |
---|---|
string |
SwitchName
The new switch name.
Declaration
[DataMember(Order = 1)]
public string? SwitchName { get; set; }
Property Value
Type | Description |
---|---|
string |