def getippart(ipentity):
    """
    Get the CIDR from network entity and return the first 3 octates
    """
    cidr = ""
    for prop in ipentity.properties.split("|"):
        if prop.startswith("CIDR"):
            cidr=prop.split("=")[1]
    iphead = cidr[:-4]
    return iphead