40ansible icon indicating copy to clipboard operation
40ansible copied to clipboard

module fortios_router_prefix_list module does not work

Open dgeisau opened this issue 5 years ago • 4 comments

The module fortios_router_prefix_list does not actually add or modify router prefixes to FortiGate. The underlying API call requires the parameter 'plugin : 1' for the changes to be accepted.

This is also reported in the Developer Network https://fndn.fortinet.net/index.php?/forums/topic/1995-fortios-rest-api-config-router-prefix-list-issuebug/

dgeisau avatar Dec 16 '19 15:12 dgeisau

@dgeisau Thank you! The feature is under development and will be updated to Ansible repo soon.

frankshen01 avatar Dec 20 '19 02:12 frankshen01

There an ETA for this resolution? It does not make sense to use the route-map module if then I cannot associate prefix-list or ACL to it using the same tool.

Thanks L

l0renzor avatar Mar 27 '20 17:03 l0renzor

@l0renzor I might be wrong but I think that the development of the fortios modules has been moved here: https://github.com/fortinet-ansible-dev/ansible-galaxy-fortios-collection

angystardust avatar Mar 27 '20 18:03 angystardust

Hi @dgeisau,

We've fixed the issues in the module of fortios_router_prefix_list.

Playbook:

prefix_playbook

Results after running the playbook:

prefix_list_result

Let me know if you have any questions.

JieX19 avatar Apr 21 '20 00:04 JieX19