Skip to content

VyOS: Implement configuration templates using only 'set' commands#2572

Merged
ipspace merged 1 commit intodevfrom
vyos-cfg
Aug 4, 2025
Merged

VyOS: Implement configuration templates using only 'set' commands#2572
ipspace merged 1 commit intodevfrom
vyos-cfg

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Aug 3, 2025

VyOS configuration templates are vbash scripts that include a lot of
setup and cleanup code. The same code is replicated in every template.
That is not good by itself, but it doesn't allow the users to use
simple custom config templates with just the 'set' commands.

This change implements configuration deployment similar to what
we're doing for FRR: if the configuration code includes 'vbash',
it's executed as-is, otherwise it's wrapped in a standard vbash
script.

Also changed:

  • The 'are we ready' check has been moved from the 'deploy config'
    task list to 'readyness check' task list
  • The 'fetch config' task list fetches device configuration as
    'set' commands, allowing it to be used directly as a custom config
    template. That should allow 'netlab up --reload' to work with
    VyOS.

@ipspace ipspace requested a review from ssasso August 3, 2025 05:17
@ipspace
Copy link
Owner Author

ipspace commented Aug 3, 2025

@ssasso This is a follow-up work from #2571 that will be rebased before merging. The relevant changes are in the last commit.

ipspace added a commit that referenced this pull request Aug 3, 2025
Copy link
Collaborator

@ssasso ssasso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work thanks!!!!

I will slowly adapt all the other templates

VyOS configuration templates are vbash scripts that include a lot of
setup and cleanup code. The same code is replicated in every template.
That is not good by itself, but it doesn't allow the users to use
simple custom config templates with just the 'set' commands.

This change implements configuration deployment similar to what
we're doing for FRR: if the configuration code includes 'vbash',
it's executed as-is, otherwise it's wrapped in a standard vbash
script.

Also changed:

* The 'are we ready' check has been moved from the 'deploy config'
  task list to 'readyness check' task list
* The 'fetch config' task list fetches device configuration as
  'set' commands, allowing it to be used directly as a custom config
  template. That should allow 'netlab up --reload' to work with
  VyOS.
* BGP and IS-IS templates have been cleaned up as a proof-of-concept
@ipspace ipspace merged commit 4247998 into dev Aug 4, 2025
11 checks passed
@ipspace ipspace deleted the vyos-cfg branch August 4, 2025 16:43
ipspace added a commit that referenced this pull request Oct 21, 2025
Similar to #2572, this change generates warnings whenever L3VPN AF is
enabled on BGP sessions that do not propagate extended communities.
ipspace added a commit that referenced this pull request Oct 21, 2025
Similar to #2572, this change generates warnings whenever L3VPN AF is
enabled on BGP sessions that do not propagate extended communities.
ipspace added a commit that referenced this pull request Oct 27, 2025
…#2756)

Similar to #2572, this change generates warnings whenever L3VPN AF is
enabled on BGP sessions that do not propagate extended communities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants