From 568d9f6f361873b58f817b1881cbbf3b31e1ec28 Mon Sep 17 00:00:00 2001 From: indraniBh Date: Wed, 22 May 2024 11:20:50 +0530 Subject: [PATCH 1/5] Added fcs --- flow/packet-headers/ethernet.yaml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/flow/packet-headers/ethernet.yaml b/flow/packet-headers/ethernet.yaml index 46382b3e..54152e29 100644 --- a/flow/packet-headers/ethernet.yaml +++ b/flow/packet-headers/ethernet.yaml @@ -44,3 +44,36 @@ components: default: 0 features: [count, metric_tags] x-field-uid: 4 + fcs : + $ref: '#/components/schemas/Flow.Ethernet.FCS' + x-field-uid: 5 + Flow.Ethernet.FCS: + description: >- + The Frame Check Sequence (FCS) is a checksum computed by a CRC based upon + the address fields, Ethertype, and data to detect errors in transmission. + type: object + properties: + choice: + type: string + default: generated + x-enum: + generated: + x-field-uid: 1 + x-field-uid: 1 + generated: + $ref: '#/components/schemas/Flow.Ethernet.Generated' + x-field-uid: 2 + Flow.Ethernet.Generated: + description: >- + A system generated checksum value. + type: object + properties: + choice: + type: string + default: good + x-field-uid: 1 + x-enum: + good: + x-field-uid: 1 + bad: + x-field-uid: 2 From d0607ec418c89f75f5cbf062210b5d59d8f2101c Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Wed, 22 May 2024 05:53:05 +0000 Subject: [PATCH 2/5] Update auto generated content --- artifacts/openapi.html | 8 ++++---- artifacts/openapi.yaml | 37 +++++++++++++++++++++++++++++++++++++ artifacts/otg.proto | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 4 deletions(-) diff --git a/artifacts/openapi.html b/artifacts/openapi.html index 39f3d2da..cf09249a 100644 --- a/artifacts/openapi.html +++ b/artifacts/openapi.html @@ -554,15 +554,15 @@

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

Request samples

Content type
application/json
{
  • "choice": "flows",
  • "flows": {
    }
}

Response samples

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

Control

set_control_state

Sets the operational state of configured resources.

+

Request samples

Content type
application/json
{
  • "choice": "flows",
  • "flows": {
    }
}

Response samples

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

Control

set_control_state

Sets the operational state of configured resources.

Request Body schema: application/json
choice
required
string
Enum: "port" "protocol" "traffic"
object (State.Port)

States associated with configured ports.

object (State.Protocol)

States associated with protocols on configured resources.

object (State.Traffic)

States associated with configured flows

@@ -610,7 +610,7 @@

Response samples

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