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 Jan 17, 2024
1 parent 94620c0 commit 7ba9c6b
Show file tree
Hide file tree
Showing 8 changed files with 19,959 additions and 19,191 deletions.
472 changes: 440 additions & 32 deletions gosnappi/gosnappi.go

Large diffs are not rendered by default.

34,044 changes: 17,123 additions & 16,921 deletions gosnappi/otg/otg.pb.go

Large diffs are not rendered by default.

33 changes: 27 additions & 6 deletions gosnappi/otg/otg.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 0.13.6
/* Open Traffic Generator API 0.13.7
* 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 @@ -6227,10 +6227,8 @@ message FlowSnmpv2cVariableBindingValue {
// Description missing in models
PatternFlowSnmpv2cVariableBindingValueIntegerValue integer_value = 2;

// It contains the hex bytes of the value to be sent. As of now it is restricted to
// 5000 bytes.
// default = string
optional string string_value = 3;
// Description missing in models
FlowSnmpv2cVariableBindingStringValue string_value = 3;

// The Object Identifier points to a particular parameter in the SNMP agent.
// - Encoding of this field follows RFC2578(section 3.5) and ASN.1 X.690(section 8.1.3.6)
Expand Down Expand Up @@ -6271,7 +6269,7 @@ message FlowSnmpv2cVariableBindingValue {
PatternFlowSnmpv2cVariableBindingValueTimeticksValue timeticks_value = 7;

// It contains the hex bytes of the value to be sent. As of now it is restricted to
// 5000 bytes.
// 10000 bytes.
// default = 00
optional string arbitrary_value = 8;

Expand All @@ -6282,6 +6280,29 @@ message FlowSnmpv2cVariableBindingValue {
PatternFlowSnmpv2cVariableBindingValueUnsignedIntegerValue unsigned_integer_value = 10;
}

// It contains the raw/ascii string value to be sent.
message FlowSnmpv2cVariableBindingStringValue {

message Choice {
enum Enum {
unspecified = 0;
ascii = 1;
raw = 2;
}
}
// Description missing in models
// default = Choice.Enum.ascii
optional Choice.Enum choice = 1;

// It contains the ASCII string to be sent. As of now it is restricted to 10000 bytes.
// default = ascii
optional string ascii = 2;

// It contains the hex string to be sent. As of now it is restricted to 10000 bytes.
// default = 00
optional string raw = 3;
}

// The frame size which overrides the total length of the packet
message FlowSize {

Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio~=1.35.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'
PyYAML
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'
requests
semantic_version
PyYAML
urllib3
semantic_version
1 change: 1 addition & 0 deletions snappi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@
from .snappi import FlowSnmpv2cVariableBindingValue
from .snappi import PatternFlowSnmpv2cVariableBindingValueIntegerValue
from .snappi import PatternFlowSnmpv2cVariableBindingValueIntegerValueCounter
from .snappi import FlowSnmpv2cVariableBindingStringValue
from .snappi import PatternFlowSnmpv2cVariableBindingValueIpAddressValue
from .snappi import PatternFlowSnmpv2cVariableBindingValueIpAddressValueCounter
from .snappi import PatternFlowSnmpv2cVariableBindingValueCounterValue
Expand Down
42 changes: 35 additions & 7 deletions 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.6
version: 0.13.7
contact:
url: https://github.com/open-traffic-generator/models
license:
Expand Down Expand Up @@ -8278,11 +8278,7 @@ components:
x-field-uid: 2
$ref: '#/components/schemas/Pattern.Flow.Snmpv2c.VariableBindingValue.IntegerValue'
string_value:
description: |-
It contains the hex bytes of the value to be sent. As of now it is restricted to 5000 bytes.
type: string
maxLength: 10000
default: string
$ref: '#/components/schemas/Flow.Snmpv2c.VariableBindingStringValue'
x-field-uid: 3
object_identifier_value:
x-field-uid: 4
Expand Down Expand Up @@ -8321,7 +8317,7 @@ components:
$ref: '#/components/schemas/Pattern.Flow.Snmpv2c.VariableBindingValue.TimeticksValue'
arbitrary_value:
description: |-
It contains the hex bytes of the value to be sent. As of now it is restricted to 5000 bytes.
It contains the hex bytes of the value to be sent. As of now it is restricted to 10000 bytes.
type: string
format: hex
maxLength: 10000
Expand All @@ -8333,6 +8329,38 @@ components:
unsigned_integer_value:
x-field-uid: 10
$ref: '#/components/schemas/Pattern.Flow.Snmpv2c.VariableBindingValue.UnsignedIntegerValue'
Flow.Snmpv2c.VariableBindingStringValue:
type: object
description: |-
It contains the raw/ascii string value to be sent.
properties:
choice:
type: string
default: ascii
x-field-uid: 1
x-enum:
ascii:
x-field-uid: 1
raw:
x-field-uid: 2
enum:
- ascii
- raw
ascii:
description: |-
It contains the ASCII string to be sent. As of now it is restricted to 10000 bytes.
type: string
maxLength: 10000
default: ascii
x-field-uid: 2
raw:
description: |-
It contains the hex string to be sent. As of now it is restricted to 10000 bytes.
type: string
format: hex
maxLength: 10000
default: '00'
x-field-uid: 3
Flow.Size:
description: |-
The frame size which overrides the total length of the packet
Expand Down
4,374 changes: 2,190 additions & 2,184 deletions snappi/otg_pb2.py

Large diffs are not rendered by default.

Loading

0 comments on commit 7ba9c6b

Please sign in to comment.