grouping netconf-node-credentials {
choice credentials {
config true;
- case login-password-deprecated {
+ case login-password {
description "Deprecated way of storing credentials, unencrypted.";
status deprecated;
case login-pw {
description "login-password credentials, encrypted.";
-
container login-password {
uses username-password;
}
uses username-password;
}
}
- case key-based {
- description "key-pair based authentication, use the id for the pair thats stored in the keystore.";
+ case key-auth {
+ description "key-based authentication, use the id for the pair thats stored in the keystore.";
- leaf pair-id {
- type string;
+ container key-based {
+ leaf key-id {
+ type string;
+ }
+
+ leaf username {
+ type string;
+ }
}
}
}
}
- rpc add-netconf-node {
+ rpc create-device {
input {
uses netconf-node-fields;
leaf node-id {
}
}
+ rpc delete-device {
+ input {
+ leaf node-id {
+ type string;
+ }
+ }
+ }
+
augment "/nt:network-topology/nt:topology/nt:node" {
when "../../nt:topology-types/topology-netconf";
ext:augment-identifier "netconf-node";