Merge "Add baremetal agent type list filtering"

This commit is contained in:
Zuul
2022-12-15 17:45:33 +00:00
committed by Gerrit Code Review
2 changed files with 9 additions and 3 deletions

View File

@@ -168,11 +168,11 @@ class ListNetworkAgent(command.Lister):
metavar='<agent-type>', metavar='<agent-type>',
choices=["bgp", "dhcp", "open-vswitch", "linux-bridge", "ofa", choices=["bgp", "dhcp", "open-vswitch", "linux-bridge", "ofa",
"l3", "loadbalancer", "metering", "metadata", "macvtap", "l3", "loadbalancer", "metering", "metadata", "macvtap",
"nic"], "nic", "baremetal"],
help=_("List only agents with the specified agent type. " help=_("List only agents with the specified agent type. "
"The supported agent types are: bgp, dhcp, open-vswitch, " "The supported agent types are: bgp, dhcp, open-vswitch, "
"linux-bridge, ofa, l3, loadbalancer, metering, " "linux-bridge, ofa, l3, loadbalancer, metering, "
"metadata, macvtap, nic.") "metadata, macvtap, nic, baremetal.")
) )
parser.add_argument( parser.add_argument(
'--host', '--host',
@@ -231,7 +231,8 @@ class ListNetworkAgent(command.Lister):
'metering': 'Metering agent', 'metering': 'Metering agent',
'metadata': 'Metadata agent', 'metadata': 'Metadata agent',
'macvtap': 'Macvtap agent', 'macvtap': 'Macvtap agent',
'nic': 'NIC Switch agent' 'nic': 'NIC Switch agent',
'baremetal': 'Baremetal Node'
} }
filters = {} filters = {}

View File

@@ -0,0 +1,5 @@
---
features:
- |
Add ``baremetal`` agent type to ``--agent-type`` option for
``network agent list`` command.