Closed italovalcy closed 1 month ago
@italovalcy this is the API @congwang09 gave me http://aw-sdx-controller.renci.org:8081/SDX-Controller/ui/#/topology/get_topology. I am not sure how to use this API in achieving what is discussed above.
the topology object contains an attribute "name": "Ampath-OXP", is it something to do with that?
@italovalcy this is the API @congwang09 gave me http://aw-sdx-controller.renci.org:8081/SDX-Controller/ui/#/topology/get_topology. I am not sure how to use this API in achieving what is discussed above.
Usman,
I saw another API endpoint there which seems to fit better our needs: http://aw-sdx-controller.renci.org:8081/SDX-Controller/ui/#/topology/get_topology_domains
This idea basically is
referring to point no 3 : in the toplogy JSON which attribute identifies that the port and nodes belongs to a particular domain?
referring to point no 3 : in the toplogy JSON which attribute identifies that the port and nodes belongs to a particular domain?
the ID. For instance:
"nodes": [
{
"name": "Sax01",
"id": "urn:sdx:node:sax.net:Sax01",
"location": {
"address": "Fortaleza",
"latitude": -3,
"longitude": -40,
"iso3166_2_lvl4": "BR-CE",
"private": []
},
"ports": [
{
"id": "urn:sdx:port:sax.net:Sax01:41",
"name": "Sax01-eth41",
"node": "urn:sdx:node:sax.net:Sax01",
"type": "10GE",
"status": "up",
...
In the case above, the node id is urn:sdx:node:sax.net:Sax01
which means this node particularly belongs to the domain sax.net
.
Same applies for the port urn:sdx:port:sax.net:Sax01:41
, this port belongs to sax.net
domain
As we discussed on AHM Aug 2024, it would be interesting to authorize certain users to visualize only certain domains. Each topology object already include the domain which that object belongs. Meican can leverage that information and the Meican Admin could allow certain users to see certain domains.
SDX-Controller will provide an API for listing the domain.