diff --git a/v2/types/vnet/types.go b/v2/types/vnet/types.go index c1bb49a..7e787a1 100644 --- a/v2/types/vnet/types.go +++ b/v2/types/vnet/types.go @@ -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 { @@ -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"` @@ -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 { @@ -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 { @@ -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 {