}
}
- grouping netconf-node-credentials {
+ grouping username-password {
+ leaf username {
+ type string;
+ }
+
+ leaf password {
+ type string;
+ }
+ }
+ grouping netconf-node-credentials {
choice credentials {
config true;
- case login-password {
- leaf username {
- type string;
+ case login-password-deprecated {
+ description "Deprecated way of storing credentials, unencrypted.";
+
+ status deprecated;
+ uses username-password;
+ }
+ case login-pw {
+ description "login-password credentials, encrypted.";
+
+
+ container login-password {
+ uses username-password;
}
+ }
+ case login-pw-unencrypted {
+ description "login-password credentials, not encrypted.";
- leaf password {
- type string;
+ container login-password-unencrypted {
+ uses username-password;
+ }
+ }
+ case key-based {
+ description "key-pair based authentication, use the id for the pair thats stored in the keystore.";
+
+ container key-pair {
+ leaf pair-id {
+ type string;
+ }
}
}
}