diff --git a/gosnappi/bgp_attributes_community.go b/gosnappi/bgp_attributes_community.go index f2f58025..a7422cfa 100644 --- a/gosnappi/bgp_attributes_community.go +++ b/gosnappi/bgp_attributes_community.go @@ -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 NoExport to set choice. - NoExport() // getter for NoExportSubconfed to set choice. NoExportSubconfed() - // getter for LlgrStale to set choice. - LlgrStale() + // getter for NoExport to set choice. + NoExport() + // getter for NoAdvertised to set choice. + NoAdvertised() // getter for NoLlgr to set choice. NoLlgr() + // getter for LlgrStale to set choice. + LlgrStale() // 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 @@ -322,9 +322,9 @@ 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 NoExportSubconfed to set choice +func (obj *bgpAttributesCommunity) NoExportSubconfed() { + obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) } // getter for NoExport to set choice @@ -332,14 +332,9 @@ func (obj *bgpAttributesCommunity) NoExport() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) } -// getter for NoExportSubconfed to set choice -func (obj *bgpAttributesCommunity) NoExportSubconfed() { - obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) -} - -// 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 @@ -347,6 +342,11 @@ func (obj *bgpAttributesCommunity) NoLlgr() { obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) } +// getter for LlgrStale to set choice +func (obj *bgpAttributesCommunity) LlgrStale() { + obj.setChoice(BgpAttributesCommunityChoice.LLGR_STALE) +} + func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity { intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)] if !ok { diff --git a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go index ddb8d61b..512e2bf9 100644 --- a/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go +++ b/gosnappi/bgp_attributes_sr_policy_explicit_null_policy.go @@ -276,10 +276,10 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface { PushIpv4AndIpv6() // getter for PushIpv4 to set choice. PushIpv4() - // getter for Unknown to set choice. - Unknown() // getter for PushIpv6 to set choice. PushIpv6() + // getter for Unknown to set choice. + Unknown() // getter for DonotPush to set choice. DonotPush() } @@ -315,16 +315,16 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) } -// getter for Unknown to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN) -} - // getter for PushIpv6 to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv6() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV6) } +// getter for Unknown to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN) +} + // getter for DonotPush to set choice func (obj *bgpAttributesSrPolicyExplicitNullPolicy) DonotPush() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.DONOT_PUSH) diff --git a/gosnappi/dhcpv6_client_options_duid_uuid_variant.go b/gosnappi/dhcpv6_client_options_duid_uuid_variant.go index 4c4fe5d9..a930b296 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 Guid to set choice. Guid() - // getter for Ncs to set choice. - Ncs() // getter for Dce to set choice. Dce() // getter for VarReserved to set choice. VarReserved() + // getter for Ncs to set choice. + Ncs() } type Dhcpv6ClientOptionsDuidUuidVariantChoiceEnum string @@ -304,11 +304,6 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) Guid() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.GUID) } -// getter for Ncs to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS) -} - // getter for Dce to set choice func (obj *dhcpv6ClientOptionsDuidUuidVariant) Dce() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.DCE) @@ -319,6 +314,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVariant) VarReserved() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.VAR_RESERVED) } +// getter for Ncs to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVariant) Ncs() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVariantChoice.NCS) +} + // 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 4b0c9556..57436ffc 100644 --- a/gosnappi/dhcpv6_client_options_duid_uuid_version.go +++ b/gosnappi/dhcpv6_client_options_duid_uuid_version.go @@ -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_4 to set choice. - V_4() - // getter for V_2 to set choice. - V_2() // getter for V_5 to set choice. V_5() + // getter for V_4 to set choice. + V_4() // getter for V_1 to set choice. V_1() // getter for V_3 to set choice. V_3() + // getter for V_2 to set choice. + V_2() } type Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum string @@ -303,21 +303,16 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) Choice() Dhcpv6ClientOptionsDuidU return Dhcpv6ClientOptionsDuidUuidVersionChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for V_4 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_4() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_4) -} - -// getter for V_2 to set choice -func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { - obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) -} - // 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) +} + // getter for V_1 to set choice func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_1() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_1) @@ -328,6 +323,11 @@ func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_3() { obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_3) } +// getter for V_2 to set choice +func (obj *dhcpv6ClientOptionsDuidUuidVersion) V_2() { + obj.setChoice(Dhcpv6ClientOptionsDuidUuidVersionChoice.V_2) +} + // 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 { diff --git a/gosnappi/dhcpv6_client_options_message_type.go b/gosnappi/dhcpv6_client_options_message_type.go index 8ce31cb6..8517b050 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 Solicit to set choice. + Solicit() // getter for Rebind to set choice. Rebind() // getter for Renew to set choice. Renew() - // getter for Solicit to set choice. - Solicit() - // getter for Request to set choice. - Request() - // getter for Release to set choice. - Release() // getter for InformRequest to set choice. InformRequest() + // getter for Release to set choice. + Release() + // getter for Request to set choice. + Request() } type Dhcpv6ClientOptionsMessageTypeChoiceEnum string @@ -307,6 +307,11 @@ func (obj *dhcpv6ClientOptionsMessageType) Choice() Dhcpv6ClientOptionsMessageTy return Dhcpv6ClientOptionsMessageTypeChoiceEnum(obj.obj.Choice.Enum().String()) } +// getter for Solicit to set choice +func (obj *dhcpv6ClientOptionsMessageType) Solicit() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) +} + // getter for Rebind to set choice func (obj *dhcpv6ClientOptionsMessageType) Rebind() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REBIND) @@ -317,14 +322,9 @@ func (obj *dhcpv6ClientOptionsMessageType) Renew() { obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.RENEW) } -// getter for Solicit to set choice -func (obj *dhcpv6ClientOptionsMessageType) Solicit() { - obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.SOLICIT) -} - -// getter for Request to set choice -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 Release to set choice @@ -332,9 +332,9 @@ 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 Request to set choice +func (obj *dhcpv6ClientOptionsMessageType) Request() { + obj.setChoice(Dhcpv6ClientOptionsMessageTypeChoice.REQUEST) } // The client message name where the option is included, by default it is all. diff --git a/gosnappi/dhcpv6_client_options_options_request.go b/gosnappi/dhcpv6_client_options_options_request.go index de425b56..ba33e41a 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 VendorInformation to set choice. - VendorInformation() - // getter for BootfileUrl to set choice. - BootfileUrl() // getter for NameServers to set choice. NameServers() - // getter for Fqdn to set choice. - Fqdn() // getter for Sztp to set choice. Sztp() + // getter for VendorInformation to set choice. + VendorInformation() + // getter for Fqdn to set choice. + Fqdn() + // getter for BootfileUrl to set choice. + BootfileUrl() // 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,19 +322,19 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Choice() Dhcpv6ClientOptionsOption return Dhcpv6ClientOptionsOptionsRequestChoiceEnum(obj.obj.Choice.Enum().String()) } -// 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 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 Fqdn to set choice @@ -342,9 +342,9 @@ func (obj *dhcpv6ClientOptionsOptionsRequest) Fqdn() { obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.FQDN) } -// getter for Sztp to set choice -func (obj *dhcpv6ClientOptionsOptionsRequest) Sztp() { - obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.SZTP) +// getter for BootfileUrl to set choice +func (obj *dhcpv6ClientOptionsOptionsRequest) BootfileUrl() { + obj.setChoice(Dhcpv6ClientOptionsOptionsRequestChoice.BOOTFILE_URL) } // 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 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/gosnappi.go b/gosnappi/gosnappi.go index 546bd80a..c23961cc 100644 --- a/gosnappi/gosnappi.go +++ b/gosnappi/gosnappi.go @@ -251,7 +251,7 @@ type Api interface { func (api *gosnappiApi) GetLocalVersion() Version { if api.versionMeta.localVersion == nil { - api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.12.0").SetSdkVersion("1.12.0") + api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.12.0").SetSdkVersion("1.12.1") } return api.versionMeta.localVersion diff --git a/gosnappi/metrics_response.go b/gosnappi/metrics_response.go index 24004d35..179b9416 100644 --- a/gosnappi/metrics_response.go +++ b/gosnappi/metrics_response.go @@ -302,14 +302,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 Dhcpv4Client to set choice. - Dhcpv4Client() // getter for Dhcpv4Server to set choice. Dhcpv4Server() + // getter for Dhcpv4Client to set choice. + Dhcpv4Client() + // getter for Dhcpv6Server to set choice. + Dhcpv6Server() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse PortMetrics() MetricsResponsePortMetricIter // FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse @@ -376,24 +376,24 @@ 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 +func (obj *metricsResponse) Dhcpv4Server() { + obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) +} + // getter for Dhcpv4Client to set choice func (obj *metricsResponse) Dhcpv4Client() { obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) } -// getter for Dhcpv4Server to set choice -func (obj *metricsResponse) Dhcpv4Server() { - obj.setChoice(MetricsResponseChoice.DHCPV4_SERVER) +// getter for Dhcpv6Server to set choice +func (obj *metricsResponse) Dhcpv6Server() { + obj.setChoice(MetricsResponseChoice.DHCPV6_SERVER) } // description is TBD diff --git a/requirements.txt b/requirements.txt index f55a2293..181708c6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary -grpcio-tools~=1.59.0 ; python_version > '3.6' -grpcio~=1.44.0 ; python_version <= '3.6' -grpcio~=1.59.0 ; python_version > '3.6' -grpcio-tools~=1.44.0 ; python_version <= '3.6' -PyYAML -requests protobuf~=4.24.4 ; python_version > '3.6' protobuf~=3.15.0 ; python_version <= '3.6' +requests +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' +grpcio-tools~=1.59.0 ; python_version > '3.6' +PyYAML urllib3 semantic_version diff --git a/snappi/snappi.py b/snappi/snappi.py index 7fc17c27..b2485419 100644 --- a/snappi/snappi.py +++ b/snappi/snappi.py @@ -149145,7 +149145,7 @@ class Api(object): def __init__(self, **kwargs): self._version_meta = self.version() self._version_meta.api_spec_version = "1.12.0" - self._version_meta.sdk_version = "1.12.0" + self._version_meta.sdk_version = "1.12.1" self._version_check = kwargs.get("version_check") if self._version_check is None: self._version_check = False