Skip to content

Commit b7d0183

Browse files
committed
Add baremetal agent type list filtering
This change adds and ability to filter out the baremetal nodes in 'network agent list' command. Related-Story: 2008590 Related-Task: 41746 Related-Bug: #1658964 Change-Id: I01ffbd82662abbc1c2f56eb8f1e700f392bc063c Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
1 parent 31881c0 commit b7d0183

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)