+
+ choice transport {
+ description "Provides connectivity details for one of the supported transport protocols";
+ case ssh {
+ container ssh-client-params {
+ leaf host-key {
+ mandatory true;
+ description "BASE-64 encoded public key which device will use during connection.";
+ type string;
+ }
+ uses credentials;
+ }
+ }
+ case tls {
+ container tls-client-params {
+ leaf certificate-id {
+ mandatory true;
+ description "Certificate identifier which will be used during two-way TLS authentication.";
+ type string;
+ }
+ leaf key-id {
+ mandatory true;
+ description "Key identifier inside the NetConf keystore which will be used during two-way TLS authentication.";
+ type string;
+ }
+ }
+ }
+ }
+ unique certificate-id;
+ unique host-key;