Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions v2/types/vnet/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type VNet struct {
PortTags []VNetPortTag `json:"portTags"`
Vpc IDName `json:"vpc"`
DhcpRelay *VNetDhcpRelay `json:"dhcpRelay"`
Dhcpv6Relay *VNetDhcpv6Relay `json:"dhcpv6Relay"`
}

type IDName struct {
Expand All @@ -64,6 +65,16 @@ type VNetDhcpRelay struct {
SecondaryAddr *string `json:"secondaryAddr"`
}

/*
VNetDhcpv6Relay configures DHCPv6 Relay for a V-Net.
*/
type VNetDhcpv6Relay struct {
Enabled bool `json:"enabled"`
Vpc *IDName `json:"vpc"`
PrimaryAddr *string `json:"primaryAddr"`
SecondaryAddr *string `json:"secondaryAddr"`
}

type VNetGateway struct {
DHCP VNetGatewayDHCP `json:"dhcp"`
DHCPEnabled bool `json:"dhcpEnabled"`
Expand Down Expand Up @@ -119,6 +130,7 @@ type VNetDetailed struct {
PortTags []VNetPortTag `json:"portTags"`
Vpc IDName `json:"vpc"`
DhcpRelay *VNetDhcpRelay `json:"dhcpRelay"`
Dhcpv6Relay *VNetDhcpv6Relay `json:"dhcpv6Relay"`
}

type VNetDetailedGateway struct {
Expand Down Expand Up @@ -240,6 +252,7 @@ type VNetAdd struct {
VxlanID int `json:"vxlanID"`
Vpc *IDName `json:"vpc,omitempty"`
DhcpRelay *VNetDhcpRelay `json:"dhcpRelay,omitempty"`
Dhcpv6Relay *VNetDhcpv6Relay `json:"dhcpv6Relay,omitempty"`
}

type VNetAddGateway struct {
Expand Down Expand Up @@ -290,6 +303,7 @@ type VNetUpdate struct {
PortTags []VNetPortTag `json:"portTags"`
VxlanID int `json:"vxlanID"`
DhcpRelay *VNetDhcpRelay `json:"dhcpRelay,omitempty"`
Dhcpv6Relay *VNetDhcpv6Relay `json:"dhcpv6Relay,omitempty"`
}

type VNetUpdateGateway struct {
Expand Down