def METHOD_NAME(portchannel_name):
    configdb = ConfigDBConnector()
    configdb.connect()
    config = configdb.get_config()
    portchannel_interfaces = config["PORTCHANNEL_INTERFACE"]
    for key in portchannel_interfaces:
        if not is_ip_prefix_in_key(key):
            continue
        pc, ip = key
        ip = ip.split("/")[0]
        if pc == portchannel_name and ipaddress.ip_address(ip).version == 4:
            return ip
    sys.stderr.write("Portchannel %s doesn't have IPV4 address. Please Check!\n" % portchannel)
    sys.exit(1)