Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store information about NodeGeneration in registry. #1347

Merged
merged 9 commits into from
Dec 5, 2024

Conversation

steiler
Copy link
Collaborator

@steiler steiler commented Apr 28, 2023

So far generate.go contained two lists indenpendent from the nodes, that would describe nodes that (1) can be generated and (b) what the interface naming convention would be for the node kind. This will introduce seperate fields in the NodeRegistry for this information, such that the information for this sort of node generation can be defined as part of the node definition

@steiler
Copy link
Collaborator Author

steiler commented Apr 28, 2023

I have, by the way, taken over the actual view on which nodes are eligable for topology generation.
But I have the feeling, that this list could be extended, Maybe take another look at it @hellt

@steiler steiler force-pushed the refactorgenerate branch from 763868e to dc33e4a Compare May 2, 2023 06:23
@steiler
Copy link
Collaborator Author

steiler commented May 2, 2023

takes also already vr-vsrx into account.

@steiler steiler added the enhancement New feature or request label Aug 14, 2023
steiler and others added 3 commits December 5, 2024 08:35
So far generate.go contained two lists indenpendent from the nodes, that would describe nodes that (1) can be generated and (b) what the interface naming convention would be for the node kind. This will introduce seperate fields in the NodeRegistry for this information, such that the information for this sort of node generation can be defined as part of the node definition
cmd/generate.go Show resolved Hide resolved
}

type GenerateNodeAttributes struct {
generateable bool
Copy link
Member

@hellt hellt Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

likely we don't need the generatable flag at all. All nodes should be generatable, I think some nodes were not generatable originally because we just did not add them manually to the generate cmd

@hellt hellt merged commit ca7e450 into srl-labs:main Dec 5, 2024
65 checks passed
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 73.66071% with 59 lines in your changes missing coverage. Please review.

Project coverage is 51.76%. Comparing base (51c6366) to head (038d326).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
nodes/node_registry.go 89.79% 4 Missing and 1 partial ⚠️
nodes/crpd/crpd.go 60.00% 1 Missing and 1 partial ⚠️
nodes/dell_sonic/dell_sonic.go 60.00% 1 Missing and 1 partial ⚠️
nodes/rare/rare.go 60.00% 1 Missing and 1 partial ⚠️
nodes/sonic/sonic.go 60.00% 1 Missing and 1 partial ⚠️
nodes/sonic_vm/sonic_vm.go 60.00% 1 Missing and 1 partial ⚠️
nodes/vr_aoscx/vr-aoscx.go 33.33% 1 Missing and 1 partial ⚠️
nodes/vr_c8000v/vr-c8000v.go 60.00% 1 Missing and 1 partial ⚠️
nodes/vr_cat9kv/vr-cat9kv.go 60.00% 1 Missing and 1 partial ⚠️
nodes/vr_freebsd/vr-freebsd.go 60.00% 1 Missing and 1 partial ⚠️
... and 25 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1347      +/-   ##
==========================================
+ Coverage   51.54%   51.76%   +0.21%     
==========================================
  Files         172      172              
  Lines       16888    16978      +90     
==========================================
+ Hits         8705     8788      +83     
- Misses       7259     7267       +8     
+ Partials      924      923       -1     
Files with missing lines Coverage Δ
clab/inventory.go 78.66% <100.00%> (ø)
clab/sshconfig.go 67.79% <100.00%> (ø)
nodes/bridge/bridge.go 62.35% <100.00%> (+1.37%) ⬆️
nodes/ceos/ceos.go 60.75% <100.00%> (+0.64%) ⬆️
nodes/fortinet_fortigate/fortigate.go 85.10% <100.00%> (+1.01%) ⬆️
nodes/iol/iol.go 82.47% <100.00%> (+0.27%) ⬆️
nodes/linux/linux.go 79.45% <100.00%> (+0.88%) ⬆️
nodes/srl/srl.go 57.98% <100.00%> (+0.23%) ⬆️
clab/config/utils.go 44.84% <0.00%> (ø)
cmd/generate.go 68.99% <95.00%> (-2.80%) ⬇️
... and 33 more

... and 1 file with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants