CCI-MOC / hil

Hardware Isolation Layer, formerly Hardware as a Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User should be able to inquire about public networks offered by HIL

SahilTikale opened this issue · comments

Current Scenario:
HIL creates a network called "internet", and grants-access to all projects.
Now if a user wishes to know what networks it has access to, only a HIL administrator can tell him/her.
A user cannot find out themselves about the networks that are not owned by its project but have been granted-access to its project.

We need a call that lists all the networks that have been shared with its project.

hil project network list shared <project name>
output:

List of networks...
Shared with project <project name>

A regular user can do a GET /networks to see all public networks. Or GET /project/<project>/networks to see all networks that the project has access to. Looking at the code here, it only checks for access and not ownership. I think we had this discussion here earlier #934