aboutsummaryrefslogtreecommitdiffstats
path: root/msasimulator/README.md
blob: dd5b3aa74072d70b566ce6d762d8303e9da0fd9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
##MSA Controller Simulator Project.

The simulator is a simple spring boot application which acts as the MSA controller for the MDONS use case

##The API'S are as follows:

1.Create Service : /cxf/openroadm/openroadm-services/create
2.Delete Service : /cxf/openroadm/openroadm-services/delete
3.Get Topology :  /cxf/openroadm/v2/networks/otn-topology

##
Sample create request:

{
   "common-id":"123456",
   "connection-type":"service",
   "service-name":"svc-Customer1-orange-001_MDONS_OTN_MSA",
   "sdnc-request-header":{
      "request-id":"fd532fb8-fb9a-477b-b0a9-f8f33ba79f23",
      "rpc-action":"service-create",
      "notification-url":"http://167.254.204.118:8090/receiver/services",
      "request-system-id":"SDN-MLC"
   },
   "service-a-end":{
      "service-rate":10,
      "service-format":"Ethernet",
      "clli":"OWB-AEND",
      "node-id":"OWBSPDRNE15",
      "optic-type":"gray",
      "ethernet-encoding":"10GBASE-R",
      "mapping-mode":"GFP-F",
      "tx-direction":{
         "port":{
            "port-device-name":"router-1",
            "port-name":"R1"
         }
      },
      "rx-direction":{
         "port":{
            "port-device-name":"router-1",
            "port-name":"R1"
         }
      }
   },
   "service-z-end":{
      "service-rate":10,
      "service-format":"Ethernet",
      "node-id":"OWBSPDRNE16",
      "clli":"OWB-ZEND",
      "optic-type":"gray",
      "ethernet-encoding":"10GBASE-R",
      "mapping-mode":"GFP-F",
      "tx-direction":{
         "port":{
            "port-device-name":"router-2",
            "port-name":"R2"
         }
      },
      "rx-direction":{
         "port":{
            "port-device-name":"router-2",
            "port-name":"R2"
         }
      }
   },
   "service-layer":"otn"
}

##Sample delete request


{
   "sdnc-request-header":{
      "request-id":"fd532fb8-fb9a-477b-b0a9-f8f33ba79f23",
      "rpc-action":"service-create",
      "notification-url":"http://167.254.204.118:8090/receiver/services",
      "request-system-id":"SDN-MLC"
   },
  "service-delete-req-info":{
    "tail-retention": "no",
    "service-name": "no"
  }
}

##To bring up locally along with the other instances go to the main directory dc-simluator
Execute docker-compose up


##To compile and build 
mvn clean install


##To build docker image 
mvn package -P docker