Skip to content

Commit

Permalink
openapi: fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Dec 19, 2024
1 parent 21945c6 commit a398712
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2501,9 +2501,11 @@
'description': 'Network interface info'
'required':
- 'flags'
- 'gateway_ip'
- 'hardware_address'
- 'ipv4_addresses'
- 'ipv6_addresses'
- 'name'
- 'mtu'
'properties':
'flags':
'type': 'string'
Expand All @@ -2512,18 +2514,28 @@
the "|" character: "up", "broadcast", "loopback", "pointtopoint" and
"multicast".
'example': 'up|broadcast|multicast'
'gateway_ip':
'type': 'string'
'description': 'The IP address of the gateway.'
'example': '192.0.2.0'
'hardware_address':
'type': 'string'
'example': '52:54:00:11:09:ba'
'name':
'type': 'string'
'example': 'eth0'
'ip_addresses':
'ipv4_addresses':
'type': 'array'
'description': >
The addresses of the interface of v4 family.
'items':
'type': 'string'
'mtu':
'type': 'integer'
'ipv6_addresses':
'type': 'array'
'description': >
The addresses of the interface of v6 family.
'items':
'type': 'string'
'name':
'type': 'string'
'example': 'eth0'
'AddressInfo':
'type': 'object'
'description': 'Port information'
Expand Down

0 comments on commit a398712

Please sign in to comment.