ansible-collections / community.routeros

Ansible modules for managing MikroTik RouterOS instances.
https://galaxy.ansible.com/ui/repo/published/community/routeros/
GNU General Public License v3.0
103 stars 46 forks source link

Support for routing table? #162

Open itrack opened 1 year ago

itrack commented 1 year ago
SUMMARY

The "routing table" is not supported by api_modify

ISSUE TYPE
COMPONENT NAME

routing table

ADDITIONAL INFORMATION

https://help.mikrotik.com/docs/display/ROS/Policy+Routing

    - name: Add routing tables
      community.routeros.api_modify:
        path: routing table
        data: 
          - "name='to_wan' fib=''"

/routing table add name=myTable fib

derdeagle commented 10 months ago

The support for routing table was added in back in PR #215 . I now only added routing rule. @felixfontein Could you please verify?

In the PR #246 the path routing rule was added additionally.

Somewhere in the depths of the MikroTik documentation I read that routing table would only make limited sense without routing rule but I cannot find it anymore.