Description
===========
While showing security services, we should be displaying the share networks even when there are no share networks attached. Only the detail API is returning such field.
Steps to reproduce
==================
You can reproduce this with manilaclient or calling the API itself. Steps to reproduce using manilaclient:
* Create a share network
* Create a security service
* Attach the share network to the security service
* Run manila security-service-show command specifying the name of the security service
Expected result
===============
The security service show command should display the share networks that the security service is attached to, as shown in [0].
Actual result
=============
Share networks are not being displayed, as shown in [1].
Environment
===========
1. Devstack on master branch (zed)
2. Does not need a specific backend to reproduce
Logs & Configs
==============
[0] https://paste.opendev.org/show/bTl4edBRpSH0ey1onjqA/
[1] https://paste.opendev.org/show/bGjdONp17ryfcUHz5PH1/
The code that appends share networks to the output is in this [2] part of the code. This bug is not reproducible while specifying the ID of the security service in manilaclient because when specifying the ID, we will use the show API, and when specifying the name, we will use the generic search that consists in a detail + filtering out the options.
[2] https:/ /github. com/openstack/ manila/ blob/master/ manila/ api/v1/ security_ service. py#L141