Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new paths for RouterOS 6.x.x #182

Open
izzzhoga opened this issue Jun 19, 2023 · 2 comments
Open

Support new paths for RouterOS 6.x.x #182

izzzhoga opened this issue Jun 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@izzzhoga
Copy link

SUMMARY

Hello! When using RouterOS 6.x.x, I used paths to configure my Mikrotik (/routing ospf network), but with the advent of my Mikrotik with RouterOS 7.x.x, I have to "split" the code, since a different path to similar settings is used.

Are there plans to support old paths (for RouterOS 6.x.x) in modules such as community.routeros.api_modify?

Now for RouterOS 6.x.x I use the community.routeros.command module, and for RouterOS 7.x.x I use the community.routeros.api_modify module, which is very inconvenient for me.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.routeros.api_modify

ADDITIONAL INFORMATION

For example:

- name: Configure ospf network for RouterOS 6.x.x
  community.routeros.api_modify:
    path: routing ospf network
    data:
      - some_data: "{{ some_variable }}"
@felixfontein felixfontein added the enhancement New feature or request label Jun 19, 2023
@felixfontein
Copy link
Collaborator

Generally the modules support both ROS 6 and ROS 7 paths. If you want support for a specific ROS 6 (or 7) path, creating a PR is the easiest way to get it added.

@izzzhoga
Copy link
Author

Good afternoon! There was a need to configure the following paths in the configuration:
/routing filter (for ROS 6)
/ip route vrf (for ROS7)
/routing ospf network (for ROS6)

Please add these paths to the modules community.routeros.api_modify and community.routeros.api_info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants