How use netaddr to convert subnet mask to cidr in Python
<p>How can I convert a ipv4 subnet mask to cidr notation using <code>netaddr</code> library?<br>
Example:  <code>255.255.255.0 to /24</code></p>