[VOL-3530] Adding Sanity DT HW test for OpenOnu go adapter in Berlin
Change-Id: I5aaaf3d0443b319adfd7a5e80443391b61e4cf80
diff --git a/deployment-configs/dt-berlin-pod-openonugo-DT.yaml b/deployment-configs/dt-berlin-pod-openonugo-DT.yaml
new file mode 100644
index 0000000..59648a9
--- /dev/null
+++ b/deployment-configs/dt-berlin-pod-openonugo-DT.yaml
@@ -0,0 +1,163 @@
+---
+
+ # Copyright 2020-present Open Networking 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.
+
+ # Automated deployment configuration for Tucson pod
+
+ # Change default values in tests
+ ONOS_REST_PORT: 30120
+ ONOS_SSH_PORT: 30115
+ OLT_PORT: 9191
+ KUBERNETES_CONF: $HOME/.kube/kind-config-voltha-minimal
+
+ # This tells the control node how to reach the Kubernetes nodes.
+ nodes:
+ -
+ ip: '127.0.0.1'
+
+ fabric_switches:
+ -
+ mac: '8c:ea:1b:a7:29:72'
+ ip: 10.34.90.55
+ user: root
+ pass: onl
+ bngPort: 157
+ device_id: 'of:0000000000000001'
+
+ olts:
+ # Gpon OLT
+ -
+ ip: 10.34.90.50
+ sship: 10.34.90.50
+ user: root
+ pass: onl
+ fortygig: False
+ aggPort: 2
+ serial: EC1912001814
+ oltDebVersion: openolt_asgvolt64-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb
+ oltDebVersion23: openolt_asgvolt64-2.4.9-dev-d4aeca5a2094f7dc7c519913ab1558348c546dab.deb
+
+ hosts:
+ src:
+ #GPON ONU
+ -
+ ip: 127.0.0.1
+ user: community
+ pass: admin
+ dp_iface_name: eth1.7
+ container_type: LXC
+ container_name: voltha-client-gpon-1
+ onu: SCOM00001c82
+ olt: EC1912001814
+ c_tag: 7
+ s_tag: 31
+ power_switch_port: 1
+ -
+ ip: 10.34.90.42
+ user: community
+ pass: admin
+ dp_iface_name: eth1.7
+ container_type: LXC
+ container_name: voltha-client-gpon-2
+ onu: SCOM00001c89
+ olt: EC1912001814
+ c_tag: 7
+ s_tag: 32
+ power_switch_port: 2
+ -
+ ip: 10.34.90.42
+ user: community
+ pass: admin
+ dp_iface_name: eth1.7
+ container_type: LXC
+ container_name: voltha-client-gpon-3
+ onu: SCOM00001c96
+ olt: EC1912001814
+ c_tag: 7
+ s_tag: 33
+ power_switch_port: 4
+ -
+ ip: 10.34.90.42
+ user: community
+ pass: admin
+ dp_iface_name: eth1.7
+ container_type: LXC
+ container_name: voltha-client-gpon-4
+ onu: SCOM00001c0b
+ olt: EC1912001814
+ c_tag: 7
+ s_tag: 34
+ power_switch_port: 7
+
+ dst:
+ -
+ dp_iface_ip_qinq: 10.31.7.254
+ ip: null
+ user: null
+ pass: null
+ noroot_ip: 10.34.90.43
+ noroot_user: community
+ noroot_pass: admin
+ dp_iface_name: ens3f0
+ dp_iface_ip: null
+ dp_iface_gateway: null
+ container_type: null
+ container_name: null
+ -
+ dp_iface_ip_qinq: 10.32.7.254
+ ip: null
+ user: null
+ pass: null
+ noroot_ip: 10.34.90.43
+ noroot_user: community
+ noroot_pass: admin
+ dp_iface_name: ens3f0
+ dp_iface_ip: null
+ dp_iface_gateway: null
+ container_type: null
+ container_name: null
+ -
+ dp_iface_ip_qinq: 10.33.7.254
+ ip: null
+ user: null
+ pass: null
+ noroot_ip: 10.34.90.43
+ noroot_user: community
+ noroot_pass: admin
+ dp_iface_name: ens3f0
+ dp_iface_ip: null
+ dp_iface_gateway: null
+ container_type: null
+ container_name: null
+ -
+ dp_iface_ip_qinq: 10.34.7.254
+ ip: null
+ user: null
+ pass: null
+ noroot_ip: 10.34.90.43
+ noroot_user: community
+ noroot_pass: admin
+ dp_iface_name: ens3f0
+ dp_iface_ip: null
+ dp_iface_gateway: null
+ container_type: null
+ container_name: null
+
+ web_power_switch:
+ ip: '10.34.90.48'
+ user: 'admin'
+ password: 'secret'
+ type: 'EPC'
+
diff --git a/kubernetes-configs/dt-berlin-pod-openonugo.conf b/kubernetes-configs/dt-berlin-pod-openonugo.conf
new file mode 100755
index 0000000..92287ac
--- /dev/null
+++ b/kubernetes-configs/dt-berlin-pod-openonugo.conf
@@ -0,0 +1,19 @@
+apiVersion: v1
+clusters:
+- cluster:
+ certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRJd01Ea3lPVEE0TVRJek4xb1hEVE13TURreU56QTRNVEl6TjFvd0ZURVRNQkVHQTFVRQpBeE1LYTNWaVpYSnVaWFJsY3pDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQ2dnRUJBTmNhCmFiM1d4RHBqVm9rOTNEYURRU01IbFZMZm5IR1JVZDlWa3BPMm1VYnhBRkNSSWtKV05PNzd2cFVyUFlSOWtvQTMKRUwzeTZES09Ea0JVU281dGZ1YXh1SjYyY2ZVNWRTSmJENk9RVlFmN0NpTFh6Ylc4OXYyQXZ2MUhVeUFSazVGaQprN29MdDh4V0NiTlRBcytxVk9DcGgreDhyNDZDS1g4dU9JbDNGWFF4cEUxUzZ3cTZrcERtaHFvTmc0OEQwWDhKCk1yL0duRWNnMTBkOXN2dmkzcmpWRHEvK00xalZ2K2RTc0dnK0pFNlllaFhrMUZHNFZIUmp1VnFKSWtNck5JZlIKUW95bUk0VVlkaXVxQk13bDFLVngrdkgyTjJ1NUNYNUp6MWtxb3Awd1QvL0FucXJtNXdoVGhldXVrc1lZdUNsSQpQOHJ0ZzZRTVpqQ0kwMFc2UTRrQ0F3RUFBYU1qTUNFd0RnWURWUjBQQVFIL0JBUURBZ0trTUE4R0ExVWRFd0VCCi93UUZNQU1CQWY4d0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFEK3Q0Z29nbGdvOW9FVjlMTzlCNitHRkU1OFYKR0h4d1F5eElvRFJSVnNhSVpHK25jVG5BQ2hoKzVFODJ1UCtmS0t6NGRYR2xVcEI2aGxyZHVQdVd0ejg5YTRXNQp3L3p4d2VTUEdDeG9vSG5yRFRoZFpXSTYwd2kvU1VPVm43NS94czdqM2xlTzFxbS9YeEcrWDdrTFdJTTdqUW1NClAwOUtDOThFS3VVOFFlS0FnbEZab2l6bzcwdzd4dHpnMlZQSVFZTTYrbnhndFNUNWhYQWVTaXZKd296NElUS1IKQVRPVTVZbHordkhqWTNEbVpvR3V3OG13Zk1PTU9pSWNkS0NoZmZQdWd6cC9VUjlRVThmY3hhNWpKWCtVcFUrMwpmZllSSlV0SkVza3lEczQxR292RlNXWS91Vzd5TlNucEkrelVaMisxNi9wY1VJNE9RYm1UdGNiNklTUT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
+ server: https://127.0.0.1:44902
+ name: kind-voltha-minimal
+contexts:
+- context:
+ cluster: kind-voltha-minimal
+ user: kind-voltha-minimal
+ name: kind-voltha-minimal
+current-context: kind-voltha-minimal
+kind: Config
+preferences: {}
+users:
+- name: kind-voltha-minimal
+ user:
+ client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM4akNDQWRxZ0F3SUJBZ0lJWkx4VGpkMElTNXN3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TURBNU1qa3dPREV5TXpkYUZ3MHlNVEE1TWprd09ERXlOREphTURReApGekFWQmdOVkJBb1REbk41YzNSbGJUcHRZWE4wWlhKek1Sa3dGd1lEVlFRREV4QnJkV0psY201bGRHVnpMV0ZrCmJX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UZDRkdGkxRmIxaHZqRE9KWHJOaEtkNjMwMEZLRWNWVkM5NHp4aHliM081Z1gKSDlVY201UDdvTGpEaTNuS0F2bnNtZEwrUnR0bGIzZHp4enhlamJKSHRkdmdKT0JDeFVzdGFhREF6dElrTEc5UApjM3NKY2dTK2krc3kxTEw5NmkrY1ZvNVI1T21aU2FJMVBIYldkZGhlcW5WczJZcHZkK2J2cXc9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=
\ No newline at end of file
diff --git a/kubernetes-configs/voltha/dt-berlin-pod-openonugo.yml b/kubernetes-configs/voltha/dt-berlin-pod-openonugo.yml
new file mode 100644
index 0000000..7ceb738
--- /dev/null
+++ b/kubernetes-configs/voltha/dt-berlin-pod-openonugo.yml
@@ -0,0 +1,69 @@
+# Copyright 2019 Ciena Corporation
+#
+# 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.
+
+defaults:
+ image_tag: master
+ image_pullPolicy: Always
+
+onosSshPort: 30115
+onosApiPort: 30120
+onosOfPort: 31653
+
+individualOpenFlowNodePorts: true
+
+adapter_open_onu:
+ repository: voltha/voltha-openonu-adapter-go
+ tag: master
+
+deployments:
+ etcdOperator: true
+ backupOperator: false
+ restoreOperator: false
+
+voltha-etcd-cluster:
+ clusterSize: 1
+onos_env:
+- name: POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+- name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+- name: ONOS_APPS
+ value: "drivers,openflow-base,hostprovider"
+
+apps:
+ - org.onosproject.lldpprovider
+ - org.onosproject.openflow-base
+ - org.onosproject.gui2
+ - org.onosproject.drivers
+ - org.onosproject.mcast
+ - org.opencord.kafka
+ - org.opencord.sadis
+ - org.opencord.dhcpl2relay
+ - org.opencord.igmpproxy
+ - org.opencord.mcast
+ - org.opencord.olt
+ - org.opencord.aaa
+
+atomix:
+ persistence:
+ enabled: false
+
+# Customization for BBSIM
+kafka_broker: 'voltha-kafka.voltha.svc.cluster.local:9092'
+pon_ports: 1
+onus_per_pon_port: 1
diff --git a/tosca-configs/voltha/dt-berlin-pod-openonugo-onos-netcfg-switch.json b/tosca-configs/voltha/dt-berlin-pod-openonugo-onos-netcfg-switch.json
new file mode 100644
index 0000000..5ddbebd
--- /dev/null
+++ b/tosca-configs/voltha/dt-berlin-pod-openonugo-onos-netcfg-switch.json
@@ -0,0 +1,24 @@
+{
+ "devices": {
+ "of:0000000000000001" : {
+ "segmentrouting" : {
+ "name" : "agg-switch",
+ "ipv4NodeSid" : 101,
+ "ipv4Loopback" : "10.6.1.254",
+ "routerMac" : "00:00:00:00:01:80",
+ "isEdgeRouter" : true,
+ "adjacencySids" : []
+ },
+ "basic" : {
+ "driver" : "ofdpa3"
+ }
+ }
+ },
+ "apps": {
+ "org.opencord.dhcpl2relay" : {
+ "dhcpl2relay" : {
+ "useOltUplinkForServerPktInOut" : true
+ }
+ }
+ }
+}