This repository has been archived by the owner on Dec 3, 2021. It is now read-only.
Introduce new "configurator" for configuring devices, and templatize mgmt interface configuration #207
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.
The discussion in nre-learning/antidote-core#93 illustrated the need to make the management IP address for devices more predictable, since the existing model of configuration hard-coded the same management address behind a NAT, so we could always use the same one.
However, this model proves problematic when you want to do more advanced things like streaming telemetry out of the management interface. The new
vqfx-full
image contributed by @mwiget instead, maps theem0
port directly to the outer container'seth0
interface, sharing its dynamically configured IP address, but because this is dynamically assigned by the CNI plugin, it's impossible to predict ahead of time with baked-in address configurations.This PR introduces a new docker image intended to be used by Syringe to configure network devices. It works similar to the legacy one
antidotelabs/napalm
, but instead adds additional logic for passing dynamic data into a configuration template before applying it to the device. This allows us to totally templatize the management interface configuration for all devices, and pass it in by first retrieving the current address, and placing this data into any new proposed template. This PR also converts all existing network configurations to include this templatized parameter.nre-learning/antidote-core#93 will now be converted purely to leverage the use of this image, without compromising on the current model of using the NAPALM replace strategy, which is a good practice to ensure atomicity between labs.