From e177fe7270d4f1bdab34ced976d9b95b344e2694 Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Fri, 24 May 2024 08:00:48 +0000 Subject: [PATCH] Update auto generated go snappi --- gosnappi/gosnappi.go | 88 ++++++++++++++++++++-------------------- gosnappi/otg/otg.pb.go | 2 +- gosnappi/otg/otg.proto | 2 +- requirements.txt | 4 +- snappi/docs/openapi.yaml | 2 +- snappi/snappi.py | 6 +-- 6 files changed, 52 insertions(+), 52 deletions(-) diff --git a/gosnappi/gosnappi.go b/gosnappi/gosnappi.go index b4831edc..6c85c514 100644 --- a/gosnappi/gosnappi.go +++ b/gosnappi/gosnappi.go @@ -1,4 +1,4 @@ -/* Open Traffic Generator API 1.5.0 +/* Open Traffic Generator API 1.5.1 * Open Traffic Generator API defines a model-driven, vendor-neutral and standard * interface for emulating layer 2-7 network devices and generating test traffic. * @@ -250,7 +250,7 @@ type Api interface { func (api *gosnappiApi) GetLocalVersion() Version { if api.versionMeta.localVersion == nil { - api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.5.0").SetSdkVersion("1.5.0") + api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.5.1").SetSdkVersion("1.5.1") } return api.versionMeta.localVersion @@ -23425,10 +23425,10 @@ type MetricsResponse interface { setChoice(value MetricsResponseChoiceEnum) MetricsResponse // HasChoice checks if Choice has been set in MetricsResponse HasChoice() bool - // getter for Dhcpv4Client to set choice. - Dhcpv4Client() // getter for Dhcpv4Server to set choice. Dhcpv4Server() + // getter for Dhcpv4Client to set choice. + Dhcpv4Client() // PortMetrics returns MetricsResponsePortMetricIterIter, set in MetricsResponse PortMetrics() MetricsResponsePortMetricIter // FlowMetrics returns MetricsResponseFlowMetricIterIter, set in MetricsResponse @@ -23487,16 +23487,16 @@ func (obj *metricsResponse) Choice() MetricsResponseChoiceEnum { return MetricsResponseChoiceEnum(obj.obj.Choice.Enum().String()) } -// 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 Dhcpv4Client to set choice +func (obj *metricsResponse) Dhcpv4Client() { + obj.setChoice(MetricsResponseChoice.DHCPV4_CLIENT) +} + // description is TBD // Choice returns a string func (obj *metricsResponse) HasChoice() bool { @@ -400220,16 +400220,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 NoLlgr to set choice. - NoLlgr() // getter for NoExportSubconfed to set choice. NoExportSubconfed() - // getter for NoAdvertised to set choice. - NoAdvertised() // getter for LlgrStale to set choice. LlgrStale() + // getter for NoLlgr to set choice. + NoLlgr() // CustomCommunity returns BgpAttributesCustomCommunity, set in BgpAttributesCommunity. // BgpAttributesCustomCommunity is user defined COMMUNITY attribute containing 2 byte AS and custom 2 byte value defined by the administrator of the domain. CustomCommunity() BgpAttributesCustomCommunity @@ -400264,31 +400264,31 @@ 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 NoExport to set choice func (obj *bgpAttributesCommunity) NoExport() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT) } -// getter for NoLlgr to set choice -func (obj *bgpAttributesCommunity) NoLlgr() { - obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) -} - // getter for NoExportSubconfed to set choice func (obj *bgpAttributesCommunity) NoExportSubconfed() { obj.setChoice(BgpAttributesCommunityChoice.NO_EXPORT_SUBCONFED) } -// 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 NoLlgr to set choice +func (obj *bgpAttributesCommunity) NoLlgr() { + obj.setChoice(BgpAttributesCommunityChoice.NO_LLGR) +} + func (obj *bgpAttributesCommunity) setChoice(value BgpAttributesCommunityChoiceEnum) BgpAttributesCommunity { intValue, ok := otg.BgpAttributesCommunity_Choice_Enum_value[string(value)] if !ok { @@ -422566,14 +422566,14 @@ type BgpAttributesSrPolicyExplicitNullPolicy interface { setChoice(value BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum) BgpAttributesSrPolicyExplicitNullPolicy // HasChoice checks if Choice has been set in BgpAttributesSrPolicyExplicitNullPolicy HasChoice() bool - // getter for PushIpv4 to set choice. - PushIpv4() - // getter for Unknown to set choice. - Unknown() // getter for DonotPush to set choice. DonotPush() // getter for PushIpv4AndIpv6 to set choice. PushIpv4AndIpv6() + // getter for Unknown to set choice. + Unknown() + // getter for PushIpv4 to set choice. + PushIpv4() // getter for PushIpv6 to set choice. PushIpv6() } @@ -422599,16 +422599,6 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Choice() BgpAttributesSrPoli return BgpAttributesSrPolicyExplicitNullPolicyChoiceEnum(obj.obj.Choice.Enum().String()) } -// getter for PushIpv4 to set choice -func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4() { - obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4) -} - -// getter for 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) @@ -422619,6 +422609,16 @@ func (obj *bgpAttributesSrPolicyExplicitNullPolicy) PushIpv4AndIpv6() { obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.PUSH_IPV4_AND_IPV6) } +// getter for Unknown to set choice +func (obj *bgpAttributesSrPolicyExplicitNullPolicy) Unknown() { + obj.setChoice(BgpAttributesSrPolicyExplicitNullPolicyChoice.UNKNOWN) +} + +// 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) @@ -428433,12 +428433,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 @@ -428458,11 +428458,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) @@ -428473,6 +428468,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/otg/otg.pb.go b/gosnappi/otg/otg.pb.go index 30d8489e..6bd38d07 100644 --- a/gosnappi/otg/otg.pb.go +++ b/gosnappi/otg/otg.pb.go @@ -1,4 +1,4 @@ -// Open Traffic Generator API 1.5.0 +// Open Traffic Generator API 1.5.1 // Open Traffic Generator API defines a model-driven, vendor-neutral and standard // interface for emulating layer 2-7 network devices and generating test traffic. // diff --git a/gosnappi/otg/otg.proto b/gosnappi/otg/otg.proto index 8d54b42f..43d1555c 100644 --- a/gosnappi/otg/otg.proto +++ b/gosnappi/otg/otg.proto @@ -1,4 +1,4 @@ -/* Open Traffic Generator API 1.5.0 +/* Open Traffic Generator API 1.5.1 * Open Traffic Generator API defines a model-driven, vendor-neutral and standard * interface for emulating layer 2-7 network devices and generating test traffic. * diff --git a/requirements.txt b/requirements.txt index 5d1e628f..082deb9b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary -requests PyYAML protobuf~=3.15.0 ; python_version <= '3.6' protobuf~=4.24.4 ; python_version > '3.6' +grpcio~=1.59.0 ; python_version > '3.6' grpcio-tools~=1.35.0 ; python_version <= '3.6' grpcio-tools~=1.59.0 ; python_version > '3.6' -grpcio~=1.59.0 ; python_version > '3.6' grpcio~=1.35.0 ; python_version <= '3.6' +requests urllib3 semantic_version diff --git a/snappi/docs/openapi.yaml b/snappi/docs/openapi.yaml index 86bb3dc9..9b138bac 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.5.0 + version: 1.5.1 contact: url: https://github.com/open-traffic-generator/models license: diff --git a/snappi/snappi.py b/snappi/snappi.py index 09d23c1c..071c25b0 100644 --- a/snappi/snappi.py +++ b/snappi/snappi.py @@ -1,4 +1,4 @@ -# Open Traffic Generator API 1.5.0 +# Open Traffic Generator API 1.5.1 # License: MIT import importlib @@ -141477,8 +141477,8 @@ class Api(object): def __init__(self, **kwargs): self._version_meta = self.version() - self._version_meta.api_spec_version = "1.5.0" - self._version_meta.sdk_version = "1.5.0" + self._version_meta.api_spec_version = "1.5.1" + self._version_meta.sdk_version = "1.5.1" self._version_check = kwargs.get("version_check") if self._version_check is None: self._version_check = False