-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jgf: refactor to use shared functions and fix containment
Problem: the containment paths are currently not set, and each resource type has a separate function. Solution: create a shared node generation function that uses a common resource counter, where the counter manages the global and resource-specific counts. This scoped commit includes refactor of those JGF functions, which also means removing resources that are not present in the graph (e.g., rack and socket) and ensuring that we do not recreate the subnet since we loop through nodes (and might hit the same one twice). I am also removing the NFD features because I think they are changed and might lead to error if someone has them. We should assess which of them we want/need and add them back strategically. I have a local test but want to push this first to give a look over / run current tests to determine if other changes are needed. Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
6 changed files
with
275 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.