Skip to content

Commit

Permalink
Update auto generated go snappi
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 22, 2024
1 parent a5ea2cd commit 5b34982
Show file tree
Hide file tree
Showing 21 changed files with 33,532 additions and 32,263 deletions.
14 changes: 7 additions & 7 deletions gosnappi/bgp_attributes_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ type BgpAttributesCommunity interface {
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoExport to set choice.
NoExport()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity.
// BgpAttributesCustomCommunity is user defined COMMUNITY attribute containing 2 byte AS and custom 2 byte value defined by the administrator of the domain.
CustomCommunity() BgpAttributesCustomCommunity
Expand Down Expand Up @@ -327,6 +327,11 @@ func (obj *bgpAttributesCommunity) NoAdvertised() {
obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED)
}

// getter for NoExportSubconfed to set choice
func (obj *bgpAttributesCommunity) NoExportSubconfed() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED)
}

// getter for NoExport to set choice
func (obj *bgpAttributesCommunity) NoExport() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT)
Expand All @@ -342,11 +347,6 @@ func (obj *bgpAttributesCommunity) NoLlgr() {
obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR)
}

// getter for NoExportSubconfed to set choice
func (obj *bgpAttributesCommunity) NoExportSubconfed() {
obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED)
}

func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity {
intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)]
if !ok {
Expand Down
34 changes: 17 additions & 17 deletions gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,16 +272,16 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface {
setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy
// HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy
HasChoice() bool
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for PushIpv6 to set choice.
PushIpv6()
// getter for Unknown to set choice.
Unknown()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for Unknown to set choice.
Unknown()
}

type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string
Expand All @@ -305,29 +305,29 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Choice() BgpAttributesSrPoli
return BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for PushIpv4AndIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6)
// getter for PushIpv4 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4)
}

// getter for PushIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6)
}

// getter for Unknown to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN)
}

// getter for DonotPush to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH)
}

// getter for PushIpv4 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4)
// getter for PushIpv4AndIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6)
}

// getter for Unknown to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN)
}

// The Explicit NULL Label policy.
Expand Down
26 changes: 13 additions & 13 deletions gosnappi/device_dhcpv6_client_options_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type deviceDhcpv6ClientOptionsRequest struct {
marshaller marshalDeviceDhcpv6ClientOptionsRequest
unMarshaller unMarshalDeviceDhcpv6ClientOptionsRequest
requestHolder DeviceDhcpv6ClientOptionsRequestDhcpv6ClientOptionsOptionsRequestIter
associatedDhcpMessagesHolder Dhcpv6ClientOptionsOptionsRequestIncludedMessages
associatedDhcpMessagesHolder Dhcpv6ClientOptionsIncludedMessages
}

func NewDeviceDhcpv6ClientOptionsRequest() DeviceDhcpv6ClientOptionsRequest {
Expand Down Expand Up @@ -276,12 +276,12 @@ type DeviceDhcpv6ClientOptionsRequest interface {
setDefault()
// Request returns DeviceDhcpv6ClientOptionsRequestDhcpv6ClientOptionsOptionsRequestIterIter, set in DeviceDhcpv6ClientOptionsRequest
Request() DeviceDhcpv6ClientOptionsRequestDhcpv6ClientOptionsOptionsRequestIter
// AssociatedDhcpMessages returns Dhcpv6ClientOptionsOptionsRequestIncludedMessages, set in DeviceDhcpv6ClientOptionsRequest.
// Dhcpv6ClientOptionsOptionsRequestIncludedMessages is the dhcpv6 client messages where the option will be included. If all is selected the selected option will be added in the all the Dhcpv6 client messages, else based on the selection in particular Dhcpv6 client messages the option will be included.
AssociatedDhcpMessages() Dhcpv6ClientOptionsOptionsRequestIncludedMessages
// SetAssociatedDhcpMessages assigns Dhcpv6ClientOptionsOptionsRequestIncludedMessages provided by user to DeviceDhcpv6ClientOptionsRequest.
// Dhcpv6ClientOptionsOptionsRequestIncludedMessages is the dhcpv6 client messages where the option will be included. If all is selected the selected option will be added in the all the Dhcpv6 client messages, else based on the selection in particular Dhcpv6 client messages the option will be included.
SetAssociatedDhcpMessages(value Dhcpv6ClientOptionsOptionsRequestIncludedMessages) DeviceDhcpv6ClientOptionsRequest
// AssociatedDhcpMessages returns Dhcpv6ClientOptionsIncludedMessages, set in DeviceDhcpv6ClientOptionsRequest.
// Dhcpv6ClientOptionsIncludedMessages is the dhcpv6 client messages where the option will be included. If all is selected the selected option will be added in the all the Dhcpv6 client messages, else based on the selection in particular Dhcpv6 client messages the option will be included.
AssociatedDhcpMessages() Dhcpv6ClientOptionsIncludedMessages
// SetAssociatedDhcpMessages assigns Dhcpv6ClientOptionsIncludedMessages provided by user to DeviceDhcpv6ClientOptionsRequest.
// Dhcpv6ClientOptionsIncludedMessages is the dhcpv6 client messages where the option will be included. If all is selected the selected option will be added in the all the Dhcpv6 client messages, else based on the selection in particular Dhcpv6 client messages the option will be included.
SetAssociatedDhcpMessages(value Dhcpv6ClientOptionsIncludedMessages) DeviceDhcpv6ClientOptionsRequest
setNil()
}

Expand Down Expand Up @@ -373,20 +373,20 @@ func (obj *deviceDhcpv6ClientOptionsRequestDhcpv6ClientOptionsOptionsRequestIter
}

// The list of dhcpv6 client messages where this option is included.
// AssociatedDhcpMessages returns a Dhcpv6ClientOptionsOptionsRequestIncludedMessages
func (obj *deviceDhcpv6ClientOptionsRequest) AssociatedDhcpMessages() Dhcpv6ClientOptionsOptionsRequestIncludedMessages {
// AssociatedDhcpMessages returns a Dhcpv6ClientOptionsIncludedMessages
func (obj *deviceDhcpv6ClientOptionsRequest) AssociatedDhcpMessages() Dhcpv6ClientOptionsIncludedMessages {
if obj.obj.AssociatedDhcpMessages == nil {
obj.obj.AssociatedDhcpMessages = NewDhcpv6ClientOptionsOptionsRequestIncludedMessages().msg()
obj.obj.AssociatedDhcpMessages = NewDhcpv6ClientOptionsIncludedMessages().msg()
}
if obj.associatedDhcpMessagesHolder == nil {
obj.associatedDhcpMessagesHolder = &dhcpv6ClientOptionsOptionsRequestIncludedMessages{obj: obj.obj.AssociatedDhcpMessages}
obj.associatedDhcpMessagesHolder = &dhcpv6ClientOptionsIncludedMessages{obj: obj.obj.AssociatedDhcpMessages}
}
return obj.associatedDhcpMessagesHolder
}

// The list of dhcpv6 client messages where this option is included.
// SetAssociatedDhcpMessages sets the Dhcpv6ClientOptionsOptionsRequestIncludedMessages value in the DeviceDhcpv6ClientOptionsRequest object
func (obj *deviceDhcpv6ClientOptionsRequest) SetAssociatedDhcpMessages(value Dhcpv6ClientOptionsOptionsRequestIncludedMessages) DeviceDhcpv6ClientOptionsRequest {
// SetAssociatedDhcpMessages sets the Dhcpv6ClientOptionsIncludedMessages value in the DeviceDhcpv6ClientOptionsRequest object
func (obj *deviceDhcpv6ClientOptionsRequest) SetAssociatedDhcpMessages(value Dhcpv6ClientOptionsIncludedMessages) DeviceDhcpv6ClientOptionsRequest {

obj.associatedDhcpMessagesHolder = nil
obj.obj.AssociatedDhcpMessages = value.msg()
Expand Down
28 changes: 14 additions & 14 deletions gosnappi/dhcpv6_client_options_duid_uuid_variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,14 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface {
setChoice(value Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum) Dhcpv6ClientOptionsDuidUuidVariant
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVariant
HasChoice() bool
// getter for Ncs to set choice.
Ncs()
// getter for VarReserved to set choice.
VarReserved()
// getter for Dce to set choice.
Dce()
// getter for Guid to set choice.
Guid()
// getter for Ncs to set choice.
Ncs()
// getter for VarReserved to set choice.
VarReserved()
}

type Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum string
Expand All @@ -299,16 +299,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Choice() Dhcpv6ClientOptionsDuidU
return Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for Ncs to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS)
}

// getter for VarReserved to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED)
}

// getter for Dce to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE)
Expand All @@ -319,6 +309,16 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Guid() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.GUID)
}

// getter for Ncs to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS)
}

// getter for VarReserved to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED)
}

// The current variants are ncs, dce,microsoft guid and reserved.
// Choice returns a string
func (obj *dhcpv6ClientOptionsDuidUuidVariant) HasChoice() bool {
Expand Down
38 changes: 19 additions & 19 deletions gosnappi/dhcpv6_client_options_duid_uuid_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,16 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface {
setChoice(value Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum) Dhcpv6ClientOptionsDuidUuidVersion
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVersion
HasChoice() bool
// getter for V_2 to set choice.
V_2()
// getter for V_3 to set choice.
V_3()
// getter for V_1 to set choice.
V_1()
// getter for V_4 to set choice.
V_4()
// getter for V_5 to set choice.
V_5()
// getter for V_2 to set choice.
V_2()
// getter for V_1 to set choice.
V_1()
// getter for V_3 to set choice.
V_3()
}

type Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum string
Expand All @@ -303,29 +303,29 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU
return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for V_4 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4)
}

// getter for V_5 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5)
}

// getter for V_2 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2)
}

// getter for V_3 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3)
}

// getter for V_1 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1)
}

// getter for V_4 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4)
}

// getter for V_5 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_5() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_5)
// getter for V_3 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3)
}

// The version values are from 1 to 5 in the most significant 4 bits of the timestamp (bits 4 through 7 of the time_hi_and_version field).
Expand Down
34 changes: 17 additions & 17 deletions gosnappi/dhcpv6_client_options_message_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,16 +270,16 @@ type Dhcpv6ClientOptionsMessageType interface {
setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType
HasChoice() bool
// getter for Renew to set choice.
Renew()
// getter for Solicit to set choice.
Solicit()
// getter for InformRequest to set choice.
InformRequest()
// getter for Request to set choice.
Request()
// getter for Release to set choice.
Release()
// getter for InformRequest to set choice.
InformRequest()
// getter for Renew to set choice.
Renew()
// getter for Solicit to set choice.
Solicit()
// getter for Rebind to set choice.
Rebind()
}
Expand Down Expand Up @@ -307,14 +307,9 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy
return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for Renew to set choice
func (obj *dhcpv6ClientOptionsMessageType) Renew() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW)
}

// getter for Solicit to set choice
func (obj *dhcpv6ClientOptionsMessageType) Solicit() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT)
// getter for InformRequest to set choice
func (obj *dhcpv6ClientOptionsMessageType) InformRequest() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST)
}

// getter for Request to set choice
Expand All @@ -327,9 +322,14 @@ func (obj *dhcpv6ClientOptionsMessageType) Release() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE)
}

// getter for InformRequest to set choice
func (obj *dhcpv6ClientOptionsMessageType) InformRequest() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.INFORM_REQUEST)
// getter for Renew to set choice
func (obj *dhcpv6ClientOptionsMessageType) Renew() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW)
}

// getter for Solicit to set choice
func (obj *dhcpv6ClientOptionsMessageType) Solicit() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT)
}

// getter for Rebind to set choice
Expand Down
Loading

0 comments on commit 5b34982

Please sign in to comment.