'get IPv4 main address'

def get_ipv4_main_addr(self):

    addrs = self.intf_info['am4CfgAddr']
    if (not addrs):
        return None
    for address in addrs:
        if (address['addrType'] == 'main'):
            return address
    return None
