def is_issu_status_enabled():
    ' This function parses the SAI XML profile used for mlnx to\n    get whether ISSU is enabled or disabled\n    @return: True/False\n    '
    issu_enabled = False
    sai_profile_path = '/{}/sai.profile'.format(HWSKU_PATH)
    DOCKER_CAT_COMMAND = 'docker exec {container_name} cat {path}'
    command = DOCKER_CAT_COMMAND.format(container_name=CONTAINER_NAME, path=sai_profile_path)
    (sai_profile_content, _) = run_command(command, print_to_console=False)
    sai_profile_kvs = {}
    for line in sai_profile_content.split('\n'):
        if (not (SAI_PROFILE_DELIMITER in line)):
            continue
        (key, value) = line.split(SAI_PROFILE_DELIMITER)
        sai_profile_kvs[key] = value.strip()
    try:
        sai_xml_path = sai_profile_kvs['SAI_INIT_CONFIG_FILE']
    except KeyError:
        click.echo('Failed to get SAI XML from sai profile', err=True)
        sys.exit(1)
    command = DOCKER_CAT_COMMAND.format(container_name=CONTAINER_NAME, path=sai_xml_path)
    (sai_xml_content, _) = run_command(command, print_to_console=False)
    try:
        root = ET.fromstring(sai_xml_content)
    except ET.ParseError:
        click.echo('Failed to parse SAI xml', err=True)
        sys.exit(1)
    el = root.find('platform_info').find('issu-enabled')
    if (el is not None):
        issu_enabled = (int(el.text) == 1)
    return issu_enabled
This function parses the SAI XML profile used for mlnx to
get whether ISSU is enabled or disabled
@return: True/False
def is_issu_status_enabled():
    ' This function parses the SAI XML profile used for mlnx to\n    get whether ISSU is enabled or disabled\n    @return: True/False\n    '
    issu_enabled = False
    sai_profile_path = '/{}/sai.profile'.format(HWSKU_PATH)
    DOCKER_CAT_COMMAND = 'docker exec {container_name} cat {path}'
    command = DOCKER_CAT_COMMAND.format(container_name=CONTAINER_NAME, path=sai_profile_path)
    (sai_profile_content, _) = run_command(command, print_to_console=False)
    sai_profile_kvs = {}
    for line in sai_profile_content.split('\n'):
        if (not (SAI_PROFILE_DELIMITER in line)):
            continue
        (key, value) = line.split(SAI_PROFILE_DELIMITER)
        sai_profile_kvs[key] = value.strip()
    try:
        sai_xml_path = sai_profile_kvs['SAI_INIT_CONFIG_FILE']
    except KeyError:
        click.echo('Failed to get SAI XML from sai profile', err=True)
        sys.exit(1)
    command = DOCKER_CAT_COMMAND.format(container_name=CONTAINER_NAME, path=sai_xml_path)
    (sai_xml_content, _) = run_command(command, print_to_console=False)
    try:
        root = ET.fromstring(sai_xml_content)
    except ET.ParseError:
        click.echo('Failed to parse SAI xml', err=True)
        sys.exit(1)
    el = root.find('platform_info').find('issu-enabled')
    if (el is not None):
        issu_enabled = (int(el.text) == 1)
    return issu_enabled