Skip to content

Commit

Permalink
Added MGMT IP & NIC support for pfSense
Browse files Browse the repository at this point in the history
  • Loading branch information
AllRWeak authored and bl0way committed Dec 8, 2023
1 parent 4eb6c5d commit 0879312
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nova/core/roles/configure_networking/templates/pfsense.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ pfsense_interfaces:
{% if (ip_address.mode == "ipv6_static") and (ip_address.gateway != none) %}
- gatewayv6: WANGWv6
{% endif %}
{% if (ip_address.mode == "ipv4_static") and (ip_address.pool_id | regex_search("mgmt.*")) %}
- ipaddr: "{{ ip_address.address | ansible.utils.ipaddr('address') }}"
- subnet: "{{ ip_address.address | ansible.utils.ipaddr('prefix') }}"
{% endif %}
{% if (ip_address.mode == "ipv6_static") and (ip_address.pool_id | regex_search("mgmt.*")) %}
- ipaddrv6: "{{ ip_address.address | ansible.utils.ipaddr('address') }}"
- subnetv6: "{{ ip_address.address | ansible.utils.ipaddr('prefix') }}"
{% endif %}
{% endfor %}
{% endfor %}

Expand Down

0 comments on commit 0879312

Please sign in to comment.