}
}
- 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;
+ 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-auth {
+ description "key-based authentication, use the id for the pair thats stored in the keystore.";
+
+ container key-based {
+ leaf key-id {
+ type string;
+ }
+
+ leaf username {
+ type string;
+ }
}
}
}
type boolean;
}
+ container protocol {
+ config true;
+ leaf name {
+ type enumeration {
+ enum SSH;
+ enum TLS;
+ }
+ default SSH;
+ }
+
+ choice specification {
+ case tls-case {
+ container tls {
+ leaf-list excluded-versions {
+ type string;
+ description "A list of TLS version names provided in JDK that are not supported by the
+ target netconf device, eg, the netopeer2 simulator does not support the
+ SSLv2Hello. Most of the time, this list need not be set";
+ }
+ }
+ }
+ }
+ }
+
leaf schemaless {
type boolean;
default false;
}
+ rpc create-device {
+ input {
+ uses netconf-node-fields;
+ leaf node-id {
+ type string;
+ }
+ }
+ }
+
+ 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";
uses netconf-node-fields;
}
+
}