Provide the option of disabling/Enabling Shared/Isolated/L2 networks, #9162
Replies: 7 comments
-
@alexandremattioli can you comment |
Beta Was this translation helpful? Give feedback.
-
display or not-display, not enable/disable, right ? |
Beta Was this translation helpful? Give feedback.
-
yes @weizhouapache , to allow to undo the on-display flag, we must display it, so an exemption to the non-display directive must be defined to do that. A trivial solution is the non-display networks are visible to admins, but then again they would have to not see them during deploy... I think this is overcomplicated for what we are trying to achieve for the user. |
Beta Was this translation helpful? Give feedback.
-
yes |
Beta Was this translation helpful? Give feedback.
-
@kiranchavala I'm struggling to see the use case. |
Beta Was this translation helpful? Give feedback.
-
@alexandremattioli @DaanHoogland @weizhouapache From the Ui point of view As an admin user from the UI if I can disable "Display network" for a particular network. The admin user must also have the option to enable the "Display network" back. The bug related to the issue is Steps to reproduce the bug.
cmk > create network name=test networkofferingid=1f106372-654f-40ab-abe4-c0258e1b51f1 zoneid=412fd1ab-8341-4fef-9d94-c178fd816613
cmk> list networks name=test The output is displayed correctly
cmk >update network displaynetwork=false id=9ba79732-9e85-4f21-8af0-c930cece8010
cmk > list networks name=test No response
cmk > create network name=test2 networkofferingid=1f106372-654f-40ab-abe4-c0258e1b51f1 zoneid=412fd1ab-8341-4fef-9d94-c178fd816613
cmk > list networks name=test The api response displays that of test2 network which is incorrect
|
Beta Was this translation helpful? Give feedback.
-
@kiranchavala and others If I'm understanding it right I guess we are mixing listall functionality with displaynetwork functionality. Later admin can list such networks using API, passing the same network:
Also, Kiran there is no param IMO, list* apis should list all resources for root admins irrespective of the value of displaynetwork, displayvm, displayvolume fields but we have prevented that for all types of accounts for a long, bbf5a91 |
Beta Was this translation helpful? Give feedback.
-
ISSUE TYPE
Enhancement/Improvement Request /Bug
COMPONENT NAME
Component: API/ UI
CLOUDSTACK VERSION
Cloudstack version 4.18,
SUMMARY
Provide the option of disabling/Enabling Shared/Isolated/L2 networks,
Steps to reproduce the issue
Create a Shared network
Click on edit network
https://cloudstack.apache.org/api/apidocs-4.18/apis/updateNetwork.html
Bug part
https://cloudstack.apache.org/api/apidocs-4.18/apis/listNetworks.html
list networks filter=name,displaynetwork, listall=true
Expected behavior
It would be great, if we can add enable/disable network option or provide an option to disable the display network, in the UI
or show some sort of filter column in the Ui for the list network page.
Currently the admin user has update the database or execute the api call to display the network back again
Beta Was this translation helpful? Give feedback.
All reactions