Conversation
Removes the common vbash-specific bits from VyOS templates, as those bits are handled by the deployment task list.
Owner
Author
|
@ssasso -- Finally found time to clean the VyOS templates |
ipspace
added a commit
that referenced
this pull request
Feb 1, 2026
There was a problem hiding this comment.
Pull request overview
Removes embedded vbash/script scaffolding from VyOS Jinja templates so config scripts can be wrapped/executed consistently by the deploy-config task logic.
Changes:
- Strips common VyOS vbash boilerplate (
#!/bin/vbash,configure,commit/save/exitscaffolding) from multiple VyOS templates. - Updates BGP session/policy templates’ inline section headers and keeps post-config BGP refresh actions where present.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| netsim/extra/firewall.zonebased/vyos.j2 | Removes vbash wrapper and commit/save/exit footer so deploy wrapper owns session lifecycle. |
| netsim/extra/bgp.session/vyos.j2 | Removes vbash wrapper and restructures headers; retains commit/save + BGP clears. |
| netsim/extra/bgp.policy/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/vxlan/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/vrf/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/vlan/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/routing/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/ripv2/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/ospf/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/mpls/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/lag/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/initial/vyos.j2 | Removes vbash wrapper and save/exit boilerplate, leaving commit + post-steps. |
| netsim/ansible/templates/gateway/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
| netsim/ansible/templates/evpn/vyos.j2 | Removes vbash wrapper; adjusts neighbor stanza and keeps commit/save + BGP clear. |
| netsim/ansible/templates/bfd/vyos.j2 | Removes vbash wrapper and commit/save/exit footer. |
Comments suppressed due to low confidence (1)
netsim/extra/bgp.session/vyos.j2:82
vyos-script.j2always appendscommit/save/exitaroundscript_content; keepingcommit/savein this template will now execute them twice and also makes thevtyshclears run before the wrapper’s finalexit(holding the config session open longer). Consider moving thevtyshclears into an Ansible post-task (or enhancing the wrapper with a post-commit hook) so this template can be puresetcommands again.
commit
save
vtysh -c 'clear bgp *'
{% if vrfs is defined %}
{% for vname,vdata in vrfs.items() if vdata.bgp is defined and vdata.bgp.neighbors is defined %}
vtysh -c 'clear bgp vrf {{ vname }} *'
Owner
Author
|
Note to self: Document exceptions pointed out by Copilot in the final commit message. |
ipspace
added a commit
that referenced
this pull request
Feb 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Removes the common vbash-specific bits from VyOS templates, as those bits are handled by the deployment task list.