From c6c6eaa4a5d6cb743406ca45b62dc6217ae7e5f3 Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 5 Jan 2024 12:21:26 -0800 Subject: [PATCH] https://telecominfraproject.atlassian.net/browse/WIFI-13273 Signed-off-by: stephb9959 --- ols_samples/sample1.json | 85 ++++++++++++++++++++++++++++++++++++++++ openapi/owgw.yaml | 11 ++++++ 2 files changed, 96 insertions(+) create mode 100644 ols_samples/sample1.json diff --git a/ols_samples/sample1.json b/ols_samples/sample1.json new file mode 100644 index 00000000..7a81d088 --- /dev/null +++ b/ols_samples/sample1.json @@ -0,0 +1,85 @@ +{ + "ethernet": [ + { + "select-ports": [ + "Ethernet0", + "Ethernet1", + "Ethernet2", + "Ethernet3", + "Ethernet4", + "Ethernet5", + "Ethernet6", + "Ethernet7" + ], + "speed": 2500, + "duplex": "full", + "enabled": true, + "poe": { + "admin-mode": true, + "power-limit": 60000 + } + }, + { + "select-ports": [ + "Ethernet8", + "Ethernet9" + ], + "speed": 10000, + "duplex": "full", + "media": "sfp-forced-1000sfp" + } + ], + "interfaces": [ + { + "name": "VLAN1", + "vlan": { + "id": 1 + }, + "ipv4": { + "addressing": "dynamic" + }, + "ethernet": [ + { + "select-ports": [ + "Ethernet0", + "Ethernet1", + "Ethernet2", + "Ethernet3", + "Ethernet4", + "Ethernet5", + "Ethernet6", + "Ethernet7", + "Ethernet8", + "Ethernet9" + ], + "vlan-tag": "un-tagged" + } + ] + } + ], + "metrics": { + "dhcp-snooping": { + "filters": [ + "ack", + "discover", + "offer", + "request", + "solicit", + "reply", + "renew" + ] + }, + "health": { + "interval": 60 + }, + "statistics": { + "interval": 120, + "types": [] + } + }, + "unit": { + "leds-active": true, + "usage-threshold": 95 + }, + "uuid": 1678263900 +} \ No newline at end of file diff --git a/openapi/owgw.yaml b/openapi/owgw.yaml index 1cb87089..b23509e7 100644 --- a/openapi/owgw.yaml +++ b/openapi/owgw.yaml @@ -1663,6 +1663,17 @@ paths: type: integer default: 70 required: false + - in: query + description: return only devices matching a certain platform of AP or SWITCH + name: platform + schema: + type: string + enum: + - ALL + - AP + - SWITCH + required: false + default: ALL responses: 200: description: List devices