Skip to content

Commit

Permalink
Update auto generated go snappi
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 1, 2024
1 parent 40f8ed7 commit 9e28dd7
Show file tree
Hide file tree
Showing 8 changed files with 421 additions and 21 deletions.
2 changes: 1 addition & 1 deletion gosnappi/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ require (
github.com/ghodss/yaml v1.0.0
github.com/gorilla/mux v1.8.1
github.com/stretchr/testify v1.8.4
google.golang.org/grpc v1.60.1
google.golang.org/grpc v1.61.0
google.golang.org/protobuf v1.32.0
)
416 changes: 408 additions & 8 deletions gosnappi/go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions gosnappi/gosnappi.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 0.13.7
/* Open Traffic Generator API 1.0.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.
*
Expand Down Expand Up @@ -250,7 +250,7 @@ type Api interface {

func (api *gosnappiApi) GetLocalVersion() Version {
if api.versionMeta.localVersion == nil {
api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("0.13.7").SetSdkVersion("0.13.7")
api.versionMeta.localVersion = NewVersion().SetApiSpecVersion("1.0.0").SetSdkVersion("1.0.0")
}

return api.versionMeta.localVersion
Expand Down
2 changes: 1 addition & 1 deletion gosnappi/otg/otg.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gosnappi/otg/otg.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 0.13.7
/* Open Traffic Generator API 1.0.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.
*
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
protobuf~=4.23.3 ; python_version > '3.6'
protobuf~=3.15.0 ; python_version <= '3.6'
grpcio-tools~=1.54.2 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
requests
protobuf~=3.15.0 ; python_version <= '3.6'
protobuf~=4.23.3 ; python_version > '3.6'
PyYAML
requests
urllib3
semantic_version
2 changes: 1 addition & 1 deletion snappi/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.13.7
version: 1.0.0
contact:
url: https://github.com/open-traffic-generator/models
license:
Expand Down
6 changes: 3 additions & 3 deletions snappi/snappi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Open Traffic Generator API 0.13.7
# Open Traffic Generator API 1.0.0
# License: MIT

import importlib
Expand Down Expand Up @@ -116947,8 +116947,8 @@ class Api(object):

def __init__(self, **kwargs):
self._version_meta = self.version()
self._version_meta.api_spec_version = "0.13.7"
self._version_meta.sdk_version = "0.13.7"
self._version_meta.api_spec_version = "1.0.0"
self._version_meta.sdk_version = "1.0.0"
self._version_check = kwargs.get("version_check")
if self._version_check is None:
self._version_check = False
Expand Down

0 comments on commit 9e28dd7

Please sign in to comment.