<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article NSO: netconf-ned-builderでJunos NEDを生成する in [TKB] ネットワークインフラ ドキュメント</title>
    <link>https://community.cisco.com/t5/tkb-%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/nso-netconf-ned-builder%E3%81%A7junos-ned%E3%82%92%E7%94%9F%E6%88%90%E3%81%99%E3%82%8B/ta-p/4261044</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;H1&gt;NSO 5.3でのJunos NETCONF NED対応について&lt;/H1&gt;&lt;P&gt;下記URLに記載がある通り、NSO5.3以降ではJunosのNETCONF NEDがNativeで対応するという発表がされています。&lt;A href="https://community.cisco.com/kxiwq67737/attachments/kxiwq67737/5672j-blogs-dev-nso/247/1/Going%20Junos%20Native%20with%20NSO.pdf" target="_blank" rel="noopener"&gt;https://community.cisco.com/kxiwq67737/attachments/kxiwq67737/5672j-blogs-dev-nso/247/1/Going%20Junos%20Native%20with%20NSO.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ChangesでもNSO5.3でNETCONFでJunosが操作できるようになっていることが明記されています。&lt;/P&gt;&lt;PRE&gt;NSO-5.3 [November 29, 2019]&lt;BR /&gt;===========================-   &lt;BR /&gt;ncs: Add special handling to allow NSO to manage Juniper JunOS devices&lt;BR /&gt;    in RFC-compliant mode over NETCONF. When a JunOS device is detected to&lt;BR /&gt;    run in RFC-compatible mode, NSO determines the capabilities from the&lt;BR /&gt;    list of schemas announced in the ietf-netconf-monitoring model and&lt;BR /&gt;    disables special handling used for JunOS devices managed over&lt;BR /&gt;    conventional JunOS XML API.&lt;BR /&gt;    NSO supports RFC-compliant mode of operation for JunOS devices with&lt;BR /&gt;    software version 18.4 or greater and both RFC-compliant and&lt;BR /&gt;    YANG-compliant configuration parameters set. Managing the JunOS devices&lt;BR /&gt;    with RFC-compliant behaviour switched off is still supported over the&lt;BR /&gt;    conventional JunOS XML protocol, using the juniper-junos NED.    (ENG-18935, RT:34063, PS-29235)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;NSOにはnetconf-ned-builderという機能が搭載されており、RFCに準拠しているNetconfに対応している装置であればschema(YANG)を取得後、NEDをbuildすることが可能です。&lt;/P&gt;&lt;P&gt;上述のJunosのNETCONF NEDのNative化について要約すると下記のようになります。&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;以前のJunosではRFC準拠していないNETCONFで動作していたため、Junos用のNEDで特別対応をしていた&lt;/LI&gt;&lt;LI&gt;NSO5.3からはJunos用のNEDが必要なくなった&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;しかし、上記の情報ではあまりイメージが掴めなかったため、実際に動作確認をした結果を下記に記載しております。&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-template-content-zone"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;環境&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;NSO5.3.1.1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;vMX(18.4R3-S3)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;手順&lt;/H2&gt;&lt;H3&gt;NSO netconf-ned-builderの手順&lt;/H3&gt;&lt;P&gt;NSOの手順については下記がそのまま参考になります。IOSの部分をJunosに読み替えて実施が可能です。&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/t5/%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9%E3%82%B9%E3%83%88%E3%83%A9%E3%82%AF%E3%83%81%E3%83%A3-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/nso-netconf-ned-builder-%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6-netconf-ned-%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B/ta-p/4125080" target="_blank" rel="noopener"&gt;https://community.cisco.com/t5/%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9%E3%82%B9%E3%83%88%E3%83%A9%E3%82%AF%E3%83%81%E3%83%A3-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/nso-netconf-ned-builder-%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6-netconf-ned-%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B/ta-p/4125080&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Junos側の手順&lt;/H3&gt;&lt;P&gt;Junos側では下記の手順を踏む必要があります。&lt;/P&gt;&lt;H3&gt;NETCONFの有効化&lt;/H3&gt;&lt;P&gt;JunosでNETCONFサーバーを有効化します&lt;/P&gt;&lt;PRE&gt;[edit]
root# set system services netconf ssh

[edit]
root# show | compare
[edit system services ssh]
+    root-login allow;
[edit system services]
+    netconf {
+        ssh;
+    }

