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 30, 2024
1 parent aea1cdd commit 9ad9ebc
Show file tree
Hide file tree
Showing 10 changed files with 18,714 additions and 20,050 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.

1,635 changes: 345 additions & 1,290 deletions gosnappi/gosnappi.go

Large diffs are not rendered by default.

31,045 changes: 15,341 additions & 15,704 deletions gosnappi/otg/otg.pb.go

Large diffs are not rendered by default.

75 changes: 12 additions & 63 deletions gosnappi/otg/otg.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6534,7 +6534,7 @@ message FlowRSVPPathObjectsClassExplicitRouteCType {
}

// Type1 Explicit Route has subobjects. Currently supported subobjects are IPv4 prefix
// and 4-byte AS number.
// and Autonomous system number.
message FlowRSVPPathExplicitRouteType1 {

// Description missing in models
Expand All @@ -6548,7 +6548,7 @@ message FlowRSVPType1ExplicitRouteSubobjects {
FlowRSVPType1ExplicitRouteSubobjectsType type = 1;
}

// Currently supported subobjects are IPv4 address(1) and 4-byte AS number(5).
// Currently supported subobjects are IPv4 address(1) and Autonomous system number(32).
message FlowRSVPType1ExplicitRouteSubobjectsType {

message Choice {
Expand All @@ -6566,7 +6566,7 @@ message FlowRSVPType1ExplicitRouteSubobjectsType {
FlowRSVPPathExplicitRouteType1Ipv4Prefix ipv4_prefix = 2;

// Description missing in models
FlowRSVPPathExplicitRouteType1FourByteASNumber four_byte_as_number = 3;
FlowRSVPPathExplicitRouteType1ASNumber four_byte_as_number = 3;
}

// Class = EXPLICIT_ROUTE, Type1 ROUTE_RECORD C-Type = 1 Subobject: IPv4 Prefix, C-Type:
Expand All @@ -6588,25 +6588,21 @@ message FlowRSVPPathExplicitRouteType1Ipv4Prefix {
optional uint32 prefix = 4;
}

// Class = EXPLICIT_ROUTE, Type1 ROUTE_RECORD C-Type = 1 Subobject: 4-byte AS number,
// C-Type: 32
message FlowRSVPPathExplicitRouteType1FourByteASNumber {
// Class = EXPLICIT_ROUTE, Type1 ROUTE_RECORD C-Type = 1 Subobject: Autonomous system
// number, C-Type: 32
message FlowRSVPPathExplicitRouteType1ASNumber {

// Description missing in models
PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBit l_bit = 1;
PatternFlowRSVPPathExplicitRouteType1ASNumberLBit l_bit = 1;

// 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;

// Description missing in models
PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReserved reserved = 3;

// 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'.
// Note that as per RFC3209, 4-byte AS encoding is not supported.
// default = 0
optional uint32 as_number = 4;
optional uint32 as_number = 3;
}

// Description missing in models
Expand Down Expand Up @@ -22370,7 +22366,7 @@ message PatternFlowRSVPPathExplicitRouteType1Ipv4PrefixIpv4Address {
}

// integer counter pattern
message PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBitCounter {
message PatternFlowRSVPPathExplicitRouteType1ASNumberLBitCounter {

// Description missing in models
// default = 0
Expand All @@ -22388,54 +22384,7 @@ message PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBitCounter {
// The L bit is an attribute of the subobject. The L bit is set if the subobject represents
// a loose hop in the explicit route. If the bit is not set, the subobject represents
// a strict hop in the explicit route.
message PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBit {

message Choice {
enum Enum {
unspecified = 0;
value = 2;
values = 3;
increment = 4;
decrement = 5;
}
}
// Description missing in models
// default = Choice.Enum.value
optional Choice.Enum choice = 1;

// Description missing in models
// default = 0
optional uint32 value = 2;

// Description missing in models
// default = [0]
repeated uint32 values = 3;

// Description missing in models
PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBitCounter increment = 5;

// Description missing in models
PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBitCounter decrement = 6;
}

// integer counter pattern
message PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReservedCounter {

// Description missing in models
// default = 0
optional uint32 start = 1;

// Description missing in models
// default = 1
optional uint32 step = 2;

// Description missing in models
// default = 1
optional uint32 count = 3;
}

// Reserved.
message PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReserved {
message PatternFlowRSVPPathExplicitRouteType1ASNumberLBit {

message Choice {
enum Enum {
Expand All @@ -22459,10 +22408,10 @@ message PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReserved {
repeated uint32 values = 3;

// Description missing in models
PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReservedCounter increment = 5;
PatternFlowRSVPPathExplicitRouteType1ASNumberLBitCounter increment = 5;

// Description missing in models
PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReservedCounter decrement = 6;
PatternFlowRSVPPathExplicitRouteType1ASNumberLBitCounter decrement = 6;
}

// integer counter pattern
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
PyYAML
protobuf~=3.15.0 ; python_version <= '3.6'
protobuf~=4.23.3 ; 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'
grpcio~=1.35.0 ; python_version <= '3.6'
protobuf~=4.23.3 ; python_version > '3.6'
protobuf~=3.15.0 ; python_version <= '3.6'
grpcio~=1.54.2 ; python_version > '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
requests
PyYAML
semantic_version
urllib3
semantic_version
8 changes: 3 additions & 5 deletions snappi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,11 +865,9 @@
from .snappi import FlowRSVPExplicitRouteLength
from .snappi import PatternFlowRSVPPathExplicitRouteType1Ipv4PrefixIpv4Address
from .snappi import PatternFlowRSVPPathExplicitRouteType1Ipv4PrefixIpv4AddressCounter
from .snappi import FlowRSVPPathExplicitRouteType1FourByteASNumber
from .snappi import PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBit
from .snappi import PatternFlowRSVPPathExplicitRouteType1FourByteASNumberLBitCounter
from .snappi import PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReserved
from .snappi import PatternFlowRSVPPathExplicitRouteType1FourByteASNumberReservedCounter
from .snappi import FlowRSVPPathExplicitRouteType1ASNumber
from .snappi import PatternFlowRSVPPathExplicitRouteType1ASNumberLBit
from .snappi import PatternFlowRSVPPathExplicitRouteType1ASNumberLBitCounter
from .snappi import FlowRSVPType1ExplicitRouteSubobjectsIter
from .snappi import FlowRSVPPathObjectsClassLabelRequest
from .snappi import FlowRSVPPathObjectsLabelRequestCType
Expand Down
94 changes: 12 additions & 82 deletions snappi/docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8662,7 +8662,7 @@ components:
x-field-uid: 2
Flow.RSVP.PathExplicitRouteType1:
description: |-
Type1 Explicit Route has subobjects. Currently supported subobjects are IPv4 prefix and 4-byte AS number.
Type1 Explicit Route has subobjects. Currently supported subobjects are IPv4 prefix and Autonomous system number.
type: object
properties:
subobjects:
Expand All @@ -8681,7 +8681,7 @@ components:
x-field-uid: 1
Flow.RSVP.Type1ExplicitRouteSubobjectsType:
description: |-
Currently supported subobjects are IPv4 address(1) and 4-byte AS number(5).
Currently supported subobjects are IPv4 address(1) and Autonomous system number(32).
type: object
properties:
choice:
Expand All @@ -8700,7 +8700,7 @@ components:
$ref: '#/components/schemas/Flow.RSVP.PathExplicitRouteType1Ipv4Prefix'
x-field-uid: 2
four_byte_as_number:
$ref: '#/components/schemas/Flow.RSVP.PathExplicitRouteType1FourByteASNumber'
$ref: '#/components/schemas/Flow.RSVP.PathExplicitRouteType1ASNumber'
x-field-uid: 3
Flow.RSVP.PathExplicitRouteType1Ipv4Prefix:
description: |-
Expand All @@ -8727,30 +8727,27 @@ components:
maximum: 32
default: 32
x-field-uid: 4
Flow.RSVP.PathExplicitRouteType1FourByteASNumber:
Flow.RSVP.PathExplicitRouteType1ASNumber:
description: |-
Class = EXPLICIT_ROUTE, Type1 ROUTE_RECORD C-Type = 1 Subobject: 4-byte AS number, C-Type: 32
Class = EXPLICIT_ROUTE, Type1 ROUTE_RECORD C-Type = 1 Subobject: Autonomous system number, C-Type: 32
type: object
properties:
l_bit:
x-field-uid: 1
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.LBit'
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1ASNumber.LBit'
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'
x-field-uid: 2
reserved:
x-field-uid: 3
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.Reserved'
as_number:
description: |-
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'. Note that as per RFC3209, 4-byte AS encoding is not supported.
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'.
type: integer
format: uint32
default: 0
maximum: 65535
x-field-uid: 4
x-field-uid: 3
Flow.RSVPExplicitRoute.Length:
type: object
properties:
Expand Down Expand Up @@ -31422,7 +31419,7 @@ components:
decrement:
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1Ipv4Prefix.Ipv4Address.Counter'
x-field-uid: 6
Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.LBit.Counter:
Pattern.Flow.RSVP.PathExplicitRouteType1ASNumber.LBit.Counter:
description: |-
integer counter pattern
type: object
Expand All @@ -31445,7 +31442,7 @@ components:
default: 1
format: uint32
maximum: 1
Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.LBit:
Pattern.Flow.RSVP.PathExplicitRouteType1ASNumber.LBit:
description: |-
The L bit is an attribute of the subobject. The L bit is set if the subobject represents a loose hop in the explicit route. If the bit is not set, the subobject represents a strict hop in the explicit route.
type: object
Expand Down Expand Up @@ -31484,77 +31481,10 @@ components:
default:
- 0
increment:
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.LBit.Counter'
x-field-uid: 5
decrement:
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.LBit.Counter'
x-field-uid: 6
Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.Reserved.Counter:
description: |-
integer counter pattern
type: object
properties:
start:
type: integer
x-field-uid: 1
default: 0
format: uint32
maximum: 255
step:
type: integer
x-field-uid: 2
default: 1
format: uint32
maximum: 255
count:
type: integer
x-field-uid: 3
default: 1
format: uint32
maximum: 255
Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.Reserved:
description: |-
Reserved.
type: object
properties:
choice:
type: string
x-enum:
value:
x-field-uid: 2
values:
x-field-uid: 3
increment:
x-field-uid: 4
decrement:
x-field-uid: 5
default: value
x-field-uid: 1
enum:
- value
- values
- increment
- decrement
value:
type: integer
x-field-uid: 2
default: 0
format: uint32
maximum: 255
values:
type: array
items:
type: integer
format: uint32
maximum: 255
x-field-uid: 3
default:
- 0
increment:
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.Reserved.Counter'
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1ASNumber.LBit.Counter'
x-field-uid: 5
decrement:
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1FourByteASNumber.Reserved.Counter'
$ref: '#/components/schemas/Pattern.Flow.RSVP.PathExplicitRouteType1ASNumber.LBit.Counter'
x-field-uid: 6
Pattern.Flow.RSVP.PathLabelRequestWithoutLabelRange.Reserved.Counter:
description: |-
Expand Down
5,120 changes: 2,556 additions & 2,564 deletions snappi/otg_pb2.py

Large diffs are not rendered by default.

Loading

0 comments on commit 9ad9ebc

Please sign in to comment.