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 26, 2024
1 parent 401883e commit b0f7b0d
Show file tree
Hide file tree
Showing 10 changed files with 23,240 additions and 22,403 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.61.0
google.golang.org/grpc v1.62.0
google.golang.org/protobuf v1.32.0
)
143 changes: 134 additions & 9 deletions gosnappi/go.sum

Large diffs are not rendered by default.

531 changes: 434 additions & 97 deletions gosnappi/gosnappi.go

Large diffs are not rendered by default.

39,574 changes: 19,892 additions & 19,682 deletions gosnappi/otg/otg.pb.go

Large diffs are not rendered by default.

60 changes: 45 additions & 15 deletions gosnappi/otg/otg.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 1.0.1
/* Open Traffic Generator API 1.0.2
* 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 @@ -6358,8 +6358,9 @@ message FlowRSVPLength {
// default = Choice.Enum.auto
optional Choice.Enum choice = 1;

// OTG will provide a system generated value for this property. If OTG is unable to
// generate a value the default value must be used.
// The OTG implementation will provide a system generated value for this property.
// If the OTG implementation is unable to generate a value the default value must be
// used.
// default = 0
optional uint32 auto = 2;

Expand Down Expand Up @@ -6418,8 +6419,9 @@ message FlowRSVPObjectLength {
// default = Choice.Enum.auto
optional Choice.Enum choice = 1;

// OTG will provide a system generated value for this property. If OTG is unable to
// generate a value the default value must be used.
// The OTG implementation will provide a system generated value for this property.
// If the OTG implementation is unable to generate a value the default value must be
// used.
// default = 4
optional uint32 auto = 2;

Expand Down Expand Up @@ -6720,7 +6722,7 @@ message FlowRSVPPathExplicitRouteType1ASNumber {

// The Length contains the total length of the subobject in bytes,including L, Type
// and Length fields. The Length MUST be atleast 4, and MUST be a multiple of 4.
FlowRSVPExplicitRouteLength length = 2;
FlowRSVPExplicitRouteASNumberLength length = 2;

// Autonomous System number to be set in the ERO sub-object that this LSP should traverse
// through. This field is applicable only if the value of 'type' is set to 'as_number'.
Expand All @@ -6742,8 +6744,9 @@ message FlowRSVPExplicitRouteLength {
// default = Choice.Enum.auto
optional Choice.Enum choice = 1;

// OTG will provide a system generated value for this property. If OTG is unable to
// generate a value the default value must be used.
// The OTG implementation will provide a system generated value for this property.
// If the OTG implementation is unable to generate a value the default value must be
// used.
// default = 8
optional uint32 auto = 2;

Expand All @@ -6752,6 +6755,31 @@ message FlowRSVPExplicitRouteLength {
optional uint32 value = 3;
}

// Description missing in models
message FlowRSVPExplicitRouteASNumberLength {

message Choice {
enum Enum {
unspecified = 0;
auto = 1;
value = 2;
}
}
// auto or configured value.
// default = Choice.Enum.auto
optional Choice.Enum choice = 1;

// The OTG implementation will provide a system generated value for this property.
// If the OTG implementation is unable to generate a value the default value must be
// used.
// default = 4
optional uint32 auto = 2;

// Description missing in models
// default = 4
optional uint32 value = 3;
}

// C-Type is specific to a class num.
message FlowRSVPPathObjectsClassLabelRequest {

Expand Down Expand Up @@ -6859,23 +6887,23 @@ message FlowRSVPPathSessionAttributeLspTunnelRa {
// render the link unacceptable. The most significant byte in the hex-string is the
// farthest to the left in the byte sequence. Leading zero bytes in the configured
// value may be omitted for brevity.
// default = 0
// default = 00
optional string exclude_any = 1;

// A 32-bit vector representing a set of attribute filters associated with a tunnel
// any of which renders a link acceptable. A null set (all bits set to zero) automatically
// passes. The most significant byte in the hex-string is the farthest to the left
// in the byte sequence. Leading zero bytes in the configured value may be omitted
// for brevity.
// default = 0
// default = 00
optional string include_any = 2;

// A 32-bit vector representing a set of attribute filters associated with a tunnel
// all of which must be present for a link to be acceptable. A null set (all bits set
// to zero) automatically passes. The most significant byte in the hex-string is the
// farthest to the left in the byte sequence. Leading zero bytes in the configured
// value may be omitted for brevity.
// default = 0
// default = 00
optional string include_all = 3;

// The priority of the session with respect to taking resources,in the range of 0 to
Expand Down Expand Up @@ -6931,8 +6959,9 @@ message FlowRSVPSessionAttributeNameLength {
// default = Choice.Enum.auto
optional Choice.Enum choice = 1;

// OTG will provide a system generated value for this property. If OTG is unable to
// generate a value the default value must be used.
// The OTG implementation will provide a system generated value for this property.
// If the OTG implementation is unable to generate a value the default value must be
// used.
// default = 0
optional uint32 auto = 2;

Expand Down Expand Up @@ -7216,8 +7245,9 @@ message FlowRSVPRouteRecordLength {
// default = Choice.Enum.auto
optional Choice.Enum choice = 1;

// OTG will provide a system generated value for this property. If OTG is unable to
// generate a value the default value must be used.
// The OTG implementation will provide a system generated value for this property.
// If the OTG implementation is unable to generate a value the default value must be
// used.
// default = 8
optional uint32 auto = 2;

Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--prefer-binary
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio-tools~=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
semantic_version
PyYAML
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-tools~=1.35.0 ; python_version <= '3.6'
urllib3
semantic_version
1 change: 1 addition & 0 deletions snappi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@
from .snappi import FlowRSVPPathExplicitRouteType1ASNumber
from .snappi import PatternFlowRSVPPathExplicitRouteType1ASNumberLBit
from .snappi import PatternFlowRSVPPathExplicitRouteType1ASNumberLBitCounter
from .snappi import FlowRSVPExplicitRouteASNumberLength
from .snappi import FlowRSVPType1ExplicitRouteSubobjectsIter
from .snappi import FlowRSVPPathObjectsClassLabelRequest
from .snappi import FlowRSVPPathObjectsLabelRequestCType
Expand Down
64 changes: 45 additions & 19 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: 1.0.1
version: 1.0.2
contact:
url: https://github.com/open-traffic-generator/models
license:
Expand Down Expand Up @@ -8432,10 +8432,9 @@ components:
- value
auto:
description: |-
OTG will provide a system generated value for this property. If OTG is unable to generate a value the default value must be used.
The OTG implementation will provide a system generated value for this property. If the OTG implementation is unable to generate a value the default value must be used.
type: integer
format: uint32
maximum: 65535
default: 0
x-field-uid: 2
value:
Expand Down Expand Up @@ -8498,11 +8497,9 @@ components:
- value
auto:
description: |-
OTG will provide a system generated value for this property. If OTG is unable to generate a value the default value must be used.
The OTG implementation will provide a system generated value for this property. If the OTG implementation is unable to generate a value the default value must be used.
type: integer
format: uint32
minimum: 4
maximum: 65535
default: 4
x-field-uid: 2
value:
Expand Down Expand Up @@ -8843,7 +8840,7 @@ components:
length:
description: |-
The Length contains the total length of the subobject in bytes,including L, Type and Length fields. The Length MUST be atleast 4, and MUST be a multiple of 4.
$ref: '#/components/schemas/Flow.RSVPExplicitRoute.Length'
$ref: '#/components/schemas/Flow.RSVPExplicitRouteASNumber.Length'
x-field-uid: 2
as_number:
description: |-
Expand Down Expand Up @@ -8871,19 +8868,50 @@ components:
- auto
- value
auto:
description: "OTG will provide a system generated value for this property.\
\ If OTG is unable to generate a value the default value must be used. "
description: "The OTG implementation will provide a system generated value\
\ for this property. If the OTG implementation is unable to generate\
\ a value the default value must be used. "
type: integer
format: uint32
maximum: 256
default: 8
x-field-uid: 2
value:
type: integer
format: uint32
maximum: 256
maximum: 255
default: 8
x-field-uid: 3
Flow.RSVPExplicitRouteASNumber.Length:
type: object
properties:
choice:
description: |-
auto or configured value.
type: string
default: auto
x-field-uid: 1
x-enum:
auto:
x-field-uid: 1
value:
x-field-uid: 2
enum:
- auto
- value
auto:
description: "The OTG implementation will provide a system generated value\
\ for this property. If the OTG implementation is unable to generate\
\ a value the default value must be used. "
type: integer
format: uint32
default: 4
x-field-uid: 2
value:
type: integer
format: uint32
maximum: 255
default: 4
x-field-uid: 3
Flow.RSVP.PathObjectsClassLabelRequest:
description: |-
C-Type is specific to a class num.
Expand Down Expand Up @@ -9013,7 +9041,7 @@ components:
\ "
type: string
format: hex
default: '0'
default: '00'
minLength: 0
maxLength: 8
x-field-uid: 1
Expand All @@ -9025,7 +9053,7 @@ components:
\ zero bytes in the configured value may be omitted for brevity. "
type: string
format: hex
default: '0'
default: '00'
minLength: 0
maxLength: 8
x-field-uid: 2
Expand All @@ -9038,7 +9066,7 @@ components:
\ "
type: string
format: hex
default: '0'
default: '00'
minLength: 0
maxLength: 8
x-field-uid: 3
Expand Down Expand Up @@ -9112,10 +9140,9 @@ components:
- value
auto:
description: |-
OTG will provide a system generated value for this property. If OTG is unable to generate a value the default value must be used.
The OTG implementation will provide a system generated value for this property. If the OTG implementation is unable to generate a value the default value must be used.
type: integer
format: uint32
maximum: 255
default: 0
x-field-uid: 2
value:
Expand Down Expand Up @@ -9439,16 +9466,15 @@ components:
- value
auto:
description: |-
OTG will provide a system generated value for this property. If OTG is unable to generate a value the default value must be used.
The OTG implementation will provide a system generated value for this property. If the OTG implementation is unable to generate a value the default value must be used.
type: integer
format: uint32
maximum: 256
default: 8
x-field-uid: 2
value:
type: integer
format: uint32
maximum: 256
maximum: 255
default: 8
x-field-uid: 3
Flow.RSVP.PathObjectsCustom:
Expand Down
5,102 changes: 2,554 additions & 2,548 deletions snappi/otg_pb2.py

Large diffs are not rendered by default.

Loading

0 comments on commit b0f7b0d

Please sign in to comment.