Just to rule out some obvious things here - Did you try executing the commands manually in the shell to confirm they propagate? The FRR conf’s are in /etc/frr.
Would try a few things:
Manually execute after startup and restart the service
Hard code into the FRR config as a last resort, test then work back to your command
Additionally - you might need to restart the service after making the changes to make sure FRR carries them over.
Yes @keneshhagard I have tried all the things you mentioned.
Command is correct and it’s getting executed correctly if entered manually.
The problem is when jinja template is getting conveyed to actual code then vtysh command moves a bit towards left side and does not align with other commands. So the other commands are getting executed except vtysh commands.
I am pretty sure that’s the issue.
What I am not sure if how to fix it.
I am running it on ansible it give me this error
2021-12-07 19:10:04,542 - util.py[WARNING]: Failed loading yaml blob. Invalid format at line 19 column 1: "while scanning a simple key
in “”, line 19, column 1:
vtysh -c “conf t” -c "router bgp …
^
could not find expected ‘:’
in “”, line 20, column 1:
vtysh -c “conf t” -c “router bgp …
^”
2021-12-07 19:10:04,543 -
And my code look like this.
#cloud-config
vyos_config_commands:
set system host-name ‘j3norvmbgp01’
set system login user vyos authentication plaintext-password ‘vyos’
delete interfaces ethernet eth0 address
set interfaces ethernet eth0 address ‘10.41.170.200/24’
Check the bold output and the code.
If you look closely to the code the vtysh commands are left oriented compared to other commands.
Edit: After submitting this message I think the
editor here is autocorrecting the white spaces so they all look align in this message but in actual vtysh commands are a bit left oriented.