Skip to content

Commit d297f11

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add baremetal agent type list filtering"
2 parents db6909b + b7d0183 commit d297f11

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

openstackclient/network/v2/network_agent.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ def get_parser(self, prog_name):
168168
metavar='<agent-type>',
169169
choices=["bgp", "dhcp", "open-vswitch", "linux-bridge", "ofa",
170170
"l3", "loadbalancer", "metering", "metadata", "macvtap",
171-
"nic"],
171+
"nic", "baremetal"],
172172
help=_("List only agents with the specified agent type. "
173173
"The supported agent types are: bgp, dhcp, open-vswitch, "
174174
"linux-bridge, ofa, l3, loadbalancer, metering, "
175-
"metadata, macvtap, nic.")
175+
"metadata, macvtap, nic, baremetal.")
176176
)
177177
parser.add_argument(
178178
'--host',
@@ -231,7 +231,8 @@ def take_action(self, parsed_args):
231231
'metering': 'Metering agent',
232232
'metadata': 'Metadata agent',
233233
'macvtap': 'Macvtap agent',
234-
'nic': 'NIC Switch agent'
234+
'nic': 'NIC Switch agent',
235+
'baremetal': 'Baremetal Node'
235236
}
236237

237238
filters = {}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Add ``baremetal`` agent type to ``--agent-type`` option for
5+
``network agent list`` command.

0 commit comments

Comments
 (0)