Skip to content

'show devices diff' or 'pull diff' doen't work in case of 'default format cli' #228

@v1shnya

Description

@v1shnya

Setting default format cli I'm getting a nasty error trying to achieve the base product functionality

nobody@controller> show devices diff
Oct 24 11:48:27.120278: compare_device_config_type: 1797: XML error: Get configuration: application operation-failed Format not supported
CLI command error

At the same time show compare function has an xml extension that makes it working.

Looking at the code if I would say I suggest to modify rpc_datastore_diff func in clixon-controller/src/controller_rpc.c just to replace unsupported formats with supported

if (format != FORMAT_XML && format != FORMAT_TEXT){

        if (format != FORMAT_XML && format != FORMAT_TEXT){
            if (netconf_operation_failed(cbret, "application", "Format not supported")< 0)
                goto done;
            goto ok;
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions