use netaddr instead of iptools module