feat(discovery): support multiple SMD groups during static discovery #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #32
Changes
groupsdirective to static discovery specification to specify a list of groups to add a node to during discovery.groupdirective in static discovery specification.groupand remove it from examplesgroups, the group specified is merged with thegroupslistgroupwill be removed in a future release ofochamiTesting
Write a
nodes.yamlthat includes combinations ofgroupsandgroupand attempt static discovery viaochami discover static -f yaml -d @nodes.yaml.groupsonly:Result:
node01should be added to groupsgroup1andgroup2, which get added to SMD.grouponly:Result:
node01should be added to groupgroup1, which gets added to SMD. Theochamicommand should display a warning thatgroupwas used fornode01and that it is deprecated.groupandgroups:CASE 1:
groupis also a member ofgroupsResult:
node01should be added to groupsgroup1andgroup2, which get added to SMD. Theochamicommand should display a warning thatgroupwas used fornode01and that it is deprecated.CASE 2:
groupis not a member ofgroupsResult:
node01should be added to groupsgroup1,group2, andgroup3, which get added to SMD. Theochamicommand should display a warning thatgroupwas used fornode01and that it is deprecated.Notes
--discovery-version 1so that the creation ofEthernetInterfaces for typeNodeworks during discovery.