Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate lines emitted by cli_show_config (cli output style) when yang list element has composite key #258

Closed
pheller opened this issue Aug 17, 2021 · 0 comments

Comments

@pheller
Copy link
Contributor

pheller commented Aug 17, 2021

Given the openconfig-system and openconfig-system-logging modules, there is the following schema (excerpt):

      list selector {
        key "facility severity";
        description
          "List of selectors for log messages";

Given the following configuration that utilizes this schema:

set system logging console selectors selector oc-log:USER EMERGENCY
set system logging console selectors selector oc-log:USER EMERGENCY config facility oc-log:USER
set system logging console selectors selector oc-log:USER EMERGENCY config severity EMERGENCY

show configuration cli returns the following response:

system logging console selectors selector oc-log:USER EMERGENCY
system logging console selectors selector oc-log:USER EMERGENCY
system logging console selectors selector oc-log:USER EMERGENCY config facility oc-log:USER
system logging console selectors selector oc-log:USER EMERGENCY config severity EMERGENCY

whereas show configuration text correctly returns the following response (excerpted):

    logging {
        console {
            selectors {
                selector {
                    facility oc-log:USER;
                    severity EMERGENCY;
                    config {
                        facility oc-log:USER;
                        severity EMERGENCY;
                    }
                }
            }
        }
    }
@olofhagsand olofhagsand self-assigned this Aug 24, 2021
olofhagsand added a commit that referenced this issue Sep 9, 2021
…e) when yang list element has composite key](#258)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants