'"Check IPv4 address exist'

def is_ipv4_exist(self, addr, maskstr, ipv4_type):

    addrs = self.intf_info['am4CfgAddr']
    if (not addrs):
        return False
    for address in addrs:
        if (address['ifIpAddr'] == addr):
            return ((address['subnetMask'] == maskstr) and (address['addrType'] == ipv4_type))
    return False
