HomeDevCentral

Compute CIDR prefix from netmask for RHEL network scripts

Description

Compute CIDR prefix from netmask for RHEL network scripts

Summary:
The network scripts use a CIDR notation like PREFIX=24
instead of a netmask notation.

Salt offers a cidr_to_ipv4_netmask but not the other way
around, so a new network execution module is offered.

This is a follow-up for f9dbdab3b579.

Test Plan: Unit tests are provided for network module

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D2568

Details

Provenance
derecksonAuthored on Mar 7 2022, 19:15
derecksonPushed on Mar 7 2022, 19:31
Reviewer
dereckson
Differential Revision
D2568: Compute CIDR prefix from netmask for RHEL network scripts
Parents
rOPSfb20b00e3bff: Avoid to load twice PHP OpenSSL extension
Branches
Unknown
Tags
Unknown