X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fcallhome-model%2Fsrc%2Fmain%2Fyang%2Fodl-netconf-callhome-server.yang;h=2ca3e96a462faa7ed3a45e5b8d770d620b38a5a3;hb=aab675bb3b93911cfd28f94e6102ddfa772db77a;hp=4a4d168316538e3c40633fa046df7335acb52792;hpb=4ac4b04b18e2667d43109b730dcd362038f9d4f9;p=netconf.git diff --git a/netconf/callhome-model/src/main/yang/odl-netconf-callhome-server.yang b/netconf/callhome-model/src/main/yang/odl-netconf-callhome-server.yang index 4a4d168316..2ca3e96a46 100644 --- a/netconf/callhome-model/src/main/yang/odl-netconf-callhome-server.yang +++ b/netconf/callhome-model/src/main/yang/odl-netconf-callhome-server.yang @@ -63,11 +63,43 @@ module odl-netconf-callhome-server { type string; } leaf ssh-host-key { - description "BASE-64 encoded public key which device will use during connection."; + description "BASE-64 encoded public key which device will use during connection. + Deprecated, a 'host-key' from the 'ssh-client-params' containers should be used instead."; + status deprecated; type string; } unique ssh-host-key; uses credentials; + + 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; } } }