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

Allow the static ip address to be assigned even if there's no actual gateway #1

Open
syangsao opened this issue Jul 26, 2017 · 1 comment

Comments

@syangsao
Copy link

syangsao commented Jul 26, 2017

The current ovirt_host_networks requires a gateway to be specified when using the "static" option for the boot_protocol value. For private networks that do not have a gateway, this should be allowed to pass. RHV 4.1 does allow the creation of a network without the gateway being specified.

ovirt-network

@machacekondra
Copy link
Owner

@syangsao It works for me just fine:

  - name: Assign test network to eth2
    ovirt_host_networks:
      auth: "{{ ovirt_auth }}"
      name: host1
      interface: eth2
      networks:
        - name: test2
          boot_protocol: static
          address: 1.2.3.5
          netmask: 255.255.255.0
          version: v4
      save: true
      check: true

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

No branches or pull requests

2 participants