def get_inband_info(cfg_facts):
    """
    Returns the inband port and IP addresses present in the configdb.json.

   Args:
        cfg_facts: The "ansible_facts" output from the duthost "config_facts" module.

    Returns:
        A dictionary with the inband port and IP addresses.
    """

    intf = cfg_facts['VOQ_INBAND_INTERFACE']
    ret = {}
    for a_intf in intf:
        for addrs in intf[a_intf]:
            ret['port'] = a_intf
            intf_ip = addrs.split('/')
            if ':' in intf_ip[0]:
                ret['ipv6_addr'] = intf_ip[0]
                ret['ipv6_mask'] = intf_ip[1]
            elif ':' not in intf_ip[0]:
                ret['ipv4_addr'] = intf_ip[0]
                ret['ipv4_mask'] = intf_ip[1]
    return ret