Merge "[api-ref] Complete port name and shard documentation"
This commit is contained in:
commit
a367151914
@ -111,6 +111,9 @@ This method requires a Node UUID and the physical hardware address for the Port
|
|||||||
.. versionadded:: 1.53
|
.. versionadded:: 1.53
|
||||||
Added the ``is_smartnic`` request and response fields.
|
Added the ``is_smartnic`` request and response fields.
|
||||||
|
|
||||||
|
.. versionadded:: 1.88
|
||||||
|
Added the ``name`` field.
|
||||||
|
|
||||||
Normal response code: 201
|
Normal response code: 201
|
||||||
|
|
||||||
Request
|
Request
|
||||||
@ -121,6 +124,7 @@ Request
|
|||||||
- node_uuid: req_node_uuid
|
- node_uuid: req_node_uuid
|
||||||
- address: req_port_address
|
- address: req_port_address
|
||||||
- portgroup_uuid: req_portgroup_uuid
|
- portgroup_uuid: req_portgroup_uuid
|
||||||
|
- name: req_port_name
|
||||||
- local_link_connection: req_local_link_connection
|
- local_link_connection: req_local_link_connection
|
||||||
- pxe_enabled: req_pxe_enabled
|
- pxe_enabled: req_pxe_enabled
|
||||||
- physical_network: req_physical_network
|
- physical_network: req_physical_network
|
||||||
@ -142,6 +146,7 @@ Response
|
|||||||
- address: port_address
|
- address: port_address
|
||||||
- node_uuid: node_uuid
|
- node_uuid: node_uuid
|
||||||
- portgroup_uuid: portgroup_uuid
|
- portgroup_uuid: portgroup_uuid
|
||||||
|
- name: port_name
|
||||||
- local_link_connection: local_link_connection
|
- local_link_connection: local_link_connection
|
||||||
- pxe_enabled: pxe_enabled
|
- pxe_enabled: pxe_enabled
|
||||||
- physical_network: physical_network
|
- physical_network: physical_network
|
||||||
@ -182,6 +187,13 @@ Return a list of bare metal Ports, with detailed information.
|
|||||||
.. versionadded:: 1.53
|
.. versionadded:: 1.53
|
||||||
Added the ``is_smartnic`` response fields.
|
Added the ``is_smartnic`` response fields.
|
||||||
|
|
||||||
|
.. versionadded:: 1.82
|
||||||
|
Added the ability to filter ports based on the shard of the node they are
|
||||||
|
associated with.
|
||||||
|
|
||||||
|
.. versionadded:: 1.88
|
||||||
|
Added the ``name`` field.
|
||||||
|
|
||||||
Normal response code: 200
|
Normal response code: 200
|
||||||
|
|
||||||
Request
|
Request
|
||||||
@ -193,6 +205,7 @@ Request
|
|||||||
- node_uuid: r_port_node_uuid
|
- node_uuid: r_port_node_uuid
|
||||||
- portgroup: r_port_portgroup_ident
|
- portgroup: r_port_portgroup_ident
|
||||||
- address: r_port_address
|
- address: r_port_address
|
||||||
|
- shard: r_port_shard
|
||||||
- limit: limit
|
- limit: limit
|
||||||
- marker: marker
|
- marker: marker
|
||||||
- sort_dir: sort_dir
|
- sort_dir: sort_dir
|
||||||
@ -208,6 +221,7 @@ Response
|
|||||||
- address: port_address
|
- address: port_address
|
||||||
- node_uuid: node_uuid
|
- node_uuid: node_uuid
|
||||||
- portgroup_uuid: portgroup_uuid
|
- portgroup_uuid: portgroup_uuid
|
||||||
|
- name: port_name
|
||||||
- local_link_connection: local_link_connection
|
- local_link_connection: local_link_connection
|
||||||
- pxe_enabled: pxe_enabled
|
- pxe_enabled: pxe_enabled
|
||||||
- physical_network: physical_network
|
- physical_network: physical_network
|
||||||
@ -248,6 +262,9 @@ Show details for the given Port.
|
|||||||
.. versionadded:: 1.53
|
.. versionadded:: 1.53
|
||||||
Added the ``is_smartnic`` response fields.
|
Added the ``is_smartnic`` response fields.
|
||||||
|
|
||||||
|
.. versionadded:: 1.88
|
||||||
|
Added the ``name``
|
||||||
|
|
||||||
Normal response code: 200
|
Normal response code: 200
|
||||||
|
|
||||||
Request
|
Request
|
||||||
@ -267,6 +284,7 @@ Response
|
|||||||
- address: port_address
|
- address: port_address
|
||||||
- node_uuid: node_uuid
|
- node_uuid: node_uuid
|
||||||
- portgroup_uuid: portgroup_uuid
|
- portgroup_uuid: portgroup_uuid
|
||||||
|
- name: port_name
|
||||||
- local_link_connection: local_link_connection
|
- local_link_connection: local_link_connection
|
||||||
- pxe_enabled: pxe_enabled
|
- pxe_enabled: pxe_enabled
|
||||||
- physical_network: physical_network
|
- physical_network: physical_network
|
||||||
@ -302,6 +320,10 @@ Update a Port.
|
|||||||
.. versionadded:: 1.53
|
.. versionadded:: 1.53
|
||||||
Added the ``is_smartnic`` fields.
|
Added the ``is_smartnic`` fields.
|
||||||
|
|
||||||
|
.. versionadded:: 1.88
|
||||||
|
Added the ``name``
|
||||||
|
|
||||||
|
|
||||||
Normal response code: 200
|
Normal response code: 200
|
||||||
|
|
||||||
Request
|
Request
|
||||||
@ -328,6 +350,7 @@ Response
|
|||||||
- address: port_address
|
- address: port_address
|
||||||
- node_uuid: node_uuid
|
- node_uuid: node_uuid
|
||||||
- portgroup_uuid: portgroup_uuid
|
- portgroup_uuid: portgroup_uuid
|
||||||
|
- name: port_name
|
||||||
- local_link_connection: local_link_connection
|
- local_link_connection: local_link_connection
|
||||||
- pxe_enabled: pxe_enabled
|
- pxe_enabled: pxe_enabled
|
||||||
- physical_network: physical_network
|
- physical_network: physical_network
|
||||||
|
@ -106,7 +106,7 @@ node_ident:
|
|||||||
type: string
|
type: string
|
||||||
port_ident:
|
port_ident:
|
||||||
description: |
|
description: |
|
||||||
The UUID of the port.
|
The UUID or Name of the port.
|
||||||
in: path
|
in: path
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -1419,6 +1419,12 @@ port_address:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
port_name:
|
||||||
|
description: |
|
||||||
|
The name assigned to the network Port.
|
||||||
|
in: body
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
portgroup_address:
|
portgroup_address:
|
||||||
description: |
|
description: |
|
||||||
Physical hardware address of this Portgroup, typically the hardware
|
Physical hardware address of this Portgroup, typically the hardware
|
||||||
@ -1786,6 +1792,12 @@ req_port_address:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
req_port_name:
|
||||||
|
description: |
|
||||||
|
The name assigned to the network Port.
|
||||||
|
in: body
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
req_portgroup_address:
|
req_portgroup_address:
|
||||||
description: |
|
description: |
|
||||||
Physical hardware address of this Portgroup, typically the hardware
|
Physical hardware address of this Portgroup, typically the hardware
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
||||||
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
||||||
|
"name": "port1",
|
||||||
"address": "11:11:11:11:11:11",
|
"address": "11:11:11:11:11:11",
|
||||||
"is_smartnic": true,
|
"is_smartnic": true,
|
||||||
"local_link_connection": {
|
"local_link_connection": {
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
"switch_id": "0a:1b:2c:3d:4e:5f",
|
"switch_id": "0a:1b:2c:3d:4e:5f",
|
||||||
"switch_info": "switch1"
|
"switch_info": "switch1"
|
||||||
},
|
},
|
||||||
|
"name": "port1",
|
||||||
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
||||||
"physical_network": "physnet1",
|
"physical_network": "physnet1",
|
||||||
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
"switch_id": "0a:1b:2c:3d:4e:5f",
|
"switch_id": "0a:1b:2c:3d:4e:5f",
|
||||||
"switch_info": "switch1"
|
"switch_info": "switch1"
|
||||||
},
|
},
|
||||||
|
"name": "port1",
|
||||||
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
||||||
"physical_network": "physnet1",
|
"physical_network": "physnet1",
|
||||||
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
"switch_id": "0a:1b:2c:3d:4e:5f",
|
"switch_id": "0a:1b:2c:3d:4e:5f",
|
||||||
"switch_info": "switch1"
|
"switch_info": "switch1"
|
||||||
},
|
},
|
||||||
|
"name": "port1",
|
||||||
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
"node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d",
|
||||||
"physical_network": "physnet1",
|
"physical_network": "physnet1",
|
||||||
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
"portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a",
|
||||||
|
@ -111,7 +111,7 @@ def hide_fields_in_newer_versions(port):
|
|||||||
# if requested version is < 1.53, hide is_smartnic field.
|
# if requested version is < 1.53, hide is_smartnic field.
|
||||||
if not api_utils.allow_port_is_smartnic():
|
if not api_utils.allow_port_is_smartnic():
|
||||||
port.pop('is_smartnic', None)
|
port.pop('is_smartnic', None)
|
||||||
# if requested version is < 1.69, hide name field.
|
# if requested version is < 1.88, hide name field.
|
||||||
if not api_utils.allow_port_name():
|
if not api_utils.allow_port_name():
|
||||||
port.pop('name', None)
|
port.pop('name', None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user