From 5f32041d97de2e62c3b18309e80eeed23c8e3e6d Mon Sep 17 00:00:00 2001 From: Suryya Jana Date: Wed, 10 Jan 2024 16:50:27 +0530 Subject: [PATCH 1/6] ISIS Replay first Draft --- device/isis/isis.yaml | 7 +++++++ device/isis/tlvreplay.yaml | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 device/isis/tlvreplay.yaml diff --git a/device/isis/isis.yaml b/device/isis/isis.yaml index e1459464..50e26ef4 100644 --- a/device/isis/isis.yaml +++ b/device/isis/isis.yaml @@ -57,3 +57,10 @@ components: name: x-include: ../common/common.yaml#/components/schemas/Named.Object/properties/name x-field-uid: 9 + replay_tlvs: + description: >- + ISIS Tlvs of bytes to be inserted in ISIS Link State PDU that to be advertised by this ISIS Router. + type: array + items: + $ref: './tlvreplay.yaml#/components/schemas/Isis.TlvReplay' + x-field-uid: 10 \ No newline at end of file diff --git a/device/isis/tlvreplay.yaml b/device/isis/tlvreplay.yaml new file mode 100644 index 00000000..dc615823 --- /dev/null +++ b/device/isis/tlvreplay.yaml @@ -0,0 +1,17 @@ +components: + schemas: + Isis.TlvReplay: + description: >- + Specification ISIS Tlv Replay Bytes. + type: object + properties: + tlv_bytes: + description: >- + Tlv hex bytes consists of type of one byte, length of one byte and value of length bytes. Therefore the value can be maximum 255 bytes. + The string MUST contains sequence of valid hex bytes. In the imported byte stream, one byte is represented as string of 2 characters, for example 2 character string (0x)AB + represents value of a single byte. So the maximum length of this attribute is 512 (256 * 2 hex characters per byte) plus two, i.e 514. + type: string + pattern: '^[A-Fa-f0-9: ]+$' + minLength: 2 + maxLength: 514 + x-field-uid: 1 From 0051b61eed4522bb159452e6043e5fe9aa884f8b Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Wed, 10 Jan 2024 11:22:58 +0000 Subject: [PATCH 2/6] Update auto generated content --- artifacts/openapi.html | 6 +++--- artifacts/openapi.yaml | 20 ++++++++++++++++++++ artifacts/otg.proto | 16 ++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/artifacts/openapi.html b/artifacts/openapi.html index 4a12c3b0..5e43528e 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": ""
}