Which of the following is/are valid YANG definition(s)? 1. list someList { key "anotherLeaf"; container someContainer { leaf someLeaf { type string; } } leaf anotherLeaf { type string; } } ------------------------------------------------------------------------- 2. leaf someLeaf { type string; container someContainer { leaf anotherLeaf { type string; } } } --------------------------------------------------------------------------- 3. list someList { key "someContainer anotherLeaf"; container someContainer { leaf someLeaf { type string; } } leaf anotherLeaf { type string; } } ------------------------------------------------------------------------------- 4. container someContainer { type string; list someList { key "someLeaf"; leaf someLeaf { type string; } } }
Which of the following is/are valid YANG definition(s)?
1.
list someList {
key "anotherLeaf";
container someContainer {
leaf someLeaf {
type string;
}
}
leaf anotherLeaf {
type string;
}
}
-------------------------------------------------------------------------
2.
leaf someLeaf {
type string;
container someContainer {
leaf anotherLeaf {
type string;
}
}
}
---------------------------------------------------------------------------
3.
list someList {
key "someContainer anotherLeaf";
container someContainer {
leaf someLeaf {
type string;
}
}
leaf anotherLeaf {
type string;
}
}
-------------------------------------------------------------------------------
4.
container someContainer {
type string;
list someList {
key "someLeaf";
leaf someLeaf {
type string;
}
}
}
Step by step
Solved in 2 steps