[edit]
root# commit
commit complete&lt;/PRE&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;H3&gt;NETCONFのrfc-compliant/yang-compliantモードの有効化&lt;/H3&gt;&lt;P&gt;JunosのNETCONFは標準ではrfc非準拠のモードで動作しているようので、rfc-compliant/yang-compliantモードを有効化する必要があります。&lt;/P&gt;&lt;PRE&gt;root# set system services netconf rfc-compliant[edit]&lt;BR /&gt;root# show | compare&lt;BR /&gt;[edit system services netconf]&lt;BR /&gt;+    rfc-compliant;[edit]&lt;BR /&gt;root# commit&lt;BR /&gt;commit complete[edit]&lt;BR /&gt;root#&lt;/PRE&gt;&lt;P&gt;rfc-compliant/yang-compliantモードをenableにしないと、netconf-ned-builderではschemaのdownloadの時にerrorが発生します。&lt;/P&gt;&lt;PRE&gt;admin@ncs# show netconf-ned-builder project junos 184 module status
NAME                                   REVISION    STATUS
----------------------------------------------------------------------------
ietf-inet-types                        2013-07-15  selected,download-error
ietf-netconf                           2011-06-01  selected,download-error
junos-common-types                     2020-01-01  selected,download-error
junos-conf-access                      2020-01-01  selected,download-error
junos-conf-access-profile              2020-01-01  selected,download-error&lt;/PRE&gt;&lt;P&gt;また、rfc-compliant/yang-compliantモードはJunos15.1以降で対応のため、14.xでは動作しない可能性があります（未検証）&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/rfc-compliant-edit-system-services-netconf.html" target="_blank" rel="noopener"&gt;https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/rfc-compliant-edit-system-services-netconf.html&lt;/A&gt;&lt;/P&gt;&lt;H2&gt;動作確認&lt;/H2&gt;&lt;P&gt;buildされたNEDの設定&lt;/P&gt;&lt;PRE&gt;admin@ncs(config)# devices device junos184 device-type netconf ned-id junos-nc-184
admin@ncs(config-device-junos184)# commit
Commit complete.&lt;/PRE&gt;&lt;P&gt;sync-from&lt;/P&gt;&lt;PRE&gt;admin@ncs# devices device junos184 sync-from
result true
admin@ncs#&lt;/PRE&gt;&lt;P&gt;ユーザーの設定&lt;/P&gt;&lt;PRE&gt;admin@ncs(config)# devices device junos184 config configuration system login user test uid 5000 class super-user authentication encrypted-password test
admin@ncs(config-user-test)# commit dry-run
cli {
    local-node {
        data  devices {
                  device junos184 {
                      config {
                          configuration {
                              system {
                                  login {
             +                        user test {
             +                            uid 5000;
             +                            class super-user;
             +                            authentication {
             +                                encrypted-password test;
             +                            }
             +                        }
                                  }
                              }
                          }
                      }
                  }
              }
    }
}
admin@ncs(config-user-test)# commit
Commit complete.
admin@ncs(config-user-test)#&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 04:48:15 GMT</pubDate>
    <dc:creator>Tomoya Watanabe</dc:creator>
    <dc:date>2021-01-18T04:48:15Z</dc:date>
    <item>
      <title>NSO: netconf-ned-builderでJunos NEDを生成する</title>
      <link>https://community.cisco.com/t5/tkb-%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/nso-netconf-ned-builder%E3%81%A7junos-ned%E3%82%92%E7%94%9F%E6%88%90%E3%81%99%E3%82%8B/ta-p/4261044</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;&lt;H1&gt;NSO 5.3でのJunos NETCONF NED対応について&lt;/H1&gt;&lt;P&gt;下記URLに記載がある通り、NSO5.3以降ではJunosのNETCONF NEDがNativeで対応するという発表がされています。&lt;A href="https://community.cisco.com/kxiwq67737/attachments/kxiwq67737/5672j-blogs-dev-nso/247/1/Going%20Junos%20Native%20with%20NSO.pdf" target="_blank" rel="noopener"&gt;https://community.cisco.com/kxiwq67737/attachments/kxiwq67737/5672j-blogs-dev-nso/247/1/Going%20Junos%20Native%20with%20NSO.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ChangesでもNSO5.3でNETCONFでJunosが操作できるようになっていることが明記されています。&lt;/P&gt;&lt;PRE&gt;NSO-5.3 [November 29, 2019]&lt;BR /&gt;===========================-   &lt;BR /&gt;ncs: Add special handling to allow NSO to manage Juniper JunOS devices&lt;BR /&gt;    in RFC-compliant mode over NETCONF. When a JunOS device is detected to&lt;BR /&gt;    run in RFC-compatible mode, NSO determines the capabilities from the&lt;BR /&gt;    list of schemas announced in the ietf-netconf-monitoring model and&lt;BR /&gt;    disables special handling used for JunOS devices managed over&lt;BR /&gt;    conventional JunOS XML API.&lt;BR /&gt;    NSO supports RFC-compliant mode of operation for JunOS devices with&lt;BR /&gt;    software version 18.4 or greater and both RFC-compliant and&lt;BR /&gt;    YANG-compliant configuration parameters set. Managing the JunOS devices&lt;BR /&gt;    with RFC-compliant behaviour switched off is still supported over the&lt;BR /&gt;    conventional JunOS XML protocol, using the juniper-junos NED.    (ENG-18935, RT:34063, PS-29235)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;NSOにはnetconf-ned-builderという機能が搭載されており、RFCに準拠しているNetconfに対応している装置であればschema(YANG)を取得後、NEDをbuildすることが可能です。&lt;/P&gt;&lt;P&gt;上述のJunosのNETCONF NEDのNative化について要約すると下記のようになります。&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;以前のJunosではRFC準拠していないNETCONFで動作していたため、Junos用のNEDで特別対応をしていた&lt;/LI&gt;&lt;LI&gt;NSO5.3からはJunos用のNEDが必要なくなった&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;しかし、上記の情報ではあまりイメージが掴めなかったため、実際に動作確認をした結果を下記に記載しております。&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-template-content-zone"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;環境&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;NSO5.3.1.1&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;vMX(18.4R3-S3)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;手順&lt;/H2&gt;&lt;H3&gt;NSO netconf-ned-builderの手順&lt;/H3&gt;&lt;P&gt;NSOの手順については下記がそのまま参考になります。IOSの部分をJunosに読み替えて実施が可能です。&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/t5/%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9%E3%82%B9%E3%83%88%E3%83%A9%E3%82%AF%E3%83%81%E3%83%A3-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/nso-netconf-ned-builder-%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6-netconf-ned-%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B/ta-p/4125080" target="_blank" rel="noopener"&gt;https://community.cisco.com/t5/%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9%E3%82%B9%E3%83%88%E3%83%A9%E3%82%AF%E3%83%81%E3%83%A3-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/nso-netconf-ned-builder-%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6-netconf-ned-%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B/ta-p/4125080&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;Junos側の手順&lt;/H3&gt;&lt;P&gt;Junos側では下記の手順を踏む必要があります。&lt;/P&gt;&lt;H3&gt;NETCONFの有効化&lt;/H3&gt;&lt;P&gt;JunosでNETCONFサーバーを有効化します&lt;/P&gt;&lt;PRE&gt;[edit]
root# set system services netconf ssh

[edit]
root# show | compare
[edit system services ssh]
+    root-login allow;
[edit system services]
+    netconf {
+        ssh;
+    }

[edit]
root# commit
commit complete&lt;/PRE&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;H3&gt;NETCONFのrfc-compliant/yang-compliantモードの有効化&lt;/H3&gt;&lt;P&gt;JunosのNETCONFは標準ではrfc非準拠のモードで動作しているようので、rfc-compliant/yang-compliantモードを有効化する必要があります。&lt;/P&gt;&lt;PRE&gt;root# set system services netconf rfc-compliant[edit]&lt;BR /&gt;root# show | compare&lt;BR /&gt;[edit system services netconf]&lt;BR /&gt;+    rfc-compliant;[edit]&lt;BR /&gt;root# commit&lt;BR /&gt;commit complete[edit]&lt;BR /&gt;root#&lt;/PRE&gt;&lt;P&gt;rfc-compliant/yang-compliantモードをenableにしないと、netconf-ned-builderではschemaのdownloadの時にerrorが発生します。&lt;/P&gt;&lt;PRE&gt;admin@ncs# show netconf-ned-builder project junos 184 module status
NAME                                   REVISION    STATUS
----------------------------------------------------------------------------
ietf-inet-types                        2013-07-15  selected,download-error
ietf-netconf                           2011-06-01  selected,download-error
junos-common-types                     2020-01-01  selected,download-error
junos-conf-access                      2020-01-01  selected,download-error
junos-conf-access-profile              2020-01-01  selected,download-error&lt;/PRE&gt;&lt;P&gt;また、rfc-compliant/yang-compliantモードはJunos15.1以降で対応のため、14.xでは動作しない可能性があります（未検証）&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/rfc-compliant-edit-system-services-netconf.html" target="_blank" rel="noopener"&gt;https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/rfc-compliant-edit-system-services-netconf.html&lt;/A&gt;&lt;/P&gt;&lt;H2&gt;動作確認&lt;/H2&gt;&lt;P&gt;buildされたNEDの設定&lt;/P&gt;&lt;PRE&gt;admin@ncs(config)# devices device junos184 device-type netconf ned-id junos-nc-184
admin@ncs(config-device-junos184)# commit
Commit complete.&lt;/PRE&gt;&lt;P&gt;sync-from&lt;/P&gt;&lt;PRE&gt;admin@ncs# devices device junos184 sync-from
result true
admin@ncs#&lt;/PRE&gt;&lt;P&gt;ユーザーの設定&lt;/P&gt;&lt;PRE&gt;admin@ncs(config)# devices device junos184 config configuration system login user test uid 5000 class super-user authentication encrypted-password test
admin@ncs(config-user-test)# commit dry-run
cli {
    local-node {
        data  devices {
                  device junos184 {
                      config {
                          configuration {
                              system {
                                  login {
             +                        user test {
             +                            uid 5000;
             +                            class super-user;
             +                            authentication {
             +                                encrypted-password test;
             +                            }
             +                        }
                                  }
                              }
                          }
                      }
                  }
              }
    }
}
admin@ncs(config-user-test)# commit
Commit complete.
admin@ncs(config-user-test)#&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 04:48:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tkb-%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9-%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88/nso-netconf-ned-builder%E3%81%A7junos-ned%E3%82%92%E7%94%9F%E6%88%90%E3%81%99%E3%82%8B/ta-p/4261044</guid>
      <dc:creator>Tomoya Watanabe</dc:creator>
      <dc:date>2021-01-18T04:48:15Z</dc:date>
    </item>
  </channel>
</rss>

