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 Dec 13, 2024
1 parent 1f9d952 commit 7740933
Show file tree
Hide file tree
Showing 20 changed files with 218 additions and 194 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,14 +278,14 @@ type BgpAttributesCommunity interface {
Choice() BgpAttributesCommunityChoiceEnum
// setChoice assigns BgpAttributesCommunityChoiceEnum provided by user to BgpAttributesCommunity
setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity
// getter for LlgrStale to set choice.
LlgrStale()
// getter for NoAdvertised to set choice.
NoAdvertised()
// getter for NoLlgr to set choice.
NoLlgr()
// getter for LlgrStale to set choice.
LlgrStale()
// 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.
Expand Down Expand Up @@ -322,26 +322,26 @@ func (obj *bgpAttributesCommunity) Choice() BgpAttributesCommunityChoiceEnum {
return BgpAttributesCommunityChoiceEnum(obj.obj.Choice.Enum().String())
}

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

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

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

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

// getter for NoExport to set choice
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)
Expand Down
28 changes: 14 additions & 14 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 PushIpv4AndIpv6 to set choice.
PushIpv4AndIpv6()
// getter for PushIpv6 to set choice.
PushIpv6()
}

type BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum string
Expand All @@ -305,11 +305,21 @@ 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)
Expand All @@ -320,16 +330,6 @@ 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 PushIpv6 to set choice
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() {
obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6)
}

// The Explicit NULL Label policy.
// Choice returns a string
func (obj *bgpAttributesSrPolicyExplicitNullPolicy) HasChoice() bool {
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 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 Dce to set choice.
Dce()
}

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

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

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

// 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
24 changes: 12 additions & 12 deletions gosnappi/dhcpv6_client_options_duid_uuid_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,14 @@ type Dhcpv6ClientOptionsDuidUuidVersion interface {
setChoice(value Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum) Dhcpv6ClientOptionsDuidUuidVersion
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsDuidUuidVersion
HasChoice() bool
// getter for V_3 to set choice.
V_3()
// getter for V_1 to set choice.
V_1()
// getter for V_5 to set choice.
V_5()
// getter for V_3 to set choice.
V_3()
// 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()
}
Expand All @@ -303,26 +303,26 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU
return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String())
}

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

// 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)
Expand Down
42 changes: 21 additions & 21 deletions gosnappi/dhcpv6_client_options_message_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,18 +270,18 @@ type Dhcpv6ClientOptionsMessageType interface {
setChoice(value Dhcpv6ClientOptionsMessageTypeChoiceEnum) Dhcpv6ClientOptionsMessageType
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsMessageType
HasChoice() bool
// getter for Rebind to set choice.
Rebind()
// getter for Renew to set choice.
Renew()
// getter for Release to set choice.
Release()
// getter for Request to set choice.
Request()
// getter for InformRequest to set choice.
InformRequest()
// getter for Solicit to set choice.
Solicit()
// getter for Renew to set choice.
Renew()
// getter for Rebind to set choice.
Rebind()
// getter for InformRequest to set choice.
InformRequest()
}

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

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

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

// getter for Release to set choice
func (obj *dhcpv6ClientOptionsMessageType) Release() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RELEASE)
Expand All @@ -327,16 +317,26 @@ func (obj *dhcpv6ClientOptionsMessageType) Request() {
obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST)
}

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

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

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

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

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

// 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
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,16 +278,16 @@ type Dhcpv6ClientOptionsOptionsRequest interface {
setChoice(value Dhcpv6ClientOptionsOptionsRequestChoiceEnum) Dhcpv6ClientOptionsOptionsRequest
// HasChoice checks if Choice has been set in Dhcpv6ClientOptionsOptionsRequest
HasChoice() bool
// getter for Fqdn to set choice.
Fqdn()
// getter for NameServers to set choice.
NameServers()
// getter for Fqdn to set choice.
Fqdn()
// getter for VendorInformation to set choice.
VendorInformation()
// getter for Sztp to set choice.
Sztp()
// getter for BootfileUrl to set choice.
BootfileUrl()
// 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,14 +322,19 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption
return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String())
}

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

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

// getter for Sztp to set choice
Expand All @@ -342,11 +347,6 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() {
obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL)
}

// 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
14 changes: 7 additions & 7 deletions gosnappi/dhcpv6_server_iapd_pool_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,21 +318,21 @@ func (obj *dhcpv6ServerIapdPoolInfo) SetStartPrefixAddress(value string) Dhcpv6S
return obj
}

// The IPv6 network prefix length is used for incrementing the lease address within the lease pool where multiple addresses are configured by using the size field. The address is incremented using the configured Prefix Length and Step.
// The configured_prefix_len ( in conjunction with the prefix_step) can be used to increment the IPv6 lease addresses to be assigned to the requested clients when multiple addresses are configured by using the size field in the pool. e.g. This can be used to assign multiple IPv6 host addresses within the same IPv6 subnet ( defined by advertised_prefix_len ) to multiple requesting clients.
// ConfiguredPrefixLen returns a uint32
func (obj *dhcpv6ServerIapdPoolInfo) ConfiguredPrefixLen() uint32 {

return *obj.obj.ConfiguredPrefixLen

}

// The IPv6 network prefix length is used for incrementing the lease address within the lease pool where multiple addresses are configured by using the size field. The address is incremented using the configured Prefix Length and Step.
// The configured_prefix_len ( in conjunction with the prefix_step) can be used to increment the IPv6 lease addresses to be assigned to the requested clients when multiple addresses are configured by using the size field in the pool. e.g. This can be used to assign multiple IPv6 host addresses within the same IPv6 subnet ( defined by advertised_prefix_len ) to multiple requesting clients.
// ConfiguredPrefixLen returns a uint32
func (obj *dhcpv6ServerIapdPoolInfo) HasConfiguredPrefixLen() bool {
return obj.obj.ConfiguredPrefixLen != nil
}

// The IPv6 network prefix length is used for incrementing the lease address within the lease pool where multiple addresses are configured by using the size field. The address is incremented using the configured Prefix Length and Step.
// The configured_prefix_len ( in conjunction with the prefix_step) can be used to increment the IPv6 lease addresses to be assigned to the requested clients when multiple addresses are configured by using the size field in the pool. e.g. This can be used to assign multiple IPv6 host addresses within the same IPv6 subnet ( defined by advertised_prefix_len ) to multiple requesting clients.
// SetConfiguredPrefixLen sets the uint32 value in the Dhcpv6ServerIapdPoolInfo object
func (obj *dhcpv6ServerIapdPoolInfo) SetConfiguredPrefixLen(value uint32) Dhcpv6ServerIapdPoolInfo {

Expand Down Expand Up @@ -362,21 +362,21 @@ func (obj *dhcpv6ServerIapdPoolInfo) SetPrefixSize(value uint32) Dhcpv6ServerIap
return obj
}

// The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the Prefix Length and Step.
// The increment value for the lease address within the lease pool where multiple addresses are present. The value of the advertised IPv6 prefixes are incremented according to the configured_prefix_len and prefix_step.
// PrefixStep returns a uint32
func (obj *dhcpv6ServerIapdPoolInfo) PrefixStep() uint32 {

return *obj.obj.PrefixStep

}

// The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the Prefix Length and Step.
// The increment value for the lease address within the lease pool where multiple addresses are present. The value of the advertised IPv6 prefixes are incremented according to the configured_prefix_len and prefix_step.
// PrefixStep returns a uint32
func (obj *dhcpv6ServerIapdPoolInfo) HasPrefixStep() bool {
return obj.obj.PrefixStep != nil
}

// The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the Prefix Length and Step.
// The increment value for the lease address within the lease pool where multiple addresses are present. The value of the advertised IPv6 prefixes are incremented according to the configured_prefix_len and prefix_step.
// SetPrefixStep sets the uint32 value in the Dhcpv6ServerIapdPoolInfo object
func (obj *dhcpv6ServerIapdPoolInfo) SetPrefixStep(value uint32) Dhcpv6ServerIapdPoolInfo {

Expand Down Expand Up @@ -464,7 +464,7 @@ func (obj *dhcpv6ServerIapdPoolInfo) validateObj(vObj *validation, set_default b

func (obj *dhcpv6ServerIapdPoolInfo) setDefault() {
if obj.obj.ConfiguredPrefixLen == nil {
obj.SetConfiguredPrefixLen(64)
obj.SetConfiguredPrefixLen(128)
}
if obj.obj.PrefixSize == nil {
obj.SetPrefixSize(10)
Expand Down
Loading

0 comments on commit 7740933

Please sign in to comment.