Merge "Trying dev version of att-workflow-driver"
diff --git a/kubernetes-configs/qct-pod1.conf b/kubernetes-configs/qct-pod1.conf
new file mode 100644
index 0000000..5456a0e
--- /dev/null
+++ b/kubernetes-configs/qct-pod1.conf
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Config
+current-context: admin-cluster.local
+preferences: {}
+clusters:
+- cluster:
+ certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMrVENDQWVHZ0F3SUJBZ0lKQU01b3NCeXZYK2FuTUEwR0NTcUdTSWIzRFFFQkN3VUFNQkl4RURBT0JnTlYKQkFNTUIydDFZbVV0WTJFd0lCY05NVGd3T0RBMk1qSXdOekV5V2hnUE1qRXhPREEzTVRNeU1qQTNNVEphTUJJeApFREFPQmdOVkJBTU1CMnQxWW1VdFkyRXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCRHdBd2dnRUtBb0lCCkFRRGxMTGNaYmhBUmdISnNIV24rSHlMODVuWlprcmQ5M3AyMjZKTjdOdmdKaDllWHAvMWZKMG5EL3cyVld5UDUKMG5LanZzeDlVYXF5eHJ1SGNqNnJ0eVN0azhpb1hJUXRvaEllYmRxTGRIVTMrN0E2ZFZVblpHei9JeDM0WHlRegpuUEdWZ1ZuYkNlV2pyMURDbHVPcXlZK0k3SEwybjlucHk1TE1oNkIwSUQycWdJU0VqZk1raXVtNFBmVEtLK2NSClRNQ3lod1cwSW1tWnNadEhPMXR3N0loU2prUERPaXdkaEZPNkhLd3RQTlV3WHNqVzZ5ajdiQmJiT2UwdHkrM3cKM1NydFVLNy9YYW0vZStudGwrWkpVbStzZHJoRTdGcWtXcG9CV2RmS1J1dzhuSnFWSWlNNE9uYWIwMVNiZlllawpvdHYyU1c5OHdpcU94QXBic2NLcUpVRURBZ01CQUFHalVEQk9NQjBHQTFVZERnUVdCQlFBZ0lDeWwrbDFJdEx1CkduY0NtcURUUktFODVqQWZCZ05WSFNNRUdEQVdnQlFBZ0lDeWwrbDFJdEx1R25jQ21xRFRSS0U4NWpBTUJnTlYKSFJNRUJUQURBUUgvTUEwR0NTcUdTSWIzRFFFQkN3VUFBNElCQVFCQzVnNjNXKzlVN2ZMazZ6TmNrakN6TS9ubwpGdUhwYzdGTVpudEJEWWtDcUdXeHk2cFZ2UjJ2OVZkSCt2cWRZamNRMjlLaTFkWUxTVjh4VC9IL3lRR0djUjFoCkN0VTBSZUVDYnEvWjRZdEZIWTNrazgrbVR6TkRldFdyOWFFeG5MTFhOOEJlLzU1M3dxdENUdVJOV3VJL1VWSTQKWXM4b0RIVjNFZXFmMnM0VlVnWitNN3ovbDEyYXFmRUJRdGU4NlE5RWlSbWFieC9TY0ZId3VoT0xlU1dPL2E1VApOdlUvZEJoUjdYQjA5REdURmFaT1p4Q1AwTkU4bVNLQ2ZWUkpSL2tTeTNMZ0huTU9OcUVHQXcwR29ubTFmVEU3CmY1bDNiOXJ3Wi9XNEp4KzUxbU03Q0tzdGk0WWZJVnZ0ZjJObDBNSW9Vb2tvdnFCSXFZR0xiNmFKajNLSgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
+ server: https://10.201.101.11:6443
+ name: cluster.local
+contexts:
+- context:
+ cluster: cluster.local
+ user: admin-cluster.local
+ name: admin-cluster.local
+users:
+- name: admin-cluster.local
+ user:
+ client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURvekNDQW91Z0F3SUJBZ0lKQUp4cDYxNXZhbitDTUEwR0NTcUdTSWIzRFFFQkN3VUFNQkl4RURBT0JnTlYKQkFNTUIydDFZbVV0WTJFd0lCY05NVGd3T0RBMk1qSXdOekV6V2hnUE1qRXhPREEzTVRNeU1qQTNNVE5hTURReApHVEFYQmdOVkJBTU1FR3QxWW1VdFlXUnRhVzR0Ym05a1pURXhGekFWQmdOVkJBb01Ebk41YzNSbGJUcHRZWE4wClpYSnpNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1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sODErSTZOcjdSc1k4WmphNys4RDI0SENmeitwZFoKYVl6SU1JTHIvbzN2WHlmci91Qit2VG9VNmR0OEFmTHp1SDNabWhNYXlkVUZVY3pWUmQ0aHl3ZXV4b05YSHhtYgpsbzNJSjJyLzdKZFAyRGhqdjlLUndIZWlpZW5aL1lRM2llei90TVhPSmNGekp0aUt2U1V4Wm5XNE5LeWJJeVFpCnhIWjdBb0dBZTBiK0c1eVRyalhsUk16UUFGWndCaUovaGlOeUFoVElBNGFwRHd5aVhZUVUwNlJFSGF6UklxVkkKUnY0TG5OWUtVVFo4ZkFyR1dNeTFZM0NiczZQTW0zQmtCTGhYOTZtSkpCUU5yZC9tK29GclBCb2thQlRBZmRWLwpTcTNLN1ozZEJGVHk1MnE2REEwNStGVExoWTIyK21aajNIQjUxcUpzNEZJNmx2K1o0bVU9Ci0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==
diff --git a/tosca-configs/att-workflow/flex-pod1-olt-fabric.yaml b/tosca-configs/att-workflow/flex-pod1-olt-fabric.yaml
new file mode 100755
index 0000000..c8d33c7
--- /dev/null
+++ b/tosca-configs/att-workflow/flex-pod1-olt-fabric.yaml
@@ -0,0 +1,121 @@
+# Copyright 2017-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.
+
+# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @flex-pod1-olt-fabric.yaml http://10.192.4.241:30007/run
+
+tosca_definitions_version: tosca_simple_yaml_1_0
+imports:
+ - custom_types/switch.yaml
+ - custom_types/switchport.yaml
+ - custom_types/portinterface.yaml
+ - custom_types/bngportmapping.yaml
+ - custom_types/attworkflowdriverwhitelistentry.yaml
+ - custom_types/attworkflowdriverservice.yaml
+
+description: Configures the ONF SEBA POD with AT&T workflow
+
+topology_template:
+ node_templates:
+ # Fabric configuration
+ switch#leaf_1:
+ type: tosca.nodes.Switch
+ properties:
+ driver: ofdpa3
+ ipv4Loopback: 192.168.9.24
+ ipv4NodeSid: 19
+ isEdgeRouter: false
+ name: Fabric Switch - 1
+ ofId: of:0000cc37ab5b6da8
+ routerMac: 00:00:00:00:00:03
+
+ # Setup the OLT switch port
+ port#olt_port:
+ type: tosca.nodes.SwitchPort
+ properties:
+ portId: 7
+ host_learning: false
+ requirements:
+ - switch:
+ node: switch#leaf_1
+ relationship: tosca.relationships.BelongsToOne
+
+ # Port connected to the BNG
+ port#bng_port:
+ type: tosca.nodes.SwitchPort
+ properties:
+ portId: 8
+ host_learning: false
+ requirements:
+ - switch:
+ node: switch#leaf_1
+ relationship: tosca.relationships.BelongsToOne
+
+ # Setup the fabric switch port where the external
+ # router is connected to
+ bngmapping:
+ type: tosca.nodes.BNGPortMapping
+ properties:
+ s_tag: any
+ switch_port: 8
+
+ # ONU Whitelist
+ service#att:
+ type: tosca.nodes.AttWorkflowDriverService
+ properties:
+ name: att-workflow-driver
+ must-exist: true
+
+ ALPHe3d1cfa7:
+ type: tosca.nodes.AttWorkflowDriverWhiteListEntry
+ properties:
+ serial_number: ALPHe3d1cfa7
+ pon_port_id: 536870912
+ device_id: of:000000000ac004da
+ requirements:
+ - owner:
+ node: service#att
+ relationship: tosca.relationships.BelongsToOne
+
+ ALPHe3d1cea3:
+ type: tosca.nodes.AttWorkflowDriverWhiteListEntry
+ properties:
+ serial_number: ALPHe3d1cea3
+ pon_port_id: 536870912
+ device_id: of:000000000ac004da
+ requirements:
+ - owner:
+ node: service#att
+ relationship: tosca.relationships.BelongsToOne
+
+ ALPHe3d1cf84:
+ type: tosca.nodes.AttWorkflowDriverWhiteListEntry
+ properties:
+ serial_number: ALPHe3d1cf84
+ pon_port_id: 536870912
+ device_id: of:000000000ac004da
+ requirements:
+ - owner:
+ node: service#att
+ relationship: tosca.relationships.BelongsToOne
+
+ ALPHe3d1cee9:
+ type: tosca.nodes.AttWorkflowDriverWhiteListEntry
+ properties:
+ serial_number: ALPHe3d1cee9
+ pon_port_id: 536870912
+ device_id: of:000000000ac004da
+ requirements:
+ - owner:
+ node: service#att
+ relationship: tosca.relationships.BelongsToOne
diff --git a/tosca-configs/att-workflow/flex-pod1-olt-olt.yaml b/tosca-configs/att-workflow/flex-pod1-olt-olt.yaml
new file mode 100755
index 0000000..79afe17
--- /dev/null
+++ b/tosca-configs/att-workflow/flex-pod1-olt-olt.yaml
@@ -0,0 +1,47 @@
+# Copyright 2017-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.
+
+# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @flex-pod1-olt-olt.yaml http://10.192.4.241:30007/run
+
+tosca_definitions_version: tosca_simple_yaml_1_0
+imports:
+ - custom_types/oltdevice.yaml
+ - custom_types/onudevice.yaml
+ - custom_types/voltservice.yaml
+description: Create a simulated OLT Device in VOLTHA
+topology_template:
+ node_templates:
+
+ service#volt:
+ type: tosca.nodes.VOLTService
+ properties:
+ name: volt
+ must-exist: true
+
+ olt_device:
+ type: tosca.nodes.OLTDevice
+ properties:
+ name: olt-1
+ device_type: openolt
+ host: 10.192.4.218
+ port: 9191
+ switch_datapath_id: of:0000cc37ab5b6da8
+ switch_port: "7"
+ outer_tpid: "0x8100"
+ uplink: "128"
+ nas_id: "NAS_ID"
+ requirements:
+ - volt_service:
+ node: service#volt
+ relationship: tosca.relationships.BelongsToOne
diff --git a/tosca-configs/att-workflow/flex-pod1-olt-subscriber.yaml b/tosca-configs/att-workflow/flex-pod1-olt-subscriber.yaml
new file mode 100755
index 0000000..b17c451
--- /dev/null
+++ b/tosca-configs/att-workflow/flex-pod1-olt-subscriber.yaml
@@ -0,0 +1,36 @@
+# Copyright 2017-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.
+
+# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @onlab-pod1-subscriber.yaml http://10.90.0.101:30007/run
+
+tosca_definitions_version: tosca_simple_yaml_1_0
+imports:
+ - custom_types/rcordsubscriber.yaml
+
+description: Pre-provsion a subscriber
+
+topology_template:
+ node_templates:
+
+ # Pre-provision the subscriber the subscriber
+ my_house:
+ type: tosca.nodes.RCORDSubscriber
+ properties:
+ name: My House-305
+ status: pre-provisioned
+ c_tag: 999
+ onu_device: ALPHe3d1cfa7
+ nas_port_id : "PON 1/1/03/1:1.1.1"
+ circuit_id: foo1
+ remote_id: bar1