From: bhanuchandra Date: Tue, 4 May 2021 14:54:21 +0000 (+0530) Subject: Added O1 netconf support through SDNR X-Git-Tag: g-release~6 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=smo%2Fo1.git;a=commitdiff_plain;h=e4c1a39a4abda7edd5782c49f1b73a5d53f8f38d Added O1 netconf support through SDNR Issue-Id: SMO-9 Signed-off-by: bhanuchandra Change-Id: I1df2be7d8bce2be78e795563bb6e07aec471a63c --- diff --git a/client/.env b/client/.env new file mode 100644 index 0000000..d492762 --- /dev/null +++ b/client/.env @@ -0,0 +1,41 @@ +################################################################################ +# Copyright 2021 highstreet technologies and others +# +# 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. +# + +COMPOSE_PROJECT_NAME=smo + +# Network settings +NETWORK_NAME=integration + +IPv4_NETWORK_SUBNET=172.40.0.0/16 +IPv4_GATEWAY=172.40.0.1 + +# Please update /etc/docker/daemon.json accordingly +# https://docs.docker.com/config/daemon/ipv6/ +IPv6_NETWORK_SUBNET=2001:db8:1:1::/64 +IPv6_GATEWAY=2001:db8:1:1::1 + +# SDN-R Database +SDNRDB_IMAGE=docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3 +IPv4_SDNRDB=172.40.0.30 +IPv6_SDNRDB=2001:db8:1:1::30 + +# SDN Controller +SDNC_IMAGE=nexus3.onap.org:10001/onap/sdnc-image:2.1.3 +IPv4_SDNC=172.40.0.21 +IPv6_SDNC=2001:db8:1:1::21 +ODL_CERT_DIR=/opt/opendaylight/current/certs +ODL_ADMIN_PASSWORD=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U + diff --git a/client/README.md b/client/README.md new file mode 100644 index 0000000..e14c3fe --- /dev/null +++ b/client/README.md @@ -0,0 +1,22 @@ +# smo-o1 +Here we use SDNR as O1 client, following steps will bringup the SDNR through docker-compose. + +prerequisite: docker, docker-compose + +$ docker-compose up -d + +Once the deployment is successful, verify the deployment + +``` +ubuntu@nodez01b03:~/oran-sc-oam/o1/client$ docker-compose ps + Name Command State Ports +------------------------------------------------------------------------------------------------------------------------------------ +sdnr /bin/sh -c /opt/onap/sdnc/ ... Up 0.0.0.0:8101->8101/tcp,:::8101->8101/tcp, 0.0.0.0:8181->8181/tcp,:::8181->8181/tcp +sdnrdb /tini -- /usr/local/bin/do ... Up 9200/tcp, 9300/tcp +``` + +SDNR GUI is accessible at http://:8181/odlux/index.html + +username/password: admin/Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U + +Note: password is configurable through .env file diff --git a/client/docker-compose.yml b/client/docker-compose.yml new file mode 100755 index 0000000..e6e9906 --- /dev/null +++ b/client/docker-compose.yml @@ -0,0 +1,71 @@ +################################################################################ +# Copyright 2021 highstreet technologies and others +# +# 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. +# +version: "2.2" +services: + sdnrdb: + image: ${SDNRDB_IMAGE} + container_name: sdnrdb + environment: + - discovery.type=single-node + networks: + integration: + ipv4_address: ${IPv4_SDNRDB} + ipv6_address: ${IPv6_SDNRDB} + + sdnr: + image: ${SDNC_IMAGE} + container_name: sdnr + ports: + - "8181:8181" + - "8101:8101" + environment: + - SDNC_CONFIG_DIR=/opt/onap/ccsdk/data/properties + - ODL_CERT_DIR=${ODL_CERT_DIR} + - ENABLE_ODL_CLUSTER=false + - SDNC_REPLICAS=0 + - CCSDK_REPLICAS=0 + - DOMAIN="" + - SDNRWT=true + - SDNRINIT=true + - SDNRONLY=true + - SDNRDBURL=http://sdnrdb:9200 + - A1_ADAPTER_NORTHBOUND=false + - ODL_ADMIN_PASSWORD=${ODL_ADMIN_PASSWORD} + - JAVA_OPTS=-Xms256m -Xmx2g + volumes: + - ./sdnr/certs/certs.properties:${ODL_CERT_DIR}/certs.properties + - ./sdnr/certs/keys0.zip:${ODL_CERT_DIR}/keys0.zip + networks: + integration: + ipv4_address: ${IPv4_SDNC} + ipv6_address: ${IPv6_SDNC} + logging: + driver: "json-file" + options: + max-size: "30m" + max-file: "5" + +networks: + integration: + driver: bridge + enable_ipv6: true + ipam: + driver: default + config: + - subnet: ${IPv4_NETWORK_SUBNET} + gateway: ${IPv4_GATEWAY} + - subnet: ${IPv6_NETWORK_SUBNET} + gateway: ${IPv6_GATEWAY} diff --git a/client/sdnr/certs/certs.properties b/client/sdnr/certs/certs.properties new file mode 100644 index 0000000..32373a4 --- /dev/null +++ b/client/sdnr/certs/certs.properties @@ -0,0 +1,2 @@ +keys0.zip +*********** diff --git a/client/sdnr/certs/keys0.zip b/client/sdnr/certs/keys0.zip new file mode 100644 index 0000000..588315f Binary files /dev/null and b/client/sdnr/certs/keys0.zip differ