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 Jul 2, 2024
1 parent 2b32968 commit b72cd79
Show file tree
Hide file tree
Showing 8 changed files with 26,332 additions and 25,559 deletions.
503 changes: 457 additions & 46 deletions gosnappi/gosnappi.go

Large diffs are not rendered by default.

45,569 changes: 22,889 additions & 22,680 deletions gosnappi/otg/otg.pb.go

Large diffs are not rendered by default.

29 changes: 28 additions & 1 deletion gosnappi/otg/otg.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Open Traffic Generator API 1.5.1
/* Open Traffic Generator API 1.6.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 @@ -6907,6 +6907,7 @@ message FlowRouter {
// - /components/schemas/Rsvp.LspIpv4Interface.P2PIngressIpv4Lsp/properties/name
// - /components/schemas/Isis.V4RouteRange/properties/name
// - /components/schemas/Isis.V6RouteRange/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
repeated string tx_names = 2;
Expand All @@ -6923,6 +6924,7 @@ message FlowRouter {
// - /components/schemas/Rsvp.LspIpv4Interface.P2PEgressIpv4Lsp/properties/name
// - /components/schemas/Isis.V4RouteRange/properties/name
// - /components/schemas/Isis.V6RouteRange/properties/name
// - /components/schemas/Device.Dhcpv4client/properties/name
// - /components/schemas/Device.Dhcpv6client/properties/name
//
repeated string rx_names = 3;
Expand Down Expand Up @@ -7297,6 +7299,23 @@ message FlowIpv4Tos {
PatternFlowIpv4TosUnused unused = 6;
}

// The OTG implementation can provide a system generated, value for this property.
message FlowIpv4Auto {

message Choice {
enum Enum {
unspecified = 0;
dhcp = 1;
}
}
// The method to be used to provide the system generated value.
//
// The dhcp option populates the field based on the dynamic IPv4 address that has been
// assigned to the DHCPv4 client by a DHCPv4 server.
// required = true
optional Choice.Enum choice = 1;
}

// IPv6 packet header
message FlowIpv6 {

Expand Down Expand Up @@ -15260,6 +15279,7 @@ message PatternFlowIpv4Src {
unspecified = 0;
value = 2;
values = 3;
auto = 1;
increment = 4;
decrement = 5;
}
Expand All @@ -15286,6 +15306,9 @@ message PatternFlowIpv4Src {
// a corresponding header field for metrics per each applicable value. These would appear
// as tagged metrics in corresponding flow metrics.
repeated PatternFlowIpv4SrcMetricTag metric_tags = 7;

// Description missing in models
FlowIpv4Auto auto = 8;
}

// ipv4 counter pattern
Expand Down Expand Up @@ -15332,6 +15355,7 @@ message PatternFlowIpv4Dst {
unspecified = 0;
value = 2;
values = 3;
auto = 1;
increment = 4;
decrement = 5;
}
Expand All @@ -15358,6 +15382,9 @@ message PatternFlowIpv4Dst {
// a corresponding header field for metrics per each applicable value. These would appear
// as tagged metrics in corresponding flow metrics.
repeated PatternFlowIpv4DstMetricTag metric_tags = 7;

// Description missing in models
FlowIpv4Auto auto = 8;
}

// 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
grpcio-tools~=1.59.0 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
grpcio~=1.59.0 ; python_version > '3.6'
requests
PyYAML
protobuf~=4.24.4 ; python_version > '3.6'
grpcio~=1.35.0 ; python_version <= '3.6'
grpcio-tools~=1.59.0 ; python_version > '3.6'
grpcio~=1.59.0 ; python_version > '3.6'
grpcio-tools~=1.35.0 ; python_version <= '3.6'
protobuf~=3.15.0 ; python_version <= '3.6'
semantic_version
protobuf~=4.24.4 ; 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 @@ -439,6 +439,7 @@
from .snappi import PatternFlowIpv4SrcCounter
from .snappi import PatternFlowIpv4SrcMetricTag
from .snappi import PatternFlowIpv4SrcMetricTagIter
from .snappi import FlowIpv4Auto
from .snappi import PatternFlowIpv4Dst
from .snappi import PatternFlowIpv4DstCounter
from .snappi import PatternFlowIpv4DstMetricTag
Expand Down
37 changes: 36 additions & 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: 1.5.1
version: 1.6.2
contact:
url: https://github.com/open-traffic-generator/models
license:
Expand Down Expand Up @@ -9302,6 +9302,7 @@ components:
- /components/schemas/Rsvp.LspIpv4Interface.P2PIngressIpv4Lsp/properties/name
- /components/schemas/Isis.V4RouteRange/properties/name
- /components/schemas/Isis.V6RouteRange/properties/name
- /components/schemas/Device.Dhcpv4client/properties/name
- /components/schemas/Device.Dhcpv6client/properties/name
example:
- Eth 1
Expand All @@ -9325,6 +9326,7 @@ components:
- /components/schemas/Rsvp.LspIpv4Interface.P2PIngressIpv4Lsp/properties/name
- /components/schemas/Isis.V4RouteRange/properties/name
- /components/schemas/Isis.V6RouteRange/properties/name
- /components/schemas/Device.Dhcpv4client/properties/name
- /components/schemas/Device.Dhcpv6client/properties/name
rx_names:
type: array
Expand All @@ -9342,6 +9344,7 @@ components:
- /components/schemas/Rsvp.LspIpv4Interface.P2PEgressIpv4Lsp/properties/name
- /components/schemas/Isis.V4RouteRange/properties/name
- /components/schemas/Isis.V6RouteRange/properties/name
- /components/schemas/Device.Dhcpv4client/properties/name
- /components/schemas/Device.Dhcpv6client/properties/name
example:
- Eth 1
Expand All @@ -9365,6 +9368,7 @@ components:
- /components/schemas/Rsvp.LspIpv4Interface.P2PEgressIpv4Lsp/properties/name
- /components/schemas/Isis.V4RouteRange/properties/name
- /components/schemas/Isis.V6RouteRange/properties/name
- /components/schemas/Device.Dhcpv4client/properties/name
- /components/schemas/Device.Dhcpv6client/properties/name
Flow.Header:
description: |-
Expand Down Expand Up @@ -9822,6 +9826,25 @@ components:
unused:
x-field-uid: 6
$ref: '#/components/schemas/Pattern.Flow.Ipv4.Tos.Unused'
Flow.Ipv4.Auto:
description: |-
The OTG implementation can provide a system generated, value for this property.
type: object
required:
- choice
properties:
choice:
description: |-
The method to be used to provide the system generated value.

The dhcp option populates the field based on the dynamic IPv4 address that has been assigned to the DHCPv4 client by a DHCPv4 server.
type: string
x-enum:
dhcp:
x-field-uid: 1
x-field-uid: 1
enum:
- dhcp
Flow.Ipv6:
description: |-
IPv6 packet header
Expand Down Expand Up @@ -21042,6 +21065,8 @@ components:
x-field-uid: 2
values:
x-field-uid: 3
auto:
x-field-uid: 1
increment:
x-field-uid: 4
decrement:
Expand All @@ -21051,6 +21076,7 @@ components:
enum:
- value
- values
- auto
- increment
- decrement
value:
Expand Down Expand Up @@ -21079,6 +21105,9 @@ components:
items:
$ref: '#/components/schemas/Pattern.Flow.Ipv4.Src.MetricTag'
x-field-uid: 7
auto:
$ref: '#/components/schemas/Flow.Ipv4.Auto'
x-field-uid: 8
Pattern.Flow.Ipv4.Dst.Counter:
description: |-
ipv4 counter pattern
Expand Down Expand Up @@ -21141,6 +21170,8 @@ components:
x-field-uid: 2
values:
x-field-uid: 3
auto:
x-field-uid: 1
increment:
x-field-uid: 4
decrement:
Expand All @@ -21150,6 +21181,7 @@ components:
enum:
- value
- values
- auto
- increment
- decrement
value:
Expand Down Expand Up @@ -21178,6 +21210,9 @@ components:
items:
$ref: '#/components/schemas/Pattern.Flow.Ipv4.Dst.MetricTag'
x-field-uid: 7
auto:
$ref: '#/components/schemas/Flow.Ipv4.Auto'
x-field-uid: 8
Pattern.Flow.Ipv4Options.Custom.Type.CopiedFlag.Counter:
description: |-
integer counter pattern
Expand Down
5,632 changes: 2,819 additions & 2,813 deletions snappi/otg_pb2.py

Large diffs are not rendered by default.

Loading

0 comments on commit b72cd79

Please sign in to comment.