21.Generate intended configurations
Use Golden Config to render configuration from Jinja2 templates
Nikos Kallergis
23 steps
3 minutes
Golden Config settings
1
Click "Golden Config"
2
Click "Golden Config Settings"
3
Click "Default Settings"
4
Click "Edit"
5
For "Backup repository", select "autocon3"
6
Click the "Backup Path in Jinja Template Form" field.
7
Type "gc_backups/{{obj.name}.cfg" <<< Obviously, you have to close with double-curly brackets, don't ask why it's single here :-)
8
For the "Intended repository", select the "autocon3" option again
9
Click the "Intended Path in Jinja Template Form" field.
10
Type "gc_intended/{{obj.name}.cfg" <<< Double curlies here too
11
Last, for the "Jinja repository", select "autocon3"
12
Click the "Template Path in Jinja Template Form" field.
13
Type "gc_templates/{{ obj.platform.network_driver }.j2" <<< Here too, last time I promise!
14
Under Sot agg query, select the "device_info" option.
15
Click "Create"
Generate intended configurations
16
Click "Jobs"
17
Click "Jobs"
18
Execute the "Generate Intended Configurations" job
19
Click "Run Job Now"
20
Verify that the generated configs were pushed to the repo
21
Navigate to your forked repo
22
While in the root folder, click "gc_intended"
23
Verify that all four configs have been generated and pushed to the repo
21.Generate intended configurations
Use Golden Config to render configuration from Jinja2 templates
Nikos Kallergis
23 steps
3 minutes
Golden Config settings
1
Click "Golden Config"
2
Click "Golden Config Settings"
3
Click "Default Settings"
4
Click "Edit"
5
For "Backup repository", select "autocon3"
6
Click the "Backup Path in Jinja Template Form" field.
7
Type "gc_backups/{{obj.name}.cfg" <<< Obviously, you have to close with double-curly brackets, don't ask why it's single here :-)
8
For the "Intended repository", select the "autocon3" option again
9
Click the "Intended Path in Jinja Template Form" field.
10
Type "gc_intended/{{obj.name}.cfg" <<< Double curlies here too
11
Last, for the "Jinja repository", select "autocon3"
12
Click the "Template Path in Jinja Template Form" field.
13
Type "gc_templates/{{ obj.platform.network_driver }.j2" <<< Here too, last time I promise!
14
Under Sot agg query, select the "device_info" option.
15
Click "Create"
Generate intended configurations
16
Click "Jobs"
17
Click "Jobs"
18
Execute the "Generate Intended Configurations" job
19
Click "Run Job Now"
20
Verify that the generated configs were pushed to the repo
21
Navigate to your forked repo
22
While in the root folder, click "gc_intended"
23
Verify that all four configs have been generated and pushed to the repo