User Details
- User Since
- Oct 25 2024, 9:10 PM (57 w, 6 d)
Sun, Nov 30
Are you able to update the status of this Mafifest, add a link to a new PR or other doc please?
Thank you
Are you able to update the status of this Mafifest, add a link to PR or other doc please?
Thank you
Are you able to update the status of this Mafifest, add a link to PR or other doc please?
Thank you
Thank you for the question.
The latest supported Ansible core version for this collection is 2.18.2
2.19+ unfortunately has a lot of changes that require the code rework, most notably, the community collections we use alongside with ours are not compatible as well (e.g. ansible.netcommon).
There is an issue https://github.com/vyos/vyos.vyos/issues/417 lodged to embrace 2.19+ at some point, but right now we have to wait for the adoption of this version by wider user base.
Mon, Nov 17
@Viacheslav @badger42 hi Guys! Why is this in the Ansible FR section?
Mon, Nov 10
Oct 31 2025
Oct 30 2025
@lingfish hi!
Sorry for taking so long
Oct 28 2025
Oct 26 2025
Oct 19 2025
Oct 18 2025
@lingfish Hi!
Which module are you using?
Aug 28 2025
Work is here https://github.com/vyos/vyos.vyos/pull/433
Aug 25 2025
The feature is really missing - I raised a PR to work on it https://github.com/vyos/vyos.vyos/pull/433
Aug 24 2025
The feature is available in the latest Galaxy collection
https://galaxy.ansible.com/ui/repo/published/vyos/vyos/content/module/vyos_l3_interfaces/
Aug 20 2025
More in Slack https://vyos-community.slack.com/archives/C027BSYGHPT/p1754577533265449
In general:
@nicolasberens hi!
Aug 16 2025
I am working here on this use case https://github.com/vyos/vyos.vyos/pull/429
Aug 15 2025
Aug 11 2025
@nicolasberens Raising PR https://github.com/vyos/vyos.vyos/pull/430 to make vyos_config and cliconf less greedy
Aug 10 2025
Hi @nicolasberens
That is interesting - when I use rule 5 for example - there is also no change
Aug 7 2025
Additional details from Slack:
it is not only 1st run. He runs his playbook for 3 routers. Only one works without problems. He says that the configs are the same and the version is - 1.4.3.
Ansible verbose info
@a.apostoliuk hi!
Can we have:
Aug 5 2025
Hello @nicolasberens
Apologies for this taking too long to respond.
I investigated further and found that community module function netcommon.CliConf inserts an extra space, thus breaking the long lines and causing diff to generate, which, in turns, impacts the idempotency of the VyOS modules.
I raised an issue with the community https://github.com/ansible-collections/ansible.netcommon/issues/713
Jul 17 2025
So, I tried a few approaches here - in particular, I coded logic to preserve 'set' commands if they are in running config and there is a corresponding 'delete' clause, to we do see 'delete' and 'set' commands in the config to compare.
Despite this, the Ansible connnection.get_diff does not work with this well, as it tends to remove 'delete' from the resultant set as not making sense (it kind of being over-smart here)
Jul 15 2025
That is clear now, thanks @nicolasberens
(Sorry, I must have misspelled your username)
Jul 14 2025
@nicholaschaffeee Hi!
Are you able to describe your use case above?
Jul 11 2025
As an example (and the reason why i try to solve this issue the way i am doing it right now), the junos module (https://docs.ansible.com/ansible/latest/collections/junipernetworks/junos/junos_config_module.html#ansible-collections-junipernetworks-junos-junos-config-module) support this exact behaviour. So it was easy to adapt this for our vyos firewalls.
It seems that community plugin netcommon network_cli breaks long lines resulting in diff. I tried ansible_terminal_width but no luck
I will be looking for some workarounds, unless there is already an open issue with Netcommon
Jul 10 2025
I can see the community module we use (necommon/network_cli) actually returns the running config with a broken long strings - it inserts extra space
Hi,
I am testing against 1.4.2, via pylibssh, - I see 4096-long one does break idempotency but I see no Exception
I will retest with vyos_user
Jul 9 2025
Hi @nicolasberens!
I believe the module is configured to match line by line by default and only work out on deltas in the config.
So if in the active Ansible session, the module does not sense changes after 'delete' (because there are none as yet, since the command is not applied) - At start, the module retrieves the current configuration and process it, then issues a set of commands.
Either having two separate tasks to delete first, then to set works, or the example below also works.
Hi All,
Looking into this
May 24 2025
May 22 2025
May 15 2025
May 5 2025
May 4 2025
Apr 22 2025
Checking this and PR190 that claims to address the issues. Preliminary comment on the PR190:
Apr 14 2025
Apr 8 2025
Apr 3 2025
There was no a change - I tested with the existing code in trunk and could not replicate the issue - hence the question, given this is a pretty old bug report
Apr 2 2025
Mar 27 2025
Mar 20 2025
This seems to be implemented:
Mar 19 2025
Mar 18 2025
Mar 14 2025
Mar 11 2025
Hi,
I tested with 520-700+ character long strings and the bug is not evident in 1.3- or1.4+ versions
Can you please re-rest and advise this issue still persist
Are we happy with the above patch (fixing the terminal)?
After some investigation, it can be advised, that the described issue is to do with netcomm_cli module implementation used by VyOS Ansible Galaxy - namely, the ansible_net_version is set for a connection and stays so until reconnects and re-reads the modified hostname.
As such, this is currently outside of the collection's control.
That said, the issue can be easily avoided by reading ansible_facts mid-playbook:
Example Playbook:
Mar 6 2025
Mar 3 2025
@pasik Hi mate! Were you the original reporter of this bug please?
If so, can you clarify a few questions I asked above?
thank you
Can we close it?
I cannot see the virtual interface names are supported in 1.3-1.5 -
Mar 2 2025
Just a single one to go https://github.com/vyos/vyos.vyos/pull/395
Feb 28 2025
PR399 is ready for review
Feb 27 2025
Feb 26 2025
Attempting to re-init work here https://github.com/vyos/vyos.vyos/pull/399
Feb 25 2025
Feb 20 2025
I will look into after https://github.com/vyos/vyos.vyos/pull/387
I can look into this after https://github.com/vyos/vyos.vyos/pull/387 is actioned
