def v4_int_to_packed(address):
    try:
        return address.to_bytes(4, 'big')
    except Exception:
        raise ValueError("Address negative or too large for IPv4")
Represent an address as 4 packed bytes in network (big-endian) order.
dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/ipaddress.py/v4_int_to_packed