Skip to content

Interface IPIP support #365

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

Open
rondex opened this issue Apr 24, 2025 · 0 comments
Open

Interface IPIP support #365

rondex opened this issue Apr 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@rondex
Copy link

rondex commented Apr 24, 2025

SUMMARY

Add support to interface ipip to modules community.routeros.api_info and community.routeros.api_modify.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.routeros.api_info and community.routeros.api_modify

ADDITIONAL INFORMATION

Should make use of module by the "ansible way", meaning no need to deep knowledge of RouterOS specific commands.

- name: Add interfaces
  hosts: all
  gather_facts: false
  module_defaults:
    group/community.routeros.api:
      hostname: "{{ api_hostname }}"
      username: "{{ api_username }}"
      password: "{{ api_password }}"
      # The following options configure TLS/SSL.
      # Depending on your setup, these options need different values:
      tls: true
      validate_certs: false
      validate_cert_hostname: true
      # If you are using your own PKI, specify the path to your CA certificate here:
      # ca_path: /path/to/ca-certificate.pem

  tasks:

    - name: IPIP intefaces
      community.routeros.api_modify:
        path: interface ipip # <--- Not supported yet
        handle_absent_entries: remove
        handle_entries_content: remove_as_much_as_possible
        # ensure_order: true
        data: "{{ interfaces.ipip }}"
      delegate_to: localhost

---
all:
  vars:
    interfaces:

     #...

      ipip:
        - name: ipip-1
          allow-fast-path: false
          clamp-tcp-mss: "yes"
          comment: "ipip-1"
          disabled: false
          dont-fragment: false
          ipsec-secret: "xxxx"
          keepalive: false
          local-address: "192.168.1.1"
          mtu: 1430
          remote-address: "10.10.10.10"
          # Other parameters...
@felixfontein felixfontein added the enhancement New feature or request label Apr 24, 2025
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