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 Nov 25, 2024
1 parent 9c8723a commit 95d34df
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 96 deletions.
28 changes: 14 additions & 14 deletions gosnappi/bgp_attributes_community.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,16 @@ type BgpAttributesCommunity interface {
Choice() BgpAttributesCommunityChoiceEnum
// setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoExportSubconfed to set choice.
NoExportSubconfed()
// getter for NoLlgr to set choice.
NoLlgr()
// getter for NoExport to set choice.
NoExport()
// getter for NoAdvertised to set choice.
NoAdvertised()
// 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 @@ -322,11 +322,21 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum {
return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String())
}

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

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

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

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

// getter for NoAdvertised to set choice
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)
}

func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity {
intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)]
if !ok {
Expand Down
36 changes: 18 additions & 18 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 DonotPush to set choice.
DonotPush()
// getter for Unknown to set choice.
Unknown()
// getter for PushIpv4 to set choice.
PushIpv4()
// getter for PushIpv6 to set choice.
PushIpv6()
// getter for Unknown to set choice.
Unknown()
// getter for PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for DonotPush to set choice.
DonotPush()
// getter for PushIpv4 to set choice.
PushIpv4()
}

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

// getter for DonotPush to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH)
// 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 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 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 PushIpv4 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4)
}

// The Explicit NULL Label policy.
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 @@ -270,14 +270,14 @@ type Dhcpv6ClientOptionsDuidUuidVariant interface {
setChoice(value Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum) Dhcpv6ClientOptionsDuidUuidVariant
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVariant
HasChoice() bool
// getter for Dce to set choice.
Dce()
// getter for Ncs to set choice.
Ncs()
// getter for VarReserved to set choice.
VarReserved()
// getter for Guid to set choice.
Guid()
// getter for Dce to set choice.
Dce()
}

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

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

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

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

// The current variants are ncs, dce,microsoft guid and reserved.
// Choice returns a string
func (obj *dhcpv6ClientOptionsDuidUuidVariant) HasChoice() bool {
Expand Down
14 changes: 7 additions & 7 deletions gosnappi/dhcpv6_client_options_duid_uuid_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface {
V_2()
// getter for V_3 to set choice.
V_3()
// getter for V_5 to set choice.
V_5()
// getter for V_1 to set choice.
V_1()
// getter for V_5 to set choice.
V_5()
// getter for V_4 to set choice.
V_4()
}
Expand Down Expand Up @@ -313,16 +313,16 @@ 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)
}

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

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

// getter for V_4 to set choice
func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() {
obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4)
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,6 +270,8 @@ type Dhcpv6ClientOptionsMessageType interface {
setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType
HasChoice() bool
// getter for Release to set choice.
Release()
// getter for Solicit to set choice.
Solicit()
// getter for InformRequest to set choice.
Expand All @@ -280,8 +282,6 @@ type Dhcpv6ClientOptionsMessageType interface {
Renew()
// getter for Request to set choice.
Request()
// getter for Release to set choice.
Release()
}

type Dhcpv6ClientOptionsMessageTypeChoiceEnum string
Expand All @@ -307,6 +307,11 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy
return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String())
}

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

// getter for Solicit to set choice
func (obj *dhcpv6ClientOptionsMessageType) Solicit() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT)
Expand All @@ -332,11 +337,6 @@ func (obj *dhcpv6ClientOptionsMessageType) Request() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST)
}

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

// The client message name where the option is included, by default it is all.
// Choice returns a string
func (obj *dhcpv6ClientOptionsMessageType) HasChoice() bool {
Expand Down
28 changes: 14 additions & 14 deletions gosnappi/dhcpv6_client_options_options_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,16 @@ 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 Fqdn to set choice.
Fqdn()
// getter for VendorInformation to set choice.
VendorInformation()
// getter for NameServers to set choice.
NameServers()
// getter for BootfileUrl to set choice.
BootfileUrl()
// getter for Sztp to set choice.
Sztp()
// getter for VendorInformation to set choice.
VendorInformation()
// Custom returns Dhcpv6ClientOptionsCustom, set in Dhcpv6ClientOptionsOptionsRequest.
// Dhcpv6ClientOptionsCustom is the Custom option is used to provide a not so well known option in the message between a client and a server.
Custom() Dhcpv6ClientOptionsCustom
Expand Down Expand Up @@ -322,31 +322,31 @@ 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 Fqdn to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN)
}

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

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

// 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 VendorInformation to set choice
func (obj *dhcpv6ClientOptionsOptionsRequest) VendorInformation() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.VENDOR_INFORMATION)
}

// The Option Request option is used to identify a list of options in a message between a client and a server. The option code is 6. - Vendor_specific information option, requested by clients for vendor-specific informations from servers. - DNS Recursive Name Server Option, requested by clients to get the list ofIPv6 addresses of DNS recursive name
// servers to which DNS queries may be sent by the client resolver in order of preference.
// - Client FQDN option - indicates whether the client or the DHCP server should update DNS with the AAAA record
Expand Down
20 changes: 10 additions & 10 deletions gosnappi/dhcpv6_server_options_message_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ 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 ReConfigure to set choice.
ReConfigure()
// getter for Advertise to set choice.
Advertise()
// getter for ReConfigure to set choice.
ReConfigure()
// getter for Reply to set choice.
Reply()
}

type Dhcpv6ServerOptionsMessageTypeChoiceEnum string
Expand All @@ -295,19 +295,19 @@ 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 ReConfigure to set choice
func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() {
obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE)
}

// 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)
}

// The server message name where the option is included, by default it is all.
Expand Down
14 changes: 7 additions & 7 deletions gosnappi/flow_rsvp_record_route_i_pv4_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ type FlowRSVPRecordRouteIPv4Flag interface {
setChoice(value FlowRSVPRecordRouteIPv4FlagChoiceEnum) FlowRSVPRecordRouteIPv4Flag
// HasChoice checks if Choice has been set in FlowRSVPRecordRouteIPv4Flag
HasChoice() bool
// getter for LocalProtectionAvailable to set choice.
LocalProtectionAvailable()
// getter for LocalProtectionInUse to set choice.
LocalProtectionInUse()
// getter for LocalProtectionAvailable to set choice.
LocalProtectionAvailable()
}

type FlowRSVPRecordRouteIPv4FlagChoiceEnum string
Expand All @@ -291,16 +291,16 @@ func (obj *flowRSVPRecordRouteIPv4Flag) Choice() FlowRSVPRecordRouteIPv4FlagChoi
return FlowRSVPRecordRouteIPv4FlagChoiceEnum(obj.obj.Choice.Enum().String())
}

// getter for LocalProtectionAvailable to set choice
func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionAvailable() {
obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_AVAILABLE)
}

// getter for LocalProtectionInUse to set choice
func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionInUse() {
obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_IN_USE)
}

// getter for LocalProtectionAvailable to set choice
func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionAvailable() {
obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_AVAILABLE)
}

// description is TBD
// Choice returns a string
func (obj *flowRSVPRecordRouteIPv4Flag) HasChoice() bool {
Expand Down
Loading

0 comments on commit 95d34df

Please sign in to comment.