Show classifier's name
In continuation of this patch [0] we are adding the functionality of showing the names of the existing classifiers when the classifier-list command is getting executed. [0]: https://review.openstack.org/#/c/532203/ Depends-On: Ia586061c578a99662d49ad284d1ff313c350e1f3 Change-Id: If6d76a66ab0d37662d1b28fe1786b6e0ffc8171d Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
This commit is contained in:
		| @@ -29,6 +29,18 @@ class ListFC(tackerV10.ListCommand): | |||||||
|     resource = _FC |     resource = _FC | ||||||
|     list_columns = ['id', 'status', 'nfp_id', 'chain_id'] |     list_columns = ['id', 'status', 'nfp_id', 'chain_id'] | ||||||
|  |  | ||||||
|  |     def extend_list(self, data, parsed_args): | ||||||
|  |         """Update the list_columns list. | ||||||
|  |  | ||||||
|  |         This method update the list_columns list by adding the | ||||||
|  |         'name' column in case the retrieved FC list from the tacker | ||||||
|  |         server side contains the names of the FCs. | ||||||
|  |         """ | ||||||
|  |         for item in data: | ||||||
|  |             if 'name' in item: | ||||||
|  |                 self.list_columns.insert(1, 'name') | ||||||
|  |                 break | ||||||
|  |  | ||||||
|  |  | ||||||
| class ShowFC(tackerV10.ShowCommand): | class ShowFC(tackerV10.ShowCommand): | ||||||
|     """Show information of a given FC.""" |     """Show information of a given FC.""" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dimitrios Markou
					Dimitrios Markou