mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-24 02:45:12 +00:00
When deactivating a profile in libNM, we should: * Check `NM.ActionConnection` existence * Check `NM.ActionConnection.props.state` not DEACTIVATED * Use signal `state-changed` of `NM.ActionConnection`. * Only invoke `NM.Client.deactivate_connection_async()` if not in DEACTIVATING state. * Ignore `NM.ManagerError.CONNECTIONNOTACTIVE` error. This patch also introduced a new class `NetworkManagerProvider` in `module_utils/network_lsr/nm`: * Independent from Ansible but need to use absolute import due to limitation of ansible 2.8. * Provide sync function wrapping async calls of libNM. * Use stable logging method of python. * Only load this module when provider is nm. This patch also changed how logging is handling in `Cmd_nm.run_action_down()` as initial step on isolate ansible log mechanism from provider module. By moving provider codes to `module_utils` folder, we can eventually simplify the bloated `library/network_connections.py`. Signed-off-by: Gris Ge <fge@redhat.com> |
||
|---|---|---|
| .. | ||
| files | ||
| integration | ||
| playbooks | ||
| roles/linux-system-roles.network | ||
| tasks | ||
| unit | ||
| .gitignore | ||
| covstats | ||
| ensure_provider_tests.py | ||
| get_coverage.sh | ||
| get_coverage.yml | ||
| get_total_coverage.sh | ||
| merge_coverage.sh | ||
| module_utils | ||
| modules | ||
| setup_module_utils.sh | ||
| tests_802_1x_nm.yml | ||
| tests_802_1x_updated_nm.yml | ||
| tests_bond_initscripts.yml | ||
| tests_bond_nm.yml | ||
| tests_bridge_initscripts.yml | ||
| tests_bridge_nm.yml | ||
| tests_default.yml | ||
| tests_default_initscripts.yml | ||
| tests_default_nm.yml | ||
| tests_ethernet_initscripts.yml | ||
| tests_ethernet_nm.yml | ||
| tests_ethtool_features_initscripts.yml | ||
| tests_ethtool_features_nm.yml | ||
| tests_helpers_and_asserts.yml | ||
| tests_integration_pytest.yml | ||
| tests_provider_nm.yml | ||
| tests_reapply_nm.yml | ||
| tests_regression_nm.yml | ||
| tests_states_initscripts.yml | ||
| tests_states_nm.yml | ||
| tests_team_nm.yml | ||
| tests_unit.yml | ||
| tests_vlan_mtu_initscripts.yml | ||
| tests_vlan_mtu_nm.yml | ||
| tests_wireless_nm.yml | ||