Which statement indicates that an element in a YANG data model contains data that describes operational state information about the device or service?

Which statement indicates that an element in a YANG data model contains data that describes operational state information about the device or service?
A. state true
B. config false
C. mode state
D. state enabled

cisco-exams

One thought on “Which statement indicates that an element in a YANG data model contains data that describes operational state information about the device or service?

  1. B
    ref https://tools.ietf.org/html/rfc6020
    4.2.3. State Data

    YANG can model state data, as well as configuration data, based on
    the “config” statement. When a node is tagged with “config false”,
    its subhierarchy is flagged as state data, to be reported using
    NETCONF’s operation, not the operation. Parent
    containers, lists, and key leafs are reported also, giving the
    context for the state data.

    In this example, two leafs are defined for each interface, a
    configured speed and an observed speed. The observed speed is not
    configuration, so it can be returned with NETCONF operations,
    but not with operations. The observed speed is not
    configuration data, and it cannot be manipulated using .

    list interface {
    key “name”;

    leaf name {
    type string;
    }
    leaf speed {
    type enumeration {
    enum 10m;
    enum 100m;
    enum auto;
    }
    }
    leaf observed-speed {
    type uint32;
    config false;
    }
    }

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.