the correct answer is 'Config false'
Reference from ondemandelearning Cisco platform 'Network programmability'
leaf host-name {
type string;
mandatory true;
config true;
description "Hostname for this system";
}
leaf cpu-temp {
type int32;
units degrees-celsius;
config false;
description "Current temperature in CPU";
}
NETCONF XML:
<host-name>my.example.com</host-name>
Now you will start to dive into the finer details of creating YANG modules.
The first statement that is reviewed is the leaf statement. It is arguably the most important statement to understand. It defines a single value of a particular type and it contains no children. It would be things like the IP address of an interface, the subnet mask of an interface, and so on.
As you can see, nested under each leaf are additional parameters (attributes) that are used to describe and provide constraints of the leaf. You can declare things to be mandatory, for example. You will also see here that it has a ‘config true’ which means that it is configuration data so it will be sent back on a ‘get config’ while the second leaf here, cpu-temperature, obviously it is not something that you would change using a client and something that is read-only. So that is config» false’.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
CCNPsec
5 years, 10 months ago