Skip to content

Commit

Permalink
Add ansible var to cleanup non configured interfaces
Browse files Browse the repository at this point in the history
This would allow to remove interfaces that exist but aren't specified
in the provided nic config, if required.

Signed-off-by: rabi <ramishra@redhat.com>
  • Loading branch information
rabi committed Jan 27, 2025
1 parent ec4f092 commit 262e028
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/edpm_network_config/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ edpm_network_config_safe_defaults: true
edpm_network_config_template: ""
edpm_bond_interface_ovs_options: "bond_mode=active-backup"
edpm_dns_search_domains: []
edpm_network_config_nonconfigured_cleanup: false
1 change: 1 addition & 0 deletions roles/edpm_network_config/tasks/os_net_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
msg: "{{ os_net_config_config['content'] | b64decode | trim }}"
- name: Run edpm_os_net_config_module with network_config
edpm_os_net_config:
cleanup: "{{ edpm_network_config_nonconfigured_cleanup }}"
config_file: "{{ nic_config_file }}"
debug: "{{ edpm_network_config_debug | bool }}"
detailed_exit_codes: true
Expand Down

0 comments on commit 262e028

Please sign in to comment.