[ONOS-5805] MEF SCA REST API app for CE App
Migrating MEF SCA API translation app to onos-app-samples.
- Originally developed mainly by Konstantinos Kanonakis <kanonakisk@gmail.com>
Change-Id: Ibf9f9e60c4dcd6375dd135a2f2c7714e3cd7d127
diff --git a/mef-sca-api/examples/sca-elan-create-example.json b/mef-sca-api/examples/sca-elan-create-example.json
new file mode 100644
index 0000000..feeba4c
--- /dev/null
+++ b/mef-sca-api/examples/sca-elan-create-example.json
@@ -0,0 +1,54 @@
+{
+ "evcServiceType": "Multipoint_To_Multipoint",
+ "evcCfgIdentifier": "ELAN1",
+ "SCA_ETH_Flow_Points": [
+ {
+ "evcPerUniCfgIdentifier": "ELAN1-UNI1",
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-1-1",
+ "Hostname": "of:0000000000000001",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni1",
+ "interfaceCfgIngressBwp": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 2000000,
+ "bwpCfgCbs": 2000
+ }
+ }
+ },
+ {
+ "evcPerUniCfgIdentifier": "ELAN1-UNI2",
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-2-1",
+ "Hostname": "of:0000000000000002",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni2",
+ "interfaceCfgIngressBwp": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 2000000,
+ "bwpCfgCbs": 2000
+ }
+ }
+ },
+ {
+ "evcPerUniCfgIdentifier": "ELAN1-UNI3",
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-3-1",
+ "Hostname": "of:0000000000000003",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni3",
+ "interfaceCfgIngressBwp": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 2000000,
+ "bwpCfgCbs": 2000
+ }
+ }
+ }
+ ]
+}
diff --git a/mef-sca-api/examples/sca-epl-create-example.json b/mef-sca-api/examples/sca-epl-create-example.json
new file mode 100644
index 0000000..decd959
--- /dev/null
+++ b/mef-sca-api/examples/sca-epl-create-example.json
@@ -0,0 +1,38 @@
+{
+ "evcServiceType": "Point_To_Point",
+ "evcCfgIdentifier": "ELine1",
+ "SCA_ETH_Flow_Points": [
+ {
+ "evcPerUniCfgIdentifier": "ELine1-UNI1",
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-1-1",
+ "Hostname": "of:0000000000000001",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni1",
+ "interfaceCfgIngressBwp": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 2000000,
+ "bwpCfgCbs": 2000
+ }
+ }
+ },
+ {
+ "evcPerUniCfgIdentifier": "ELine1-UNI2",
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-2-1",
+ "Hostname": "of:0000000000000002",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni2",
+ "interfaceCfgIngressBwp": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 2000000,
+ "bwpCfgCbs": 2000
+ }
+ }
+ }
+ ]
+}
diff --git a/mef-sca-api/examples/sca-evpl-create-example.json b/mef-sca-api/examples/sca-evpl-create-example.json
new file mode 100644
index 0000000..a3ad5a0
--- /dev/null
+++ b/mef-sca-api/examples/sca-evpl-create-example.json
@@ -0,0 +1,44 @@
+{
+ "evcServiceType": "Point_To_Point",
+ "evcCfgIdentifier": "EVPL1",
+ "SCA_ETH_Flow_Points": [
+ {
+ "evcPerUniCfgIdentifier": "EVPL1-UNI1",
+ "ingressBandwidthProfilePerEvc": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 1000000,
+ "bwpCfgCbs": 3000,
+ "bwpCfgEir": 1000000,
+ "bwpCfgEbs": 3000
+ },
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-1-1",
+ "Hostname": "of:0000000000000001",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni1",
+ "ceVlanId": "100"
+ }
+ },
+ {
+ "evcPerUniCfgIdentifier": "EVPL1-UNI2",
+ "ingressBandwidthProfilePerEvc": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 1000000,
+ "bwpCfgCbs": 3000,
+ "bwpCfgEir": 1000000,
+ "bwpCfgEbs": 3000
+ },
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-2-1",
+ "Hostname": "of:0000000000000002",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni2",
+ "ceVlanId": "100"
+ }
+ }
+ ]
+}
diff --git a/mef-sca-api/examples/sca-evpl-update-example.json b/mef-sca-api/examples/sca-evpl-update-example.json
new file mode 100644
index 0000000..e3c8020
--- /dev/null
+++ b/mef-sca-api/examples/sca-evpl-update-example.json
@@ -0,0 +1,45 @@
+{
+ "id": "EVP-Line-1",
+ "evcServiceType": "Point_To_Point",
+ "evcCfgIdentifier": "EVPL1",
+ "SCA_ETH_Flow_Points": [
+ {
+ "evcPerUniCfgIdentifier": "EVPL1-UNI1",
+ "ingressBandwidthProfilePerEvc": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 2000000,
+ "bwpCfgCbs": 3000,
+ "bwpCfgEir": 2000000,
+ "bwpCfgEbs": 3000
+ },
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-1-1",
+ "Hostname": "of:0000000000000001",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni1",
+ "ceVlanId": "200"
+ }
+ },
+ {
+ "evcPerUniCfgIdentifier": "EVPL1-UNI2",
+ "ingressBandwidthProfilePerEvc": {
+ "bwpCfgIdentifier": "",
+ "bwpCfgCir": 2000000,
+ "bwpCfgCbs": 3000,
+ "bwpCfgEir": 2000000,
+ "bwpCfgEbs": 3000
+ },
+ "scaEthFppUniN": {
+ "transportPort": {
+ "CLLI": "CPqD-2-1",
+ "Hostname": "of:0000000000000002",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "uni2",
+ "ceVlanId": "200"
+ }
+ }
+ ]
+}
diff --git a/mef-sca-api/examples/sca-uni-create-example.json b/mef-sca-api/examples/sca-uni-create-example.json
new file mode 100644
index 0000000..acbd320
--- /dev/null
+++ b/mef-sca-api/examples/sca-uni-create-example.json
@@ -0,0 +1,8 @@
+{
+ "transportPort": {
+ "CLLI": "CPqD-1-1",
+ "Hostname": "of:0000000000000003",
+ "Port": "1"
+ },
+ "interfaceCfgIdentifier": "of:0000000000000003/1"
+}