From 3c26aa262933e60a4c25136b7df238eab314614d Mon Sep 17 00:00:00 2001 From: alakendu Date: Tue, 17 Dec 2024 21:06:57 +0530 Subject: [PATCH 01/17] Proposal to handle RoCEv2 speeed type --- config/config.yaml | 7 ++++++- device/device.yaml | 15 +++++++++++++++ layer1/layer1.yaml | 7 +++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/config/config.yaml b/config/config.yaml index 5a511ce4..cb16135d 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -74,4 +74,9 @@ components: x-field-uid: 1 protocol_options: $ref: '../device/device.yaml#/components/schemas/Protocol.Options' - x-field-uid: 2 \ No newline at end of file + x-field-uid: 2 + vendor_options: + type: array + items: + $ref: '../device/device.yaml#/components/schemas/Vendor.Options' + x-field-uid: 3 \ No newline at end of file diff --git a/device/device.yaml b/device/device.yaml index 6a79e2d7..d5410662 100644 --- a/device/device.yaml +++ b/device/device.yaml @@ -93,3 +93,18 @@ components: type: boolean default: true x-field-uid: 1 + Vendor.Options: + description: >- + Vendor specific key and value pair. + type: object + properties: + key: + description: >- + key secific to the vandor. + type: string + x-field-uid: 1 + value: + description: >- + Value secific to the vandor. + type: string + x-field-uid: 2 \ No newline at end of file diff --git a/layer1/layer1.yaml b/layer1/layer1.yaml index 359a260d..9a92a8a7 100644 --- a/layer1/layer1.yaml +++ b/layer1/layer1.yaml @@ -49,6 +49,13 @@ components: x-field-uid: 12 speed_800_gbps: x-field-uid: 13 + custom_speed: + x-field-uid: 14 + custom_speed: + description: >- + Vendor specific custom speed. + type: string + x-field-uid: 11 media: description: |- Set the type of media for test interface if supported. When no media From 5690681e7207c1868b305ff84cdfab84d33875ea Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Tue, 17 Dec 2024 15:40:13 +0000 Subject: [PATCH 02/17] Update auto generated content --- artifacts/openapi.html | 6 +++--- artifacts/openapi.yaml | 27 +++++++++++++++++++++++++++ artifacts/otg.proto | 17 +++++++++++++++++ 3 files changed, 47 insertions(+), 3 deletions(-) diff --git a/artifacts/openapi.html b/artifacts/openapi.html index 7309b59e..ed234278 100644 --- a/artifacts/openapi.html +++ b/artifacts/openapi.html @@ -554,9 +554,9 @@

Responses

Request samples

Content type
application/json
{
  • "ports": [
    ],
  • "lags": [
    ],
  • "layer1": [
    ],
  • "captures": [
    ],
  • "devices": [
    ],
  • "flows": [
    ],
  • "events": {
    },
  • "options": {
    },
  • "lldp": [
    ]
}

Response samples

Content type
application/json
{
  • "warnings": [
    ]
}

get_config

Responses

Request samples

Content type
application/json
{
  • "ports": [
    ],
  • "lags": [
    ],
  • "layer1": [
    ],
  • "captures": [
    ],
  • "devices": [
    ],
  • "flows": [
    ],
  • "events": {
    },
  • "options": {
    },
  • "lldp": [
    ]
}

Response samples

Content type
application/json
{
  • "warnings": [
    ]
}

get_config

Responses

Response samples

Content type
application/json
{
  • "ports": [
    ],
  • "lags": [
    ],
  • "layer1": [
    ],
  • "captures": [
    ],
  • "devices": [
    ],
  • "flows": [
    ],
  • "events": {
    },
  • "options": {
    },
  • "lldp": [
    ]
}

update_config

Updates specific attributes of resources configured on the traffic generator. The fetched configuration shall reflect the updates applied successfully. +

Response samples

Content type
application/json
{
  • "ports": [
    ],
  • "lags": [
    ],
  • "layer1": [
    ],
  • "captures": [
    ],
  • "devices": [
    ],
  • "flows": [
    ],
  • "events": {
    },
  • "options": {
    },
  • "lldp": [
    ]
}

update_config

Updates specific attributes of resources configured on the traffic generator. The fetched configuration shall reflect the updates applied successfully. The Response.Warnings in the Success response is available for implementers to disclose additional information about a state change including any implicit changes that are outside the scope of the state change.

Request Body schema: application/json
choice
string
Value: "flows"
object (Flows.Update)

A container of flows with associated properties to be updated without affecting the flows current transmit state.

Responses

Response samples

Content type
application/json
{
  • "api_spec_version": "",
  • "sdk_version": "",
  • "app_version": ""
}