fabric-testbed / ControlFramework

Basic framework for a Fabric Control Framework Actor
MIT License
1 stars 0 forks source link

Orchestrator API Update Request #155

Closed yaxue1123 closed 2 years ago

yaxue1123 commented 2 years ago

GET /slices

GET /slices/{sliceID}

Directed or Undirected Graph

Should the links with class "has" be directed that source has target? This is the most common situation but with some exceptions. The normal relationship (source -> target) is VM has SmartNIC, and SmartNIC has OVS. But sometimes they are the opposite.

Ideal "has" relationship chain: Site -> NetworkNode (VM) -> Component (NIC) -> NetworkService -> (OVS) -> ConnectionPoint. Otherwise the frontend slice parser needs to deal with double amounts of situation and there will be a lot of redundant if/ else statements.

ibaldin commented 2 years ago

@yaxue1123 is the issue about directed vs undirected graphs still relevant? I remember we had a discussion about it earlier.

yaxue1123 commented 2 years ago

@yaxue1123 is the issue about directed vs undirected graphs still relevant? I remember we had a discussion about it earlier.

@ibaldin Yes currently portal adds a lot of if else statements to figure out parent-child relationship of the "has" links. If the relationship could always be parent "has" child, it will be much easier and saving a lot of code for the slice parser.