From 84cfc2f867371ccea4237ed8ba5f6ae72722cda4 Mon Sep 17 00:00:00 2001 From: Prasenjit Adhikary Date: Tue, 10 Dec 2024 22:57:02 +0000 Subject: [PATCH 1/7] add port timestamp field --- result/port.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/result/port.yaml b/result/port.yaml index 435a12a4..0fcb9dca 100644 --- a/result/port.yaml +++ b/result/port.yaml @@ -48,6 +48,8 @@ components: x-field-uid: 11 bytes_rx_rate: x-field-uid: 12 + last_link_state_change_time: + x-field-uid: 13 x-field-uid: 2 Port.Metric: type: object @@ -142,3 +144,8 @@ components: x-field-uid: 1 stopped: x-field-uid: 2 + last_link_state_change_time: + description: >- + The timestamp of the last link-state change event + type: string + x-field-uid: 14 From 75ced80ec28edc7178c1b09996699be9869c136b Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Wed, 11 Dec 2024 05:46:51 +0000 Subject: [PATCH 2/7] Update auto generated content --- artifacts/openapi.html | 4 ++-- artifacts/openapi.yaml | 8 ++++++++ artifacts/otg.proto | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/artifacts/openapi.html b/artifacts/openapi.html index 1332e8a7..0358ae1a 100644 --- a/artifacts/openapi.html +++ b/artifacts/openapi.html @@ -590,7 +590,7 @@
object (Ospfv2.Metrics.Request)

The request to retrieve OSPFv2 per Router metrics/statistics.

Responses

Request samples

Content type
application/json
{
  • "choice": "port",
  • "port": {
    },
  • "flow": {
    },
  • "bgpv4": {
    },
  • "bgpv6": {
    },
  • "isis": {
    },
  • "lag": {
    },
  • "lacp": {
    },
  • "lldp": {
    },
  • "rsvp": {
    },
  • "dhcpv4_client": {
    },
  • "dhcpv4_server": {
    },
  • "dhcpv6_client": {
    },
  • "dhcpv6_server": {
    },
  • "ospfv2": {
    }
}

Response samples

Content type
application/json
{
  • "choice": "port_metrics",
  • "port_metrics": [
    ],
  • "flow_metrics": [
    ],
  • "bgpv4_metrics": [
    ],
  • "bgpv6_metrics": [
    ],
  • "isis_metrics": [
    ],
  • "lag_metrics": [
    ],
  • "lacp_metrics": [
    ],
  • "lldp_metrics": [
    ],
  • "rsvp_metrics": [
    ],
  • "dhcpv4client_metrics": [
    ],
  • "dhcpv4server_metrics": [
    ],
  • "dhcpv6client_metrics": [
    ],
  • "dhcpv6server_metrics": [
    ],
  • "ospfv2_metrics": [
    ]
}

get_states

Request Body schema: application/json

Request to traffic generator for states of choice

+

Request samples

Content type
application/json
{
  • "choice": "port",
  • "port": {
    },
  • "flow": {
    },
  • "bgpv4": {
    },
  • "bgpv6": {
    },
  • "isis": {
    },
  • "lag": {
    },
  • "lacp": {
    },
  • "lldp": {
    },
  • "rsvp": {
    },
  • "dhcpv4_client": {
    },
  • "dhcpv4_server": {
    },
  • "dhcpv6_client": {
    },
  • "dhcpv6_server": {
    },
  • "ospfv2": {
    }
}

Response samples

Content type
application/json
{
  • "choice": "port_metrics",
  • "port_metrics": [
    ],
  • "flow_metrics": [
    ],
  • "bgpv4_metrics": [
    ],
  • "bgpv6_metrics": [
    ],
  • "isis_metrics": [
    ],
  • "lag_metrics": [
    ],
  • "lacp_metrics": [
    ],
  • "lldp_metrics": [
    ],
  • "rsvp_metrics": [
    ],
  • "dhcpv4client_metrics": [
    ],
  • "dhcpv4server_metrics": [
    ],
  • "dhcpv6client_metrics": [
    ],
  • "dhcpv6server_metrics": [
    ],
  • "ospfv2_metrics": [
    ]
}

get_states

Request Body schema: application/json

Request to traffic generator for states of choice

choice
string
Default: "ipv4_neighbors"
Enum: "ipv4_neighbors" "ipv6_neighbors" "bgp_prefixes" "isis_lsps" "lldp_neighbors" "rsvp_lsps" "dhcpv4_interfaces" "dhcpv4_leases" "dhcpv6_interfaces" "dhcpv6_leases" "ospfv2_lsas"
object (Neighborsv4.States.Request)

The request to retrieve IPv4 Neighbor state (ARP cache entries) of a network interface(s).

object (Neighborsv6.States.Request)

The request to retrieve IPv6 Neighbor state (NDISC cache entries) of a network interface(s).

object (BgpPrefix.State.Request)

The request to retrieve BGP peer prefix information.

@@ -616,7 +616,7 @@

Response samples

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