F5Networks / f5-ansible

Imperative Ansible modules for F5 BIG-IP products
GNU General Public License v3.0
375 stars 229 forks source link

SelfIP address block does not indicate we support both IPv4/v6 #2360

Open cwise24 opened 1 year ago

cwise24 commented 1 year ago

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I’m writing to see if we can get an update to this page on F5 Ansible Modules Self-IP https://clouddocs.f5.com/products/orchestration/ansible/devel/modules/bigip_selfip_module.html#bigip-selfip-module-3

The “address” block is vague in that it does not specify IPv4 or IPv6, nor does the example show any IPv6. Can that be added for customer clarification?

Path to repo: ansible_collections/f5networks/f5_modules/plugins/modules/bigip_selfip.py

Describe the solution you'd like

A clear and concise description of what you want to happen.

Specify we support both IPv4/v6

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Adding an example that includes IPv6

Additional context

Add any other context or screenshots about the feature request here.

pgouband commented 1 year ago

Hi @cwise24,

Thank you for your feedback. We will update the documentation. Here an example of ansible playbook to create an IPv6 self-IP.

- hosts: all
  collections:
    - f5networks.f5_modules
  connection: local

  vars:
    provider:
      server: "X.X.X.X"
      user: "admin"
      password: "mysecretpassword"
      server_port: 443
      validate_certs: no

  tasks:
    - name: Create Self IP
      bigip_selfip:
        provider: "{{ provider }}"
        address: fe80::10
        name: self1
        netmask: "ffff:ffff:ffff:ffff::"
        vlan: vlan1
      delegate_to: localhost
gabetellier commented 1 year ago

Submitted a pull request to fix this issue: Description: address: description:

EXAMPLE