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

added support for config generation for ceos #173

Merged
merged 18 commits into from
Dec 1, 2020
Merged

added support for config generation for ceos #173

merged 18 commits into from
Dec 1, 2020

Conversation

hellt
Copy link
Member

@hellt hellt commented Nov 21, 2020

This PR adds Arista cEOS config generation. Since ceos can't use the docker assigned IP address automatically, I had to regenerate the startup config of ceos nodes after the ceos container started.

Since config generation is a method of node struct, I needed to augment Node struct with IP information. For that I created a function enrichNodes that does that.

The actual config regeneration happens in the ExecPostDeployTasks function. I think this function can be potentially used to allow users to execute some scripts after the node starts. That is why I made it generic.

@hellt hellt requested a review from karimra November 21, 2020 21:03
clab/file.go Outdated Show resolved Hide resolved
templates/arista/ceos.cfg.tpl Outdated Show resolved Hide resolved
@hellt hellt merged commit db56f6c into master Dec 1, 2020
@hellt hellt deleted the arista-cfg branch December 1, 2020 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants