diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index 738f221f..514b77a4 100644 --- a/gosnappi/bgp_attributes_community.go +++ b/gosnappi/bgp_attributes_community.go @@ -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. @@ -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) diff --git a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go index a8ae4341..512e2bf9 100644 --- a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go +++ b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go @@ -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 @@ -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) @@ -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 { diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go index 5880589a..cb52e6e2 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go @@ -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 @@ -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) @@ -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 { diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_version.go b/gosnappi/dhcpv6_client_options_duid_uuid_version.go index c1918fce..afd4f042 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -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() } @@ -303,19 +303,14 @@ 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 @@ -323,6 +318,11 @@ 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) diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index a81e135a..774aac2a 100644 --- a/gosnappi/dhcpv6_client_options_message_type.go +++ b/gosnappi/dhcpv6_client_options_message_type.go @@ -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 @@ -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) @@ -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 { diff --git a/gosnappi/dhcpv6_client_options_options_request.go b/gosnappi/dhcpv6_client_options_options_request.go index 733f6c43..c13308ff 100644 --- a/gosnappi/dhcpv6_client_options_options_request.go +++ b/gosnappi/dhcpv6_client_options_options_request.go @@ -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 @@ -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 @@ -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 diff --git a/gosnappi/dhcpv6_server_iapd_pool_info.go b/gosnappi/dhcpv6_server_iapd_pool_info.go index ffcd9ef6..b25c1cc3 100644 --- a/gosnappi/dhcpv6_server_iapd_pool_info.go +++ b/gosnappi/dhcpv6_server_iapd_pool_info.go @@ -318,7 +318,7 @@ 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 { @@ -326,13 +326,13 @@ func (obj *dhcpv6ServerIapdPoolInfo) ConfiguredPrefixLen() uint32 { } -// 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 { @@ -362,7 +362,7 @@ 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 { @@ -370,13 +370,13 @@ func (obj *dhcpv6ServerIapdPoolInfo) PrefixStep() uint32 { } -// 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 { @@ -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) diff --git a/gosnappi/dhcpv6_server_options_message_type.go b/gosnappi/dhcpv6_server_options_message_type.go index 404e5df0..e706b7c6 100644 --- a/gosnappi/dhcpv6_server_options_message_type.go +++ b/gosnappi/dhcpv6_server_options_message_type.go @@ -270,12 +270,12 @@ type Dhcpv6ServerOptionsMessageType interface { setChoice(value Dhcpv6ServerOptionsMessageTypeChoiceEnum) Dhcpv6ServerOptionsMessageType // HasChoice checks if Choice has been set in Dhcpv6ServerOptionsMessageType HasChoice() bool + // getter for Advertise to set choice. + Advertise() // getter for Reply to set choice. Reply() // getter for ReConfigure to set choice. ReConfigure() - // getter for Advertise to set choice. - Advertise() } type Dhcpv6ServerOptionsMessageTypeChoiceEnum string @@ -295,6 +295,11 @@ func (obj *dhcpv6ServerOptionsMessageType) Choice() Dhcpv6ServerOptionsMessageTy return Dhcpv6ServerOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } +// 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) @@ -305,11 +310,6 @@ func (obj *dhcpv6ServerOptionsMessageType) ReConfigure() { obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.RE_CONFIGURE) } -// getter for Advertise to set choice -func (obj *dhcpv6ServerOptionsMessageType) Advertise() { - obj.setChoice(Dhcpv6ServerOptionsMessageTypeChoice.ADVERTISE) -} - // The server message name where the option is included, by default it is all. // Choice returns a string func (obj *dhcpv6ServerOptionsMessageType) HasChoice() bool { diff --git a/gosnappi/dhcpv6_server_pool_info.go b/gosnappi/dhcpv6_server_pool_info.go index 14909281..248eaa4e 100644 --- a/gosnappi/dhcpv6_server_pool_info.go +++ b/gosnappi/dhcpv6_server_pool_info.go @@ -312,7 +312,7 @@ func (obj *dhcpv6ServerPoolInfo) SetStartAddress(value string) Dhcpv6ServerPoolI 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 prefix_len ( in conjunction with the 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. The address is incremented using the prefix_len and step. // PrefixLen returns a uint32 func (obj *dhcpv6ServerPoolInfo) PrefixLen() uint32 { @@ -320,13 +320,13 @@ func (obj *dhcpv6ServerPoolInfo) PrefixLen() uint32 { } -// 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 prefix_len ( in conjunction with the 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. The address is incremented using the prefix_len and step. // PrefixLen returns a uint32 func (obj *dhcpv6ServerPoolInfo) HasPrefixLen() bool { return obj.obj.PrefixLen != 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 prefix_len ( in conjunction with the 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. The address is incremented using the prefix_len and step. // SetPrefixLen sets the uint32 value in the Dhcpv6ServerPoolInfo object func (obj *dhcpv6ServerPoolInfo) SetPrefixLen(value uint32) Dhcpv6ServerPoolInfo { @@ -356,7 +356,7 @@ func (obj *dhcpv6ServerPoolInfo) SetSize(value uint32) Dhcpv6ServerPoolInfo { 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 configured 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 prefix_len and step. // Step returns a uint32 func (obj *dhcpv6ServerPoolInfo) Step() uint32 { @@ -364,13 +364,13 @@ func (obj *dhcpv6ServerPoolInfo) Step() uint32 { } -// The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the configured 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 prefix_len and step. // Step returns a uint32 func (obj *dhcpv6ServerPoolInfo) HasStep() bool { return obj.obj.Step != nil } -// The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the configured 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 prefix_len and step. // SetStep sets the uint32 value in the Dhcpv6ServerPoolInfo object func (obj *dhcpv6ServerPoolInfo) SetStep(value uint32) Dhcpv6ServerPoolInfo { diff --git a/gosnappi/flow_rsvp_lsp_tunnel_flag.go b/gosnappi/flow_rsvp_lsp_tunnel_flag.go index 006d6812..d2ddef91 100644 --- a/gosnappi/flow_rsvp_lsp_tunnel_flag.go +++ b/gosnappi/flow_rsvp_lsp_tunnel_flag.go @@ -270,12 +270,12 @@ type FlowRSVPLspTunnelFlag interface { setChoice(value FlowRSVPLspTunnelFlagChoiceEnum) FlowRSVPLspTunnelFlag // HasChoice checks if Choice has been set in FlowRSVPLspTunnelFlag HasChoice() bool - // getter for SeStyleDesired to set choice. - SeStyleDesired() // getter for LabelRecordingDesired to set choice. LabelRecordingDesired() // getter for LocalProtectionDesired to set choice. LocalProtectionDesired() + // getter for SeStyleDesired to set choice. + SeStyleDesired() } type FlowRSVPLspTunnelFlagChoiceEnum string @@ -295,11 +295,6 @@ func (obj *flowRSVPLspTunnelFlag) Choice() FlowRSVPLspTunnelFlagChoiceEnum { return FlowRSVPLspTunnelFlagChoiceEnum(obj.obj.Choice.Enum().String()) } -// 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) @@ -310,6 +305,11 @@ 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) +} + // description is TBD // Choice returns a string func (obj *flowRSVPLspTunnelFlag) HasChoice() bool { diff --git a/gosnappi/flow_rsvp_record_route_i_pv4_flag.go b/gosnappi/flow_rsvp_record_route_i_pv4_flag.go index ae4873ee..8ec9fad0 100644 --- a/gosnappi/flow_rsvp_record_route_i_pv4_flag.go +++ b/gosnappi/flow_rsvp_record_route_i_pv4_flag.go @@ -270,10 +270,10 @@ type FlowRSVPRecordRouteIPv4Flag interface { setChoice(value FlowRSVPRecordRouteIPv4FlagChoiceEnum) FlowRSVPRecordRouteIPv4Flag // HasChoice checks if Choice has been set in FlowRSVPRecordRouteIPv4Flag HasChoice() bool - // getter for LocalProtectionInUse to set choice. - LocalProtectionInUse() // getter for LocalProtectionAvailable to set choice. LocalProtectionAvailable() + // getter for LocalProtectionInUse to set choice. + LocalProtectionInUse() } type FlowRSVPRecordRouteIPv4FlagChoiceEnum string @@ -291,16 +291,16 @@ func (obj *flowRSVPRecordRouteIPv4Flag) Choice() FlowRSVPRecordRouteIPv4FlagChoi return FlowRSVPRecordRouteIPv4FlagChoiceEnum(obj.obj.Choice.Enum().String()) } -// 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) } +// getter for LocalProtectionInUse to set choice +func (obj *flowRSVPRecordRouteIPv4Flag) LocalProtectionInUse() { + obj.setChoice(FlowRSVPRecordRouteIPv4FlagChoice.LOCAL_PROTECTION_IN_USE) +} + // description is TBD // Choice returns a string func (obj *flowRSVPRecordRouteIPv4Flag) HasChoice() bool { diff --git a/gosnappi/go.mod b/gosnappi/go.mod index 72271564..d4f14bf5 100644 --- a/gosnappi/go.mod +++ b/gosnappi/go.mod @@ -1,15 +1,15 @@ module github.com/open-traffic-generator/snappi/gosnappi -go 1.22.7 +go 1.22 -toolchain go1.23.3 +toolchain go1.23.4 require ( github.com/Masterminds/semver/v3 v3.3.1 github.com/ghodss/yaml v1.0.0 github.com/gorilla/mux v1.8.1 github.com/stretchr/testify v1.10.0 - google.golang.org/grpc v1.68.0 + google.golang.org/grpc v1.69.0 google.golang.org/protobuf v1.35.2 ) @@ -17,10 +17,11 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/net v0.29.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/text v0.18.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect + github.com/rogpeppe/go-internal v1.10.0 // indirect + golang.org/x/net v0.30.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/text v0.19.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v2 v2.2.3 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/gosnappi/go.sum b/gosnappi/go.sum index b23ccf9f..d3cfd65e 100644 --- a/gosnappi/go.sum +++ b/gosnappi/go.sum @@ -5,10 +5,16 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= @@ -21,20 +27,31 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= -golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= -golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU= -google.golang.org/grpc v1.68.0 h1:aHQeeJbo8zAkAa3pRzrVjZlbz6uSfeOXlJNQM0RAbz0= -google.golang.org/grpc v1.68.0/go.mod h1:fmSPC5AsjSBCK54MyHRx48kpOti1/jRfOlwEWywNjWA= +go.opentelemetry.io/otel v1.31.0 h1:NsJcKPIW0D0H3NgzPDHmo0WW6SptzPdqg/L1zsIm2hY= +go.opentelemetry.io/otel v1.31.0/go.mod h1:O0C14Yl9FgkjqcCZAsE053C13OaddMYr/hz6clDkEJE= +go.opentelemetry.io/otel/metric v1.31.0 h1:FSErL0ATQAmYHUIzSezZibnyVlft1ybhy4ozRPcF2fE= +go.opentelemetry.io/otel/metric v1.31.0/go.mod h1:C3dEloVbLuYoX41KpmAhOqNriGbA+qqH6PQ5E5mUfnY= +go.opentelemetry.io/otel/sdk v1.31.0 h1:xLY3abVHYZ5HSfOg3l2E5LUj2Cwva5Y7yGxnSW9H5Gk= +go.opentelemetry.io/otel/sdk v1.31.0/go.mod h1:TfRbMdhvxIIr/B2N2LQW2S5v9m3gOQ/08KsbbO5BPT0= +go.opentelemetry.io/otel/sdk/metric v1.31.0 h1:i9hxxLJF/9kkvfHppyLL55aW7iIJz4JjxTeYusH7zMc= +go.opentelemetry.io/otel/sdk/metric v1.31.0/go.mod h1:CRInTMVvNhUKgSAMbKyTMxqOBC0zgyxzW55lZzX43Y8= +go.opentelemetry.io/otel/trace v1.31.0 h1:ffjsj1aRouKewfr85U2aGagJ46+MvodynlQ1HYdmJys= +go.opentelemetry.io/otel/trace v1.31.0/go.mod h1:TXZkRk7SM2ZQLtR6eoAWQFIHPvzQ06FJAsO1tJg480A= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1:X58yt85/IXCx0Y3ZwN6sEIKZzQtDEYaBWrDvErdXrRE= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= +google.golang.org/grpc v1.69.0 h1:quSiOM1GJPmPH5XtU+BCoVXcDVJJAzNcoyfC2cCjGkI= +google.golang.org/grpc v1.69.0/go.mod h1:vyjdE6jLBI76dgpDojsFGNaHlxdjXN9ghpnd2o7JGZ4= google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io= google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/gosnappi/gosnappi.go b/gosnappi/gosnappi.go index d83bcb69..3bcaba75 100644 --- a/gosnappi/gosnappi.go +++ b/gosnappi/gosnappi.go @@ -1,4 +1,4 @@ -/* Open Traffic Generator API 1.17.0 +/* Open Traffic Generator API 1.18.0 * Open Traffic Generator API defines a model-driven, vendor-neutral and standard * interface for emulating layer 2-7 network devices and generating test traffic. * @@ -251,7 +251,7 @@ type Api interface { func (api *gosnappiApi) GetLocalVersion() Version { if api.versionMeta.localVersion == nil { - api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.17.0").SetSdkVersion("1.17.1") + api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.18.0").SetSdkVersion("1.18.0") } return api.versionMeta.localVersion diff --git a/gosnappi/metrics_response.go b/gosnappi/metrics_response.go index a35af2af..e147e96a 100644 --- a/gosnappi/metrics_response.go +++ b/gosnappi/metrics_response.go @@ -304,14 +304,14 @@ type MetricsResponse interface { setChoice(value MetricsResponseChoiceEnum) MetricsResponse // HasChoice checks if Choice has been set in MetricsResponse HasChoice() bool - // getter for Dhcpv6Server to set choice. - Dhcpv6Server() + // getter for Dhcpv6Client to set choice. + Dhcpv6Client() // getter for Dhcpv4Server to set choice. Dhcpv4Server() // getter for Dhcpv4Client to set choice. Dhcpv4Client() - // getter for Dhcpv6Client to set choice. - Dhcpv6Client() + // getter for Dhcpv6Server to set choice. + Dhcpv6Server() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse PortMetrics() MetricsResponsePortMetricIter // FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse @@ -382,9 +382,9 @@ func (obj *metricsResponse) Choice() MetricsResponseChoiceEnum { return MetricsResponseChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for Dhcpv6Server to set choice -func (obj *metricsResponse) Dhcpv6Server() { - obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) +// getter for Dhcpv6Client to set choice +func (obj *metricsResponse) Dhcpv6Client() { + obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) } // getter for Dhcpv4Server to set choice @@ -397,9 +397,9 @@ func (obj *metricsResponse) Dhcpv4Client() { obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) } -// getter for Dhcpv6Client to set choice -func (obj *metricsResponse) Dhcpv6Client() { - obj.setChoice(MetricsResponseChoice.DHCPV6_CLIENT) +// getter for Dhcpv6Server to set choice +func (obj *metricsResponse) Dhcpv6Server() { + obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) } // description is TBD diff --git a/gosnappi/otg/otg.pb.go b/gosnappi/otg/otg.pb.go index b37c268d..a0a23a76 100644 --- a/gosnappi/otg/otg.pb.go +++ b/gosnappi/otg/otg.pb.go @@ -1,4 +1,4 @@ -// Open Traffic Generator API 1.17.0 +// Open Traffic Generator API 1.18.0 // Open Traffic Generator API defines a model-driven, vendor-neutral and standard // interface for emulating layer 2-7 network devices and generating test traffic. // @@ -47114,17 +47114,18 @@ type Dhcpv6ServerPoolInfo struct { // The first IP address of the lease pool. StartAddress *string `protobuf:"bytes,1,opt,name=start_address,json=startAddress,proto3,oneof" json:"start_address,omitempty"` - // 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 prefix_len ( in conjunction with the 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. The address is incremented using + // the prefix_len and step. // default = 64 PrefixLen *uint32 `protobuf:"varint,2,opt,name=prefix_len,json=prefixLen,proto3,oneof" json:"prefix_len,omitempty"` // The total number of addresses in the pool. // default = 1 Size *uint32 `protobuf:"varint,3,opt,name=size,proto3,oneof" json:"size,omitempty"` // The increment value for the lease address within the lease pool where multiple addresses - // are present. The value is incremented according to the configured Prefix Length and - // Step. + // are present. The value of the advertised IPv6 prefixes are incremented according + // to the prefix_len and step. // default = 1 Step *uint32 `protobuf:"varint,4,opt,name=step,proto3,oneof" json:"step,omitempty"` } @@ -47197,16 +47198,19 @@ type Dhcpv6ServerIapdPoolInfo struct { // The first IP address of the prefix pool. StartPrefixAddress *string `protobuf:"bytes,1,opt,name=start_prefix_address,json=startPrefixAddress,proto3,oneof" json:"start_prefix_address,omitempty"` - // 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. - // default = 64 + // 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. + // default = 128 ConfiguredPrefixLen *uint32 `protobuf:"varint,2,opt,name=configured_prefix_len,json=configuredPrefixLen,proto3,oneof" json:"configured_prefix_len,omitempty"` // The total number of addresses in the pool. // default = 10 PrefixSize *uint32 `protobuf:"varint,3,opt,name=prefix_size,json=prefixSize,proto3,oneof" json:"prefix_size,omitempty"` // 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. + // are present. The value of the advertised IPv6 prefixes are incremented according + // to the configured_prefix_len and prefix_step. // default = 1 PrefixStep *uint32 `protobuf:"varint,4,opt,name=prefix_step,json=prefixStep,proto3,oneof" json:"prefix_step,omitempty"` // The prefix length of the IPv6 prefix that the Dhcpv6 server offers to the Dhcpv6 diff --git a/gosnappi/otg/otg.proto b/gosnappi/otg/otg.proto index e79667ce..8dc305b2 100644 --- a/gosnappi/otg/otg.proto +++ b/gosnappi/otg/otg.proto @@ -1,4 +1,4 @@ -/* Open Traffic Generator API 1.17.0 +/* Open Traffic Generator API 1.18.0 * Open Traffic Generator API defines a model-driven, vendor-neutral and standard * interface for emulating layer 2-7 network devices and generating test traffic. * @@ -7344,9 +7344,10 @@ message Dhcpv6ServerPoolInfo { // The first IP address of the lease pool. optional string start_address = 1; - // 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 prefix_len ( in conjunction with the 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. The address is incremented using + // the prefix_len and step. // default = 64 optional uint32 prefix_len = 2; @@ -7355,8 +7356,8 @@ message Dhcpv6ServerPoolInfo { optional uint32 size = 3; // The increment value for the lease address within the lease pool where multiple addresses - // are present. The value is incremented according to the configured Prefix Length and - // Step. + // are present. The value of the advertised IPv6 prefixes are incremented according + // to the prefix_len and step. // default = 1 optional uint32 step = 4; } @@ -7367,10 +7368,12 @@ message Dhcpv6ServerIapdPoolInfo { // The first IP address of the prefix pool. optional string start_prefix_address = 1; - // 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. - // default = 64 + // 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. + // default = 128 optional uint32 configured_prefix_len = 2; // The total number of addresses in the pool. @@ -7378,7 +7381,8 @@ message Dhcpv6ServerIapdPoolInfo { optional uint32 prefix_size = 3; // 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. + // are present. The value of the advertised IPv6 prefixes are incremented according + // to the configured_prefix_len and prefix_step. // default = 1 optional uint32 prefix_step = 4; diff --git a/requirements.txt b/requirements.txt index 9d42fddb..4485d7b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary -requests -protobuf~=4.24.4 ; python_version > '3.6' -protobuf~=3.15.0 ; python_version <= '3.6' +grpcio~=1.59.0 ; python_version > '3.6' grpcio-tools~=1.59.0 ; python_version > '3.6' -grpcio~=1.44.0 ; python_version <= '3.6' grpcio-tools~=1.44.0 ; python_version <= '3.6' -grpcio~=1.59.0 ; python_version > '3.6' +grpcio~=1.44.0 ; python_version <= '3.6' +requests PyYAML -semantic_version +protobuf~=4.24.4 ; python_version > '3.6' +protobuf~=3.15.0 ; python_version <= '3.6' urllib3 +semantic_version diff --git a/snappi/docs/openapi.yaml b/snappi/docs/openapi.yaml index ce11df7f..5461db15 100644 --- a/snappi/docs/openapi.yaml +++ b/snappi/docs/openapi.yaml @@ -7,7 +7,7 @@ info: \ issue](https://github.com/open-traffic-generator/models/issues) in the models\ \ repository\n- [fork the models repository](https://github.com/open-traffic-generator/models)\ \ and submit a PR" - version: 1.17.0 + version: 1.18.0 contact: url: https://github.com/open-traffic-generator/models license: @@ -9782,7 +9782,7 @@ components: x-field-uid: 1 prefix_len: description: |- - 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 prefix_len ( in conjunction with the 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. The address is incremented using the prefix_len and step. type: integer format: uint32 default: 64 @@ -9799,7 +9799,7 @@ components: x-field-uid: 3 step: description: |- - The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the configured 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 prefix_len and step. type: integer format: uint32 default: 1 @@ -9817,13 +9817,11 @@ components: format: ipv6 x-field-uid: 1 configured_prefix_len: - description: "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. " + description: |- + 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. type: integer format: uint32 - default: 64 + default: 128 maximum: 128 x-field-uid: 2 prefix_size: @@ -9837,7 +9835,7 @@ components: x-field-uid: 3 prefix_step: description: |- - 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. type: integer format: uint32 default: 1 diff --git a/snappi/snappi.py b/snappi/snappi.py index ae4c7193..2b4d3952 100644 --- a/snappi/snappi.py +++ b/snappi/snappi.py @@ -1,4 +1,4 @@ -# Open Traffic Generator API 1.17.0 +# Open Traffic Generator API 1.18.0 # License: MIT import importlib @@ -36225,7 +36225,7 @@ def prefix_len(self): # type: () -> int """prefix_len getter - 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 prefix_len in conjunction with the 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. The address is incremented using the prefix_len and step. Returns: int """ @@ -36235,7 +36235,7 @@ def prefix_len(self): def prefix_len(self, value): """prefix_len setter - 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 prefix_len in conjunction with the 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. The address is incremented using the prefix_len and step. value: int """ @@ -36267,7 +36267,7 @@ def step(self): # type: () -> int """step getter - The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the configured 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 prefix_len and step. Returns: int """ @@ -36277,7 +36277,7 @@ def step(self): def step(self, value): """step setter - The increment value for the lease address within the lease pool where multiple addresses are present. The value is incremented according to the configured 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 prefix_len and step. value: int """ @@ -36318,7 +36318,7 @@ class Dhcpv6ServerIapdPoolInfo(OpenApiObject): _REQUIRED = () # type: tuple(str) _DEFAULTS = { - "configured_prefix_len": 64, + "configured_prefix_len": 128, "prefix_size": 10, "prefix_step": 1, "advertised_prefix_len": 64, @@ -36330,7 +36330,7 @@ def __init__( self, parent=None, start_prefix_address=None, - configured_prefix_len=64, + configured_prefix_len=128, prefix_size=10, prefix_step=1, advertised_prefix_len=64, @@ -36381,7 +36381,7 @@ def configured_prefix_len(self): # type: () -> int """configured_prefix_len getter - 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. Returns: int """ @@ -36391,7 +36391,7 @@ def configured_prefix_len(self): def configured_prefix_len(self, value): """configured_prefix_len setter - 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. value: int """ @@ -36423,7 +36423,7 @@ def prefix_step(self): # type: () -> int """prefix_step getter - 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. Returns: int """ @@ -36433,7 +36433,7 @@ def prefix_step(self): def prefix_step(self, value): """prefix_step setter - 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. value: int """ @@ -155128,8 +155128,8 @@ class Api(object): def __init__(self, **kwargs): self._version_meta = self.version() - self._version_meta.api_spec_version = "1.17.0" - self._version_meta.sdk_version = "1.17.1" + self._version_meta.api_spec_version = "1.18.0" + self._version_meta.sdk_version = "1.18.0" self._version_check = kwargs.get("version_check") if self._version_check is None: self._version_check = False