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

Map platforms to kinds with parameterized templates #16

Merged
merged 36 commits into from
Nov 25, 2023
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
fad4905
platform_map for platform to kind mapping
bortok Aug 27, 2023
ac66078
maps.kinds
bortok Aug 27, 2023
e243381
reworked the map
bortok Sep 2, 2023
7ebfb03
parameterized clab kind templates
bortok Sep 3, 2023
27db7fb
removed clab kind symlinks
bortok Sep 3, 2023
77e1b81
removed cml kind symlinks
bortok Sep 3, 2023
08dd414
removed default kind params from map for clab
bortok Sep 3, 2023
da82feb
Revert "removed default kind params from map for clab"
bortok Sep 3, 2023
9066e83
moved custom params to map for clab linux kind
bortok Sep 3, 2023
314b8ed
fixed clab linux kind len function
bortok Sep 3, 2023
ab50b7c
parameterized clab default.j2
bortok Sep 3, 2023
0df9907
introduced clab/node_params.j2 for includes
bortok Sep 5, 2023
a96a7c1
moved startup-config to node_params.j2
bortok Sep 5, 2023
8efa4d8
unset startup_config in default.j2
bortok Sep 5, 2023
ec66ebb
removed default image tags
bortok Sep 10, 2023
7aebea2
covered non-node specific params
bortok Sep 10, 2023
477a7df
Merge branch 'dev' into maps
bortok Sep 24, 2023
d459d73
renamed kinds folders to nodes
bortok Nov 4, 2023
37e7f53
nodes_template and interface_names_template
bortok Nov 4, 2023
1098d04
nodes and interface_names subkeys
bortok Nov 5, 2023
95e8e3f
ceos interface_maps in platform_map
bortok Nov 5, 2023
143b7c6
default interface_names for graphite and d2
bortok Nov 5, 2023
ecbe5f7
cml interface_names
bortok Nov 5, 2023
e6caa06
renamed platform_map.yml to .yaml
bortok Nov 7, 2023
106c27a
updated readme sonic example with platform_map
bortok Nov 7, 2023
39d7016
readme updates
bortok Nov 7, 2023
33b61c6
separate docs/interface_maps.md
bortok Nov 7, 2023
7c28c1d
moved sonic image path explanation
bortok Nov 7, 2023
cd6e3a6
separate docs/output_format.md
bortok Nov 7, 2023
eec22a0
sonic-vs node template section update
bortok Nov 7, 2023
abbb7b8
nodes section updates
bortok Nov 7, 2023
3d2c29e
full set of clab artifacts
bortok Nov 23, 2023
fdfd5a4
link to clab/nodes folder
bortok Nov 23, 2023
2054484
fixed the link
bortok Nov 23, 2023
c5b62ec
finalized clab artifacts links
bortok Nov 23, 2023
52ed173
interface_names readme fixes
bortok Nov 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
moved sonic image path explanation
  • Loading branch information
bortok committed Nov 7, 2023
commit 7c28c1d582e9b83ce458b3e1fd1704e98f0ed5e3
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ git clone https://github.com/netreplica/templates.git

> Note, if you would like to contribute your templates back to the community, please [fork](https://github.com/netreplica/templates/fork) the repository first and then clone the fork instead.

As a practical example, let's create templates for Containerlab `sonic-vs` kind. This kind represents [SONiC](https://sonic-net.github.io/SONiC/) open-source NOS. There is a [Docker image for SONiC](https://hub.docker.com/r/netreplica/docker-sonic-vs) hosted under [Netrepica Docker Hub](https://hub.docker.com/u/netreplica) using an image tag `netreplica/docker-sonic-vs`, and this is what we are going to use.
As a practical example, let's create templates for Containerlab `sonic-vs` kind. This kind represents [SONiC](https://sonic-net.github.io/SONiC/) open-source NOS.

As a next step, let's create a new development branch, for example `new-clab-kind-sonic-vs`:

Expand Down Expand Up @@ -158,7 +158,7 @@ platforms: # this line already exists, do not add it again

You may also want to provide paths to the templates to be used for `sonic-vs` kind explicitly. If not provided, `nrx` will first look for `sonic-vs.j2` and then for `default.j2` files in the respective folders. The configuration below will tell `nrx` to skip looking for `sonic-vs.j2` when determining interface names, and use `default.j2` right away.

You can also override parameters used in the template. Most common example would be to use a different image tag:
You can also override parameters used in the template. Most common example would be to use a different image tag. There is a [Docker image for SONiC](https://hub.docker.com/r/netreplica/docker-sonic-vs) hosted under [Netrepica Docker Hub](https://hub.docker.com/u/netreplica) with an image tag `netreplica/docker-sonic-vs:latest`, and this is what we are going to use.

```Yaml
kinds: # this line already exists, do not add it again
Expand Down