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 72c1ef3 commit ad96564
Show file tree
Hide file tree
Showing 11 changed files with 98 additions and 98 deletions.
14 changes: 7 additions & 7 deletions gosnappi/bgp_attributes_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ type BgpAttributesCommunity interface {
Choice() BgpAttributesCommunityChoiceEnum
// setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for NoExportSubconfed to set choice.
Expand All @@ -286,8 +288,6 @@ type BgpAttributesCommunity interface {
NoExport()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoLlgr to set choice.
NoLlgr()
// 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 @@ -322,6 +322,11 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum {
return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String())
}

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

// getter for NoAdvertised to set choice
func (obj *bgpAttributesCommunity) NoAdvertised() {
obj.setChoice(BgpAttributesCommunityChoice.NO_ADVERTISED)
Expand All @@ -342,11 +347,6 @@ func (obj *bgpAttributesCommunity) LlgrStale() {
obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE)
}

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

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

// 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 PushIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6)
}

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

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

// 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)
Expand Down
14 changes: 7 additions & 7 deletions gosnappi/dhcpv6_client_options_duid_uuid_variant.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface {
HasChoice() bool
// 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()
// getter for Guid to set choice.
Guid()
}

type Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum string
Expand All @@ -304,11 +304,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE)
}

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

// getter for Ncs to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS)
Expand All @@ -319,6 +314,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED)
}

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

// The current variants are ncs, dce,microsoft guid and reserved.
// Choice returns a string
func (obj *dhcpv6ClientOptionsDuidUuidVariant) HasChoice() bool {
Expand Down
28 changes: 14 additions & 14 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_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()
// getter for V_5 to set choice.
V_5()
}

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

// 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_2 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2)
}

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

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

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

// 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).
// Choice returns a string
func (obj *dhcpv6ClientOptionsDuidUuidVersion) HasChoice() bool {
Expand Down
14 changes: 7 additions & 7 deletions gosnappi/dhcpv6_client_options_message_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ type Dhcpv6ClientOptionsMessageType interface {
setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType
HasChoice() bool
// 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.
Expand Down Expand Up @@ -307,11 +307,6 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy
return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String())
}

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

// getter for Request to set choice
func (obj *dhcpv6ClientOptionsMessageType) Request() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST)
Expand All @@ -322,6 +317,11 @@ 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)
Expand Down
24 changes: 12 additions & 12 deletions gosnappi/dhcpv6_client_options_options_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ type Dhcpv6ClientOptionsOptionsRequest interface {
setChoice(value Dhcpv6ClientOptionsOptionsRequestChoiceEnum) Dhcpv6ClientOptionsOptionsRequest
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsOptionsRequest
HasChoice() bool
// getter for BootfileUrl to set choice.
BootfileUrl()
// getter for Sztp to set choice.
Sztp()
// getter for Fqdn to set choice.
Fqdn()
// getter for BootfileUrl to set choice.
BootfileUrl()
// getter for VendorInformation to set choice.
VendorInformation()
// getter for Fqdn to set choice.
Fqdn()
// getter for NameServers to set choice.
NameServers()
// Custom returns Dhcpv6ClientOptionsCustom, set in Dhcpv6ClientOptionsOptionsRequest.
Expand Down Expand Up @@ -322,26 +322,26 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption
return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for BootfileUrl to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL)
}

// getter for Sztp to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP)
}

// getter for Fqdn to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN)
// getter for BootfileUrl to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL)
}

// getter for VendorInformation to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION)
}

// getter for Fqdn to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN)
}

// getter for NameServers to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) NameServers() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.NAME_SERVERS)
Expand Down
14 changes: 7 additions & 7 deletions gosnappi/dhcpv6_server_options_message_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ type Dhcpv6ServerOptionsMessageType interface {
setChoice(value Dhcpv6ServerOptionsMessageTypeChoiceEnum) Dhcpv6ServerOptionsMessageType
// HasChoice checks if Choice has been set in Dhcpv6ServerOptionsMessageType
HasChoice() bool
// getter for Reply to set choice.
Reply()
// getter for Advertise to set choice.
Advertise()
// getter for Reply to set choice.
Reply()
// getter for ReConfigure to set choice.
ReConfigure()
}
Expand All @@ -295,16 +295,16 @@ func (obj *dhcpv6ServerOptionsMessageType) Choice() Dhcpv6ServerOptionsMessageTy
return Dhcpv6ServerOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for Reply to set choice
func (obj *dhcpv6ServerOptionsMessageType) Reply() {
obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY)
}

// getter for Advertise to set choice
func (obj *dhcpv6ServerOptionsMessageType) Advertise() {
obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE)
}

// getter for Reply to set choice
func (obj *dhcpv6ServerOptionsMessageType) Reply() {
obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.REPLY)
}

// getter for ReConfigure to set choice
func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() {
obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE)
Expand Down
20 changes: 10 additions & 10 deletions gosnappi/flow_rsvp_lsp_tunnel_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ type FlowRSVPLspTunnelFlag interface {
setChoice(value FlowRSVPLspTunnelFlagChoiceEnum) FlowRSVPLspTunnelFlag
// HasChoice checks if Choice has been set in FlowRSVPLspTunnelFlag
HasChoice() bool
// getter for LocalProtectionDesired to set choice.
LocalProtectionDesired()
// getter for LabelRecordingDesired to set choice.
LabelRecordingDesired()
// getter for SeStyleDesired to set choice.
SeStyleDesired()
// getter for LabelRecordingDesired to set choice.
LabelRecordingDesired()
// getter for LocalProtectionDesired to set choice.
LocalProtectionDesired()
}

type FlowRSVPLspTunnelFlagChoiceEnum string
Expand All @@ -295,19 +295,19 @@ func (obj *flowRSVPLspTunnelFlag) Choice() FlowRSVPLspTunnelFlagChoiceEnum {
return FlowRSVPLspTunnelFlagChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for LocalProtectionDesired to set choice
func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED)
// getter for SeStyleDesired to set choice
func (obj *flowRSVPLspTunnelFlag) SeStyleDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.SE_STYLE_DESIRED)
}

// getter for LabelRecordingDesired to set choice
func (obj *flowRSVPLspTunnelFlag) LabelRecordingDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.LABEL_RECORDING_DESIRED)
}

// getter for SeStyleDesired to set choice
func (obj *flowRSVPLspTunnelFlag) SeStyleDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.SE_STYLE_DESIRED)
// getter for LocalProtectionDesired to set choice
func (obj *flowRSVPLspTunnelFlag) LocalProtectionDesired() {
obj.setChoice(FlowRSVPLspTunnelFlagChoice.LOCAL_PROTECTION_DESIRED)
}

// description is TBD
Expand Down
Loading

0 comments on commit ad96564

Please sign in to comment.