...
The SDN-C version is decided to upgrade from version 1.8.1 to 2.2.3 to .
Table of Contents |
---|
References:
Jira server ONAP Jira serverId 425b2b0a-557c-3c0c-b515-579789cceedb key CCSDK-3582
The original result for the legacy URL using SDNC version 1.8.1 .
Endpoint Test Results
is the following:
Legacy URL | Result |
---|
http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Endpoint Test Results
The following are the results of using the URLs to get nodes using the new version SDNC 2.2.3.
URL | Result | Notes | ||||
---|---|---|---|---|---|---|
http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=PNFDemo/yang-ext:mount/turing-machine:turing-machine |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSIT/CCSDK Automation Issues
...
Ticket logged:Â
Jira | ||||||
---|---|---|---|---|---|---|
|
Where were we?
Our integration (and manual) testing using SDN-C v.1.8.1 worked fine. At a high level the setup followed these steps
- pre-generated (?) zip (csit/plans/cps/sdnc/certs) extract to /opt/opendaylight/current/certsÂ
- Install SDN-C v 1.8.1
- Mount a node
- Execute /rests and /restconf requests to nodes successfully either manual and directly to SND-C or using CPS services
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
# ============LICENSE_START=======================================================
# Copyright (C) 2021 Nordix Foundation
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ============LICENSE_END=========================================================
version: '3'
services:
mariadb:
image: mariadb:10.1.11
ports:
- "3306:3306"
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=password
hostname:
mariadb.so.testlab.onap.org
logging:
driver: "json-file"
options:
max-size: "30m"
max-file: "5"
sdnc:
image: onap/sdnc-image:1.8.1
container_name: sdnc
volumes:
- /etc/localtime:/etc/localtime:ro
- ./certs:/opt/opendaylight/current/certs
entrypoint: ["/opt/onap/sdnc/bin/startODL.sh"]
ports:
- "8282:8181"
hostname:
sdnc
depends_on:
- mariadb
environment:
- MYSQL_ROOT_PASSWORD=password
- SDNC_CONFIG_DIR=/opt/onap/sdnc/data/properties
- MYSQL_PASSWD=password
- ODL_CERT_DIR=/opt/opendaylight/current/certs
- ODL_ADMIN_USERNAME=admin
- ODL_ADMIN_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
dns:
- ${DNS_IP_ADDR-10.0.100.1}
logging:
driver: "json-file"
options:
max-size: "30m"
max-file: "5"
extra_hosts:
- sdnctldb02:${LOCAL_IP}
- sdnctldb01:${LOCAL_IP}
- dbhost:${LOCAL_IP} |
Where are we now?
Installing pre-existing certs.This caused issues with SDN-C v. 2.2.3 installation, so we removed this step[ (we assume SDN-C now includes its own and/or ODL certs)Install SDN-C (output includes details on ODL certification installation)
Code Block language yml title SDNC Certificate Success collapse true 100% [========================================================================] Karaf started in 44s. Bundle stats: 433 active, 434 total Certificate installation in progress. Elapsed time - 60 secs. Waiting for 10 secs before checking the status.. Certificate installation in progress. Elapsed time - 70 secs. Waiting for 10 secs before checking the status.. Certificate installation in progress. Elapsed time - 80 secs. Waiting for 10 secs before checking the status.. Certificate installation in progress. Elapsed time - 90 secs. Waiting for 10 secs before checking the status.. Start cert provisioning. Log file: /opt/opendaylight/current/data/log/installCerts.log Certificate installation script completed execution Everything OK in Certificate Installation
- Mount Node
- RestConf queries work fine:
We can also query SDNC to return all nodes using http://localhost:8282/restconf/config/network-topology:network-topology/topology/topology-netconf
the nodes can also be retrieved using /restconf /rest based request fail
http://localhost:8282/rests/data/network-topology:network-topology/topology=topology-netconf/node=DemoNode/yang-ext:mount/turing-machine:turing-machine we receive the following error:Code Block language yml title Postman Response linenumbers true { "errors": { "error": [ { "
...
error-tag": "
...
resource-
...
denied-
...
transport",
...
"
...
error-type":
...
"protocol",
...
"
...
error-message":
...
"Mount point does
...
not exist." } ]
...
} }
CPS CSIT test fail with same root cause
Info icon false title CSIT Error 09:49:08.028 [http-nio-8080-exec-8] ERROR o.o.c.n.d.e.DmiExceptionHandler - Exception occurred
org.springframework.web.client.HttpServerErrorException$ServiceUnavailable: 503 Service Unavailable: [{"errors":{"error":[{"error-tag":"resource-denied-transport","error-type":"protocol","error-message":"Mount point does not exist."}]}}]
Summary
Perhaps there is a change in the way /rests behaves that we are unfamiliar with or perhaps our configuration is incorrect. To sum up: we can successfully start SDNC, mount a node, query nodes using /restconf but all /rests calls seem to fail. This could be an issue with certs or TLS.
Open Questions
# | Question/Issue | Notes/Decision | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Are we to generate certs for SDNC ourselves or can we rely on the certs used as part of SDNC itself? | As mentioned on https://docs.onap.org/projects/onap-sdnc-oam/en/istanbul/cert_installation.html certs folder is required as part of installing SDNC through docker-compose | |||||||||||
2 | Do we have some incorrect config in our docker-compose file?Â
| Need mount to specific files, see https://gerrit.onap.org/r/c/cps/+/126945/14..15/csit/plans/cps/sdnc/docker-compose.yml Original guide used for sdnc docker-compose can be found here: Istanbul - Run. | |||||||||||
3 | CPS has certs within our repo which were generated for previous versions of SDNC. If we mount the volume as such: volumes: 18:23:42 2022-02-07 18:09:57,310 - root - ERROR - Error while extracting zip file(s). Exiting Certificate Installation. This is how we installed and used certs for SDNC 1.8.1 so has the process of accessing the certs changed? | This was resolved by adding separate volume mounts for the files contained with the certs folder. Â Old:
New:
|
Code Block | ||
---|---|---|
| ||
{
"ietf-netconf-monitoring:netconf-state": {
"schemas": {
"schema": [
{
"identifier": "ietf-tls-server",
"version": "2016-11-02",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-tls-server",
"location": [
"NETCONF"
]
},
{
"identifier": "nc-notifications",
"version": "2008-07-14",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:netmod:notification",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-ssh-server",
"version": "2016-11-02",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-ssh-server",
"location": [
"NETCONF"
]
},
{
"identifier": "turing-machine",
"version": "2013-12-27",
"format": "ietf-netconf-monitoring:yang",
"namespace": "http://example.net/turing-machine",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-yang-metadata",
"version": "2016-08-05",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-metadata",
"location": [
"NETCONF"
]
},
{
"identifier": "iana-crypt-hash",
"version": "2014-08-06",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:iana-crypt-hash",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-datastores",
"version": "2017-08-17",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-datastores",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-with-defaults",
"version": "2011-06-01",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-x509-cert-to-name",
"version": "2014-12-10",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf",
"version": "2011-06-01",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:netconf:base:1.0",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-keystore",
"version": "2016-10-31",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-keystore",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-with-defaults",
"version": "2011-06-01",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-inet-types",
"version": "2013-07-15",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-keystore",
"version": "2016-10-31",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-keystore",
"location": [
"NETCONF"
]
},
{
"identifier": "turing-machine",
"version": "2013-12-27",
"format": "ietf-netconf-monitoring:yin",
"namespace": "http://example.net/turing-machine",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-acm",
"version": "2018-02-14",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-acm",
"location": [
"NETCONF"
]
},
{
"identifier": "yang",
"version": "2017-02-20",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:1",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-yang-types",
"version": "2013-07-15",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-system",
"version": "2014-08-06",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-system",
"location": [
"NETCONF"
]
},
{
"identifier": "nc-notifications",
"version": "2008-07-14",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:netmod:notification",
"location": [
"NETCONF"
]
},
{
"identifier": "stores",
"version": "2020-09-15",
"format": "ietf-netconf-monitoring:yang",
"namespace": "org:onap:ccsdk:sample",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-yang-metadata",
"version": "2016-08-05",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-metadata",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-notifications",
"version": "2012-02-06",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-notifications",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-monitoring",
"version": "2010-10-04",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-server",
"version": "2016-11-02",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-server",
"location": [
"NETCONF"
]
},
{
"identifier": "stores",
"version": "2020-09-15",
"format": "ietf-netconf-monitoring:yin",
"namespace": "org:onap:ccsdk:sample",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-yang-types",
"version": "2013-07-15",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-yang-library",
"version": "2019-01-04",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-library",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-notifications",
"version": "2012-02-06",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-notifications",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-yang-library",
"version": "2019-01-04",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-library",
"location": [
"NETCONF"
]
},
{
"identifier": "notifications",
"version": "2008-07-14",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:netconf:notification:1.0",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-tls-server",
"version": "2016-11-02",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-tls-server",
"location": [
"NETCONF"
]
},
{
"identifier": "iana-crypt-hash",
"version": "2014-08-06",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:iana-crypt-hash",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf",
"version": "2011-06-01",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:netconf:base:1.0",
"location": [
"NETCONF"
]
},
{
"identifier": "notifications",
"version": "2008-07-14",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:netconf:notification:1.0",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-monitoring",
"version": "2010-10-04",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring",
"location": [
"NETCONF"
]
},
{
"identifier": "yang",
"version": "2017-02-20",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:1",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-x509-cert-to-name",
"version": "2014-12-10",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-inet-types",
"version": "2013-07-15",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-ssh-server",
"version": "2016-11-02",
"format": "ietf-netconf-monitoring:yang",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-ssh-server",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-datastores",
"version": "2017-08-17",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-datastores",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-server",
"version": "2016-11-02",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-server",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-netconf-acm",
"version": "2018-02-14",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-acm",
"location": [
"NETCONF"
]
},
{
"identifier": "ietf-system",
"version": "2014-08-06",
"format": "ietf-netconf-monitoring:yin",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-system",
"location": [
"NETCONF"
]
}
]
},
"statistics": {
"out-rpc-errors": 0,
"out-notifications": 0,
"in-bad-hellos": 0,
"dropped-sessions": 46,
"in-sessions": 48,
"in-rpcs": 2283,
"netconf-start-time": "2022-01-27T13:06:35Z",
"in-bad-rpcs": 0
},
"sessions": {
"session": [
{
"session-id": 45,
"source-host": "172.18.0.1",
"username": "netconf",
"login-time": "2022-02-01T09:23:24Z",
"out-rpc-errors": 0,
"transport": "ietf-netconf-monitoring:netconf-tls",
"out-notifications": 0,
"in-rpcs": 13,
"in-bad-rpcs": 0
},
{
"session-id": 48,
"source-host": "172.18.0.1",
"username": "netconf",
"login-time": "2022-02-01T09:40:24Z",
"out-rpc-errors": 0,
"transport": "ietf-netconf-monitoring:netconf-tls",
"out-notifications": 0,
"in-rpcs": 10,
"in-bad-rpcs": 0
}
]
},
"capabilities": {
"capability": [
"urn:ietf:params:netconf:capability:xpath:1.0",
"urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name?module=ietf-x509-cert-to-name&revision=2014-12-10",
"urn:ietf:params:netconf:base:1.1",
"urn:ietf:params:netconf:capability:startup:1.0",
"urn:ietf:params:netconf:capability:yang-library:1.0?revision=2019-01-04&module-set-id=23",
"urn:ietf:params:netconf:base:1.0",
"urn:ietf:params:xml:ns:yang:ietf-netconf-notifications?module=ietf-netconf-notifications&revision=2012-02-06",
"urn:ietf:params:xml:ns:yang:ietf-netconf-acm?module=ietf-netconf-acm&revision=2018-02-14",
"urn:ietf:params:xml:ns:netconf:base:1.0?module=ietf-netconf&revision=2011-06-01&features=writable-running,candidate,rollback-on-error,validate,startup,url,xpath",
"urn:ietf:params:xml:ns:netmod:notification?module=nc-notifications&revision=2008-07-14",
"urn:ietf:params:xml:ns:yang:ietf-yang-metadata?module=ietf-yang-metadata&revision=2016-08-05",
"urn:ietf:params:netconf:capability:writable-running:1.0",
"urn:ietf:params:xml:ns:yang:ietf-yang-types?module=ietf-yang-types&revision=2013-07-15",
"urn:ietf:params:netconf:capability:notification:1.0",
"http://example.net/turing-machine?module=turing-machine&revision=2013-12-27",
"urn:ietf:params:xml:ns:yang:1?module=yang&revision=2017-02-20",
"urn:ietf:params:netconf:capability:rollback-on-error:1.0",
"urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=explicit&also-supported=report-all,report-all-tagged,trim,explicit",
"urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults?module=ietf-netconf-with-defaults&revision=2011-06-01",
"urn:ietf:params:netconf:capability:candidate:1.0",
"urn:ietf:params:xml:ns:netconf:notification:1.0?module=notifications&revision=2008-07-14",
"urn:ietf:params:netconf:capability:interleave:1.0",
"urn:ietf:params:xml:ns:yang:iana-crypt-hash?module=iana-crypt-hash&revision=2014-08-06",
"urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?module=ietf-netconf-monitoring&revision=2010-10-04",
"urn:ietf:params:netconf:capability:validate:1.1",
"urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-inet-types&revision=2013-07-15",
"urn:ietf:params:netconf:capability:url:1.0",
"urn:ietf:params:xml:ns:yang:ietf-system?module=ietf-system&revision=2014-08-06&features=authentication,local-users"
]
}
},
"turing-machine:turing-machine": {
"transition-function": {
"delta": [
{
"label": "separator",
"output": {
"state": 1,
"symbol": "1"
},
"input": {
"state": 0,
"symbol": "0"
}
},
{
"label": "right end",
"output": {
"state": 2,
"head-move": "left"
},
"input": {
"state": 1,
"symbol": ""
}
},
{
"label": "write separator",
"output": {
"state": 3,
"head-move": "left",
"symbol": "0"
},
"input": {
"state": 2,
"symbol": "1"
}
},
{
"label": "right summand",
"input": {
"state": 1,
"symbol": "1"
}
},
{
"label": "go home",
"output": {
"head-move": "left"
},
"input": {
"state": 3,
"symbol": "1"
}
},
{
"label": "final step",
"output": {
"state": 4
},
"input": {
"state": 3,
"symbol": ""
}
},
{
"label": "left summand",
"input": {
"state": 0,
"symbol": "1"
}
}
]
}
},
"stores:bookstore": {
"bookstore-name": "Chapters",
"categories": [
{
"code": "02",
"books": [
{
"title": "The Golden Compass",
"price": "699",
"pub_year": 1995,
"lang": "en",
"authors": [
"Philip Pullman"
]
}
],
"name": "kids"
},
{
"code": "01",
"books": [
{
"title": "Feersum Endjinn",
"price": "895",
"pub_year": 1994,
"lang": "en",
"authors": [
"Iain M. Banks"
]
},
{
"title": "Far Horizons",
"price": "1099",
"pub_year": 1999,
"lang": "en",
"authors": [
"david Brin",
"Ursula K. Le Guin",
"Rober Silverberg",
"Orson Scott Card",
"Greg Bear",
"Joe Haldeman",
"Dan Simmons"
]
}
],
"name": "SciFi"
}
]
},
"ietf-keystore:keystore": {
"private-keys": {
"private-key": [
{
"name": "server_key",
"certificate-chains": {
"certificate-chain": [
{
"name": "server_cert",
"certificate": [
"MIIECTCCAvGgAwIBAgIBCDANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCQ1oxFjAUBgNVBAgMDVNvdXRoIE1vcmF2aWExDTALBgNVBAcMBEJybm8xDzANBgNVBAoMBkNFU05FVDEMMAoGA1UECwwDVE1DMRMwEQYDVQQDDApleGFt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dwYZzRfXoGJ5qIJQK+uJJv9noaIhfFowDW/G14Ji5pVh/YtvnOPh7aBjOj8jmzk8MqzK+TZgT7GWu48Nd/NaV8g/DNg9hlN047LaNsJly3NX3+VBlpMnA4rKwl1OnmYSirIVh9RJqNwqe6k/k="
]
}
]
}
},
{
"name": "ssh_host_rsa_key",
"algorithm": "ietf-keystore:rsa"
}
]
},
"trusted-certificates": [
{
"name": "trusted_ca_list",
"trusted-certificate": [
{
"name": "ca",
"certificate": "MIID7TCCAtWgAwIBAgIJAMtE1NGAR5KoMA0GCSqGSIb3DQEBBQUAMIGMMQswCQYDVQQGEwJDWjEWMBQGA1UECAwNU291dGggTW9yYXZpYTENMAsGA1UEBwwEQnJubzEPMA0GA1UECgwGQ0VTTkVUMQwwCgYDVQQLDANUTUMxEzARBgNVBAMMCmV4YW1wbGUgQ0ExIjAgBgkqhkiG9w0BCQEWE2V4YW1wbGVjYUBsb2NhbGhvc3QwHhcNMTQwNzI0MTQxOTAyWhcNMjQwNzIxMTQxOTAyWjCBjDELMAkGA1UEBhMCQ1oxFjAUBgNVBAgMDVNvdXRoIE1vcmF2aWExDTALBgNVBAcMBEJybm8xDzANBgNVBAoMBkNFU05FVDEMMAoGA1UECwwDVE1DMRMwEQYDVQQDDApleGFtcGxlIENBMSIwIAYJKoZIhvcNAQkBFhNleGFtcGxlY2FAbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArD3TDHPAMT2Z84orK4lMlarbgooIUCcRZyLe+QM+8KY8Hn+mGaxPEOTSL3ywszqefB/Utm2hPKLHX684iRC14ID9WDGHxPjvoPArhgFhfV+qnPfxKTgxZC12uOj4u1V9y+SkTCocFbRfXVBGpojrBuDHXkDMDEWNvr8/52YCv7bGaiBwUHolcLCUbmtKILCG0RNJyTaJpXQdAeq5Z1SJotpbfYFFtAXB32hVoLug1dzl2tjG9sb1wq3QaDExcbC5w6P65qOkNoyym9ne6QlQagCqVDyFn3vcqkRaTjvZmxauCeUxXgJoXkyWcm0lM1KMHdoTArmchw2Dz0yHHSyDAQIDAQABo1AwTjAdBgNVHQ4EFgQUc1YQIqjZsHVwlea0AB4N+ilNI2gwHwYDVR0jBBgwFoAUc1YQIqjZsHVwlea0AB4N+ilNI2gwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAI/1KH60qnw9Xs2RGfi0/IKf5EynXt4bQX8EIyVKwSkYKe04zZxYfLIl/Q2HOPYoFmm3daj5ddr0ZS1i4p4fTUhstjsYWvXs3W/HhVmFUslakkn3PrswhP77fCk6eEJLxdfyJ1C7Uudq2m1isZbKih+XF0mG1LxJaDMocSz4eAya7M5brwjy8DoOmA1TnLQFCVcpn+sCr7VC4wE/JqxyVhBCk/MuGqqM3B1j90bGFZ112ZOecyE0EDSr6IbiRBtmeNbEwOFjKXhNLYdxpBZ9D8A/368OckZkCrVLGuJNxK9UwCVTe8IhotHUqU9EqFDmxdV8oIdU/OzUwwNPA/Bd/9g=="
}
]
}
]
},
"ietf-yang-library:modules-state": {
"module-set-id": "23",
"module": [
{
"name": "ietf-ssh-server",
"revision": "2016-11-02",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-ssh-server"
},
{
"name": "ietf-netconf-acm",
"revision": "2018-02-14",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-acm"
},
{
"name": "ietf-tls-server",
"revision": "2016-11-02",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-tls-server"
},
{
"name": "ietf-yang-metadata",
"revision": "2016-08-05",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-metadata"
},
{
"name": "nc-notifications",
"revision": "2008-07-14",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:netmod:notification"
},
{
"name": "iana-crypt-hash",
"revision": "2014-08-06",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:iana-crypt-hash"
},
{
"name": "ietf-netconf-server",
"revision": "2016-11-02",
"feature": [
"tls-call-home",
"ssh-listen",
"tls-listen",
"ssh-call-home",
"listen",
"call-home"
],
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-server"
},
{
"name": "stores",
"revision": "2020-09-15",
"conformance-type": "implement",
"namespace": "org:onap:ccsdk:sample"
},
{
"name": "ietf-yang-types",
"revision": "2013-07-15",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types"
},
{
"name": "yang",
"revision": "2017-02-20",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:1"
},
{
"name": "ietf-system",
"revision": "2014-08-06",
"feature": [
"local-users",
"authentication"
],
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-system"
},
{
"name": "ietf-inet-types",
"revision": "2013-07-15",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types"
},
{
"name": "ietf-keystore",
"revision": "2016-10-31",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-keystore"
},
{
"name": "ietf-datastores",
"revision": "2017-08-17",
"conformance-type": "import",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-datastores"
},
{
"name": "ietf-yang-library",
"revision": "2019-01-04",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-library"
},
{
"name": "ietf-netconf-notifications",
"revision": "2012-02-06",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-notifications"
},
{
"name": "ietf-netconf",
"revision": "2011-06-01",
"feature": [
"writable-running",
"candidate",
"startup",
"url",
"rollback-on-error",
"validate",
"xpath"
],
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:netconf:base:1.0"
},
{
"name": "ietf-netconf-monitoring",
"revision": "2010-10-04",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"
},
{
"name": "turing-machine",
"revision": "2013-12-27",
"conformance-type": "implement",
"namespace": "http://example.net/turing-machine"
},
{
"name": "notifications",
"revision": "2008-07-14",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:netconf:notification:1.0"
},
{
"name": "ietf-x509-cert-to-name",
"revision": "2014-12-10",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-x509-cert-to-name"
},
{
"name": "ietf-netconf-with-defaults",
"revision": "2011-06-01",
"conformance-type": "implement",
"namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults"
}
]
},
"nc-notifications:netconf": {
"streams": {
"stream": [
{
"name": "nc-notifications",
"replaySupport": true
},
{
"name": "ietf-keystore",
"replaySupport": true
},
{
"name": "ietf-yang-library",
"replaySupport": false
},
{
"name": "NETCONF",
"description": "Default NETCONF stream containing all the Event Notifications.",
"replaySupport": true
},
{
"name": "ietf-netconf-notifications",
"replaySupport": true
},
{
"name": "turing-machine",
"replaySupport": true
}
]
}
},
"ietf-system:system": {
"authentication": {
"user": [
{
"name": "netconf",
"authorized-key": [
{
"name": "id_rsa",
"algorithm": "ssh-rsa",
"key-data": "AAAAB3NzaC1yc2EAAAADAQABAAABAQD4pCY/jetSrsN3ToQwSIopEwDEFps7l327brjqp8a0vXmGuNztvnNDuQyGD5lKLDeK+dGSz+aHdCnD/10rIVSVxnw/TCyGWGHsYHpXqK0ZdiJ6HXX8FqGylTJZWTiSLSDrUwk8Mq8uIk3Sdy5E9yGgKcmA5GInBQuqMhZbzt1KhLhyp67+dIJ+D3b/JzSyPRHt9XMBpGTYMEuhjBM2aH5C9pltrmRq2NIF/cST1eidhTV2wMSqGm9jwDG7CwxAeYvan1cazZIrIfY7a/rD3sbxSPlzH92nUhw8m0qneKjDWO+kzCJVlWQ/q9c6hg69N2tBctYel3WTFw1usbbG/ZCF"
}
]
}
]
}
},
"ietf-netconf-server:netconf-server": {
"listen": {
"endpoint": [
{
"name": "all-interfaces",
"ssh": {
"address": "0.0.0.0",
"port": 830,
"host-keys": {
"host-key": [
{
"name": "imported SSH key",
"public-key": "ssh_host_rsa_key"
}
]
}
}
},
{
"name": "tls_listen_endpt",
"tls": {
"address": "0.0.0.0",
"client-auth": {
"trusted-ca-certs": "trusted_ca_list",
"cert-maps": {
"cert-to-name": [
{
"id": 1,
"name": "netconf",
"map-type": "ietf-x509-cert-to-name:specified",
"fingerprint": "02:E9:38:1F:F6:8B:62:DE:0A:0B:C5:03:81:A8:03:49:A0:00:7F:8B:F3"
}
]
}
},
"port": 6513,
"certificates": {
"certificate": [
{
"name": "server_cert"
}
]
}
}
}
]
}
}
} |
Code Block | ||
---|---|---|
| ||
{
"turing-machine:turing-machine": {
"transition-function": {
"delta": [
{
"label": "separator",
"output": {
"state": 1,
"symbol": "1"
},
"input": {
"state": 0,
"symbol": "0"
}
},
{
"label": "right end",
"output": {
"state": 2,
"head-move": "left"
},
"input": {
"state": 1,
"symbol": ""
}
},
{
"label": "write separator",
"output": {
"state": 3,
"head-move": "left",
"symbol": "0"
},
"input": {
"state": 2,
"symbol": "1"
}
},
{
"label": "right summand",
"input": {
"state": 1,
"symbol": "1"
}
},
{
"label": "go home",
"output": {
"head-move": "left"
},
"input": {
"state": 3,
"symbol": "1"
}
},
{
"label": "final step",
"output": {
"state": 4
},
"input": {
"state": 3,
"symbol": ""
}
},
{
"label": "left summand",
"input": {
"state": 0,
"symbol": "1"
}
}
]
}
},
"ietf-system:system": {
"authentication": {
"user": [
{
"name": "netconf",
"authorized-key": [
{
"name": "id_rsa",
"algorithm": "ssh-rsa",
"key-data": "AAAAB3NzaC1yc2EAAAADAQABAAABAQD4pCY/jetSrsN3ToQwSIopEwDEFps7l327brjqp8a0vXmGuNztvnNDuQyGD5lKLDeK+dGSz+aHdCnD/10rIVSVxnw/TCyGWGHsYHpXqK0ZdiJ6HXX8FqGylTJZWTiSLSDrUwk8Mq8uIk3Sdy5E9yGgKcmA5GInBQuqMhZbzt1KhLhyp67+dIJ+D3b/JzSyPRHt9XMBpGTYMEuhjBM2aH5C9pltrmRq2NIF/cST1eidhTV2wMSqGm9jwDG7CwxAeYvan1cazZIrIfY7a/rD3sbxSPlzH92nUhw8m0qneKjDWO+kzCJVlWQ/q9c6hg69N2tBctYel3WTFw1usbbG/ZCF"
}
]
}
]
}
},
"stores:bookstore": {
"bookstore-name": "Chapters",
"categories": [
{
"code": "02",
"books": [
{
"title": "The Golden Compass",
"price": 699,
"pub_year": 1995,
"lang": "en",
"authors": [
"Philip Pullman"
]
}
],
"name": "kids"
},
{
"code": "01",
"books": [
{
"title": "Feersum Endjinn",
"price": 895,
"pub_year": 1994,
"lang": "en",
"authors": [
"Iain M. Banks"
]
},
{
"title": "Far Horizons",
"price": 1099,
"pub_year": 1999,
"lang": "en",
"authors": [
"david Brin",
"Ursula K. Le Guin",
"Rober Silverberg",
"Orson Scott Card",
"Greg Bear",
"Joe Haldeman",
"Dan Simmons"
]
}
],
"name": "SciFi"
}
]
},
"ietf-netconf-server:netconf-server": {
"listen": {
"endpoint": [
{
"name": "all-interfaces",
"ssh": {
"address": "0.0.0.0",
"port": 830,
"host-keys": {
"host-key": [
{
"name": "imported SSH key",
"public-key": "ssh_host_rsa_key"
}
]
}
}
},
{
"name": "tls_listen_endpt",
"tls": {
"address": "0.0.0.0",
"client-auth": {
"trusted-ca-certs": "trusted_ca_list",
"cert-maps": {
"cert-to-name": [
{
"id": 1,
"name": "netconf",
"map-type": "ietf-x509-cert-to-name:specified",
"fingerprint": "02:E9:38:1F:F6:8B:62:DE:0A:0B:C5:03:81:A8:03:49:A0:00:7F:8B:F3"
}
]
}
},
"port": 6513,
"certificates": {
"certificate": [
{
"name": "server_cert"
}
]
}
}
}
]
}
},
"ietf-keystore:keystore": {
"private-keys": {
"private-key": [
{
"name": "server_key",
"certificate-chains": {
"certificate-chain": [
{
"name": "server_cert",
"certificate": [
"MIIECTCCAvGgAwIBAgIBCDANBgkqhkiG9w0BAQsFADCBjDELMAkGA1UEBhMCQ1oxFjAUBgNVBAgM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9zucNu285ced1K/2nDZfBmvBxXnj/n7spwqOyuoIc8sR7P7YyI806Qsfhk3ybNZE5UHJFZKDRQKvRJ1t4nk9saeo87kIuNEDfYNdwYZzRfXoGJ5qIJQK+uJJv9noaIhfFowDW/G14Ji5pVh/YtvnOPh7aBjOj8jmzk8MqzK+TZgT7GWu48Nd/NaV8g/DNg9hlN047LaNsJly3NX3+VBlpMnA4rKwl1OnmYSirIVh9RJqNwqe6k/k="
]
}
]
}
},
{
"name": "ssh_host_rsa_key"
}
]
},
"trusted-certificates": [
{
"name": "trusted_ca_list",
"trusted-certificate": [
{
"name": "ca",
"certificate": "MIID7TCCAtWgAwIBAgIJAMtE1NGAR5KoMA0GCSqGSIb3DQEBBQUAMIGMMQswCQYDVQQGEwJDWjEWMBQGA1UECAwNU291dGggTW9yYXZpYTENMAsGA1UEBwwEQnJubzEPMA0GA1UECgwGQ0VTTkVUMQwwCgYDVQQLDANUTUMxEzARBgNVBAMMCmV4YW1wbGUgQ0ExIjAgBgkqhkiG9w0BCQEWE2V4YW1wbGVjYUBsb2NhbGhvc3QwHhcNMTQwNzI0MTQxOTAyWhcNMjQwNzIxMTQxOTAyWjCBjDELMAkGA1UEBhMCQ1oxFjAUBgNVBAgMDVNvdXRoIE1vcmF2aWExDTALBgNVBAcMBEJybm8xDzANBgNVBAoMBkNFU05FVDEMMAoGA1UECwwDVE1DMRMwEQYDVQQDDApleGFtcGxlIENBMSIwIAYJKoZIhvcNAQkBFhNleGFtcGxlY2FAbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArD3TDHPAMT2Z84orK4lMlarbgooIUCcRZyLe+QM+8KY8Hn+mGaxPEOTSL3ywszqefB/Utm2hPKLHX684iRC14ID9WDGHxPjvoPArhgFhfV+qnPfxKTgxZC12uOj4u1V9y+SkTCocFbRfXVBGpojrBuDHXkDMDEWNvr8/52YCv7bGaiBwUHolcLCUbmtKILCG0RNJyTaJpXQdAeq5Z1SJotpb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