From c57be21a22a6dced6d4129fd75c10ec210583b7e Mon Sep 17 00:00:00 2001 From: Biplab Mal Date: Tue, 16 Jan 2024 16:29:12 +0530 Subject: [PATCH] Support for SNMPv2C Packet Header (Data Plane Only) (#347) * basic packet header model for snmpv2 * bulkpdu added * review comments * bug fix * Update auto generated content * bug fix * Update auto generated content * signed field updated * signed field updated * Update auto generated content * signed field updated * Update auto generated content * review comments * Update auto generated content * open-api art branch updated * Update auto generated content * model updated * Update auto generated content * model updated * Update auto generated content * description added * Update auto generated content * review comments * Update auto generated content * review comments * Update auto generated content * Update auto generated content * Update auto generated content * descriptions updated * descriptions updated * descriptions updated * Update auto generated content * review comments * Update auto generated content * bug fix * Update auto generated content * Updating openapiart version to 0.3.8 * Update auto generated content * bug fix * bug fix * Update auto generated content * update openapiart branch * Update auto generated content * ipv4 support only * Update auto generated content * v0.13.5 * Update auto generated content * Update auto generated content --------- Co-authored-by: Github Actions Bot Co-authored-by: vhowdhur Co-authored-by: Ashutosh Kumar --- artifacts/openapi.html | 8 +- artifacts/openapi.yaml | 1112 ++++++++++++++++++++++++++++++ artifacts/otg.proto | 851 +++++++++++++++++++++++ flow/packet-headers/header.yaml | 5 + flow/packet-headers/snmpv2c.yaml | 343 +++++++++ requirements.txt | 2 +- 6 files changed, 2316 insertions(+), 5 deletions(-) create mode 100644 flow/packet-headers/snmpv2c.yaml diff --git a/artifacts/openapi.html b/artifacts/openapi.html index 6f785ba8..7dad389c 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

@@ -606,7 +606,7 @@

Response samples

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