openapi: fix spec

This commit is contained in:
Eugene Burkov 2024-12-19 14:34:11 +03:00
parent 21945c6058
commit a398712ed1
1 changed files with 19 additions and 7 deletions

View File

@ -2501,9 +2501,11 @@
'description': 'Network interface info' 'description': 'Network interface info'
'required': 'required':
- 'flags' - 'flags'
- 'gateway_ip'
- 'hardware_address' - 'hardware_address'
- 'ipv4_addresses'
- 'ipv6_addresses'
- 'name' - 'name'
- 'mtu'
'properties': 'properties':
'flags': 'flags':
'type': 'string' 'type': 'string'
@ -2512,18 +2514,28 @@
the "|" character: "up", "broadcast", "loopback", "pointtopoint" and the "|" character: "up", "broadcast", "loopback", "pointtopoint" and
"multicast". "multicast".
'example': 'up|broadcast|multicast' 'example': 'up|broadcast|multicast'
'gateway_ip':
'type': 'string'
'description': 'The IP address of the gateway.'
'example': '192.0.2.0'
'hardware_address': 'hardware_address':
'type': 'string' 'type': 'string'
'example': '52:54:00:11:09:ba' 'example': '52:54:00:11:09:ba'
'ipv4_addresses':
'type': 'array'
'description': >
The addresses of the interface of v4 family.
'items':
'type': 'string'
'ipv6_addresses':
'type': 'array'
'description': >
The addresses of the interface of v6 family.
'items':
'type': 'string'
'name': 'name':
'type': 'string' 'type': 'string'
'example': 'eth0' 'example': 'eth0'
'ip_addresses':
'type': 'array'
'items':
'type': 'string'
'mtu':
'type': 'integer'
'AddressInfo': 'AddressInfo':
'type': 'object' 'type': 'object'
'description': 'Port information' 'description': 'Port information'