From dac5b6bcfa709e548f7ae1ed6dea7ffce476c99c Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Fri, 22 Sep 2023 15:06:15 +0530 Subject: [PATCH 1/2] v0.12.6 --- version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.py b/version.py index 96cbc836..06d653b4 100644 --- a/version.py +++ b/version.py @@ -2,8 +2,8 @@ class Version: - models_version = "0.12.4" - version = "0.12.5" + models_version = "0.12.5" + version = "0.12.6" package_name = "snappi" protobuf_name = "otg" go_package_name = "gosnappi" From d96df24f370569114161826f34c78921f3904113 Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Fri, 22 Sep 2023 09:39:15 +0000 Subject: [PATCH 2/2] Update auto generated go snappi --- gosnappi/go.mod | 2 +- gosnappi/go.sum | 4 ++-- gosnappi/gosnappi.go | 12 ++++++------ gosnappi/otg/otg.pb.go | 8 ++++---- gosnappi/otg/otg.proto | 8 ++++---- requirements.txt | 12 ++++++------ snappi/docs/openapi.yaml | 8 ++++---- snappi/snappi.py | 16 ++++++++-------- 8 files changed, 35 insertions(+), 35 deletions(-) diff --git a/gosnappi/go.mod b/gosnappi/go.mod index 788ebd8a..4305503b 100644 --- a/gosnappi/go.mod +++ b/gosnappi/go.mod @@ -7,6 +7,6 @@ require ( github.com/ghodss/yaml v1.0.0 github.com/gorilla/mux v1.8.0 github.com/stretchr/testify v1.8.4 - google.golang.org/grpc v1.58.1 + google.golang.org/grpc v1.58.2 google.golang.org/protobuf v1.31.0 ) diff --git a/gosnappi/go.sum b/gosnappi/go.sum index 182b2635..57163a67 100644 --- a/gosnappi/go.sum +++ b/gosnappi/go.sum @@ -1665,8 +1665,8 @@ google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwS google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= -google.golang.org/grpc v1.58.1 h1:OL+Vz23DTtrrldqHK49FUOPHyY75rvFqJfXC84NYW58= -google.golang.org/grpc v1.58.1/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/grpc v1.58.2 h1:SXUpjxeVF3FKrTYQI4f4KvbGD5u2xccdYdurwowix5I= +google.golang.org/grpc v1.58.2/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/gosnappi/gosnappi.go b/gosnappi/gosnappi.go index 1fabf9b9..a3d58acc 100644 --- a/gosnappi/gosnappi.go +++ b/gosnappi/gosnappi.go @@ -1,4 +1,4 @@ -/* Open Traffic Generator API 0.12.4 +/* Open Traffic Generator API 0.12.5 * Open Traffic Generator API defines a model-driven, vendor-neutral and standard * interface for emulating layer 2-7 network devices and generating test traffic. * @@ -309,7 +309,7 @@ func (api *gosnappiApi) NewGetVersionResponse() GetVersionResponse { func (api *gosnappiApi) GetLocalVersion() Version { if api.versionMeta.localVersion == nil { - api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("0.12.4").SetSdkVersion("0.12.5") + api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("0.12.5").SetSdkVersion("0.12.6") } return api.versionMeta.localVersion @@ -97021,12 +97021,12 @@ func (obj *patternFlowVlanTpid) SetChoice(value PatternFlowVlanTpidChoiceEnum) P obj.obj.Value = nil if value == PatternFlowVlanTpidChoice.VALUE { - defaultValue := uint32(33024) + defaultValue := uint32(65535) obj.obj.Value = &defaultValue } if value == PatternFlowVlanTpidChoice.VALUES { - defaultValue := []uint32{33024} + defaultValue := []uint32{65535} obj.obj.Values = defaultValue } @@ -97071,7 +97071,7 @@ func (obj *patternFlowVlanTpid) SetValue(value uint32) PatternFlowVlanTpid { // Values returns a []uint32 func (obj *patternFlowVlanTpid) Values() []uint32 { if obj.obj.Values == nil { - obj.SetValues([]uint32{33024}) + obj.SetValues([]uint32{65535}) } return obj.obj.Values } @@ -187748,7 +187748,7 @@ func (obj *patternFlowVlanTpidCounter) validateObj(vObj *validation, set_default func (obj *patternFlowVlanTpidCounter) setDefault() { if obj.obj.Start == nil { - obj.SetStart(33024) + obj.SetStart(65535) } if obj.obj.Step == nil { obj.SetStep(1) diff --git a/gosnappi/otg/otg.pb.go b/gosnappi/otg/otg.pb.go index 9162ff3a..54c62f66 100644 --- a/gosnappi/otg/otg.pb.go +++ b/gosnappi/otg/otg.pb.go @@ -1,4 +1,4 @@ -// Open Traffic Generator API 0.12.4 +// Open Traffic Generator API 0.12.5 // Open Traffic Generator API defines a model-driven, vendor-neutral and standard // interface for emulating layer 2-7 network devices and generating test traffic. // @@ -47683,7 +47683,7 @@ type PatternFlowVlanTpidCounter struct { unknownFields protoimpl.UnknownFields // Description missing in models - // default = 33024 + // default = 65535 Start *uint32 `protobuf:"varint,1,opt,name=start,proto3,oneof" json:"start,omitempty"` // Description missing in models // default = 1 @@ -47830,10 +47830,10 @@ type PatternFlowVlanTpid struct { // default = Choice.Enum.value Choice *PatternFlowVlanTpid_Choice_Enum `protobuf:"varint,1,opt,name=choice,proto3,enum=otg.PatternFlowVlanTpid_Choice_Enum,oneof" json:"choice,omitempty"` // Description missing in models - // default = 33024 + // default = 65535 Value *uint32 `protobuf:"varint,2,opt,name=value,proto3,oneof" json:"value,omitempty"` // Description missing in models - // default = [33024] + // default = [65535] Values []uint32 `protobuf:"varint,3,rep,packed,name=values,proto3" json:"values,omitempty"` // Description missing in models Increment *PatternFlowVlanTpidCounter `protobuf:"bytes,5,opt,name=increment,proto3,oneof" json:"increment,omitempty"` diff --git a/gosnappi/otg/otg.proto b/gosnappi/otg/otg.proto index c6a4fcf6..4fe971a5 100644 --- a/gosnappi/otg/otg.proto +++ b/gosnappi/otg/otg.proto @@ -1,4 +1,4 @@ -/* Open Traffic Generator API 0.12.4 +/* Open Traffic Generator API 0.12.5 * Open Traffic Generator API defines a model-driven, vendor-neutral and standard * interface for emulating layer 2-7 network devices and generating test traffic. * @@ -10229,7 +10229,7 @@ message PatternFlowVlanId { message PatternFlowVlanTpidCounter { // Description missing in models - // default = 33024 + // default = 65535 optional uint32 start = 1; // Description missing in models @@ -10278,11 +10278,11 @@ message PatternFlowVlanTpid { optional Choice.Enum choice = 1; // Description missing in models - // default = 33024 + // default = 65535 optional uint32 value = 2; // Description missing in models - // default = [33024] + // default = [65535] repeated uint32 values = 3; // Description missing in models diff --git a/requirements.txt b/requirements.txt index 40418436..2621e4fd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,11 +1,11 @@ --prefer-binary -grpcio~=1.35.0 ; python_version <= '3.6' -grpcio-tools~=1.54.2 ; python_version > '3.6' -grpcio-tools~=1.35.0 ; python_version <= '3.6' -grpcio~=1.54.2 ; python_version > '3.6' +protobuf~=4.23.3 ; python_version > '3.6' +protobuf~=3.15.0 ; python_version <= '3.6' PyYAML requests -protobuf~=3.15.0 ; python_version <= '3.6' -protobuf~=4.23.3 ; python_version > '3.6' +grpcio~=1.54.2 ; python_version > '3.6' +grpcio-tools~=1.54.2 ; python_version > '3.6' +grpcio~=1.35.0 ; python_version <= '3.6' +grpcio-tools~=1.35.0 ; python_version <= '3.6' urllib3 semantic_version diff --git a/snappi/docs/openapi.yaml b/snappi/docs/openapi.yaml index 87ee3bab..aa537a5b 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: 0.12.4 + version: 0.12.5 contact: url: https://github.com/open-traffic-generator/models license: @@ -14135,7 +14135,7 @@ components: start: type: integer x-field-uid: 1 - default: 33024 + default: 65535 format: uint32 maximum: 65535 step: @@ -14212,7 +14212,7 @@ components: value: type: integer x-field-uid: 2 - default: 33024 + default: 65535 format: uint32 maximum: 65535 values: @@ -14223,7 +14223,7 @@ components: maximum: 65535 x-field-uid: 3 default: - - 33024 + - 65535 increment: $ref: '#/components/schemas/Pattern.Flow.Vlan.Tpid.Counter' x-field-uid: 5 diff --git a/snappi/snappi.py b/snappi/snappi.py index 39384624..0d9bc38b 100644 --- a/snappi/snappi.py +++ b/snappi/snappi.py @@ -1,4 +1,4 @@ -# Open Traffic Generator API 0.12.4 +# Open Traffic Generator API 0.12.5 # License: MIT import importlib @@ -30038,8 +30038,8 @@ class PatternFlowVlanTpid(OpenApiObject): _DEFAULTS = { "choice": "value", - "value": 33024, - "values": [33024], + "value": 65535, + "values": [65535], } # type: Dict[str, Union(type)] X8100 = 33024 # @@ -30055,7 +30055,7 @@ class PatternFlowVlanTpid(OpenApiObject): _STATUS = {} # type: Dict[str, Union(type)] - def __init__(self, parent=None, choice=None, value=33024, values=[33024]): + def __init__(self, parent=None, choice=None, value=65535, values=[65535]): super(PatternFlowVlanTpid, self).__init__() self._parent = parent self._set_property("value", value) @@ -30201,7 +30201,7 @@ class PatternFlowVlanTpidCounter(OpenApiObject): _REQUIRED = () # type: tuple(str) _DEFAULTS = { - "start": 33024, + "start": 65535, "step": 1, "count": 1, } # type: Dict[str, Union(type)] @@ -30214,7 +30214,7 @@ class PatternFlowVlanTpidCounter(OpenApiObject): _STATUS = {} # type: Dict[str, Union(type)] - def __init__(self, parent=None, start=33024, step=1, count=1): + def __init__(self, parent=None, start=65535, step=1, count=1): super(PatternFlowVlanTpidCounter, self).__init__() self._parent = parent self._set_property("start", start) @@ -111234,8 +111234,8 @@ class Api(object): def __init__(self, **kwargs): self._version_meta = self.version() - self._version_meta.api_spec_version = "0.12.4" - self._version_meta.sdk_version = "0.12.5" + self._version_meta.api_spec_version = "0.12.5" + self._version_meta.sdk_version = "0.12.6" self._version_check = kwargs.get("version_check") if self._version_check is None: self._version_check = False