Hi ,
Is it possible to make container “SwitchPort” as optional (even with one of the members of the container as mandatory) so that commit is allowed even without configuring mandatory element “location” below yang schema.
please suggest if any options available.
module test-switch {
yang-version 1.1;
namespace “urn:test-switch”;
prefix “Switch”;
container SwitchPort { //optional
leaf name { //optional
type string;
}
leaf location { //mandatory
type string;
mandatory "true";
}
}
}
Thanks,
Raja