41.Amend the config templates pt.1
Nikos Kallergis
17 steps
2 minutes
1
First, let's make sure that the changes that Nautobot has made have been pulled to our VS Code instance. To do so, click on the "refresh" button on the bottom bar.
2
Then, open the "gc_templates" folder
3
Double-click "arista_eos.j2" to open the base J2 template
4
Open the "eos" sub-folder to see its contents
5
Double-click "interfaces.j2"
6
The "interfaces.j2" template uses two other templates, "\_physical.j2" and "\_loopback.j2"
7
Double-click "_physical.j2"
8
Double-click "_loopback.j2"
9
Let's include interfaces into our base template. First, find line with the hostname include...
10
Copy the existing include statement about "hostname.j2" and paste it below
11
Change the import statement so it points to the "interfaces.j2" template
12
Make sure to save the changes you've made to the template
13
Navigate to the "Source Control" pane by clicking the respective icon
14
Type a commit message e.g. "Include interfaces template"
15
Click on the "Commit" button
16
Once committed, click "Sync Changes" to push to the remote
17
At this point, the change you've made should be reflected to your forked repo. Feel free to navigate to Github and verify...
41.Amend the config templates pt.1
Nikos Kallergis
17 steps
2 minutes
1
First, let's make sure that the changes that Nautobot has made have been pulled to our VS Code instance. To do so, click on the "refresh" button on the bottom bar.
2
Then, open the "gc_templates" folder
3
Double-click "arista_eos.j2" to open the base J2 template
4
Open the "eos" sub-folder to see its contents
5
Double-click "interfaces.j2"
6
The "interfaces.j2" template uses two other templates, "\_physical.j2" and "\_loopback.j2"
7
Double-click "_physical.j2"
8
Double-click "_loopback.j2"
9
Let's include interfaces into our base template. First, find line with the hostname include...
10
Copy the existing include statement about "hostname.j2" and paste it below
11
Change the import statement so it points to the "interfaces.j2" template
12
Make sure to save the changes you've made to the template
13
Navigate to the "Source Control" pane by clicking the respective icon
14
Type a commit message e.g. "Include interfaces template"
15
Click on the "Commit" button
16
Once committed, click "Sync Changes" to push to the remote
17
At this point, the change you've made should be reflected to your forked repo. Feel free to navigate to Github and verify...