450-3709-321 (Blue Planet MCP R18.06 API Reference Guide) 07.04
450-3709-321 (Blue Planet MCP R18.06 API Reference Guide) 07.04
Legal notices
THIS DOCUMENT CONTAINS CONFIDENTIAL AND TRADE SECRET INFORMATION OF CIENA
CORPORATION AND ITS RECEIPT OR POSSESSION DOES NOT CONVEY ANY RIGHTS TO REPRODUCE OR
DISCLOSE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE.
REPRODUCTION, DISCLOSURE, OR USE IN WHOLE OR IN PART WITHOUT THE SPECIFIC WRITTEN
AUTHORIZATION OF CIENA CORPORATION IS STRICTLY FORBIDDEN.
EVERY EFFORT HAS BEEN MADE TO ENSURE THAT THE INFORMATION IN THIS DOCUMENT IS
COMPLETE AND ACCURATE AT THE TIME OF PUBLISHING; HOWEVER, THE INFORMATION CONTAINED
IN THIS DOCUMENT IS SUBJECT TO CHANGE.
While the information in this document is believed to be accurate and reliable, except as otherwise
expressly agreed to in writing CIENA PROVIDES THIS DOCUMENT "AS IS" WITHOUT WARRANTY OR
CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED. The information and/or products described in
this document are subject to change without notice. For the most up-to-date technical publications, visit
www.ciena.com.
The material contained in this document is also protected by copyright laws of the United States of
America and other countries. It may not be reproduced or distributed in any form by any means, altered in
any fashion, or stored in a data base or retrieval system, without express written permission of the Ciena
Corporation.
Security
Ciena © cannot be responsible for unauthorized use of equipment and will not make allowance or credit
for unauthorized use or access.
410-865-4961
+44-207-012-5508
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1
Blue Planet MCP API Reference Guide, Release 18.06 Legal notices
+81-3-6367-3989
+91-124-4340-600
1230-020-0845 (Chile)
00 008000442510 (Panama)
For additional office locations and phone numbers, please visit the Ciena site at www.ciena.com.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 2
Blue Planet MCP API Reference Guide, Release 18.06 Publication history
Publication history
October 2018
Standard Issue 07.04 of Blue Planet Manage, Control and Plan API Reference Guide, 450-3709-321
September 2018
Standard Issue 07.03 of Blue Planet Manage, Control and Plan API Reference Guide, 450-3709-321
Standard Issue 07.02 of Blue Planet Manage, Control and Plan API Reference Guide, 450-3709-321
September 2018
Standard Issue 07.02 of Blue Planet Manage, Control and Plan API Reference Guide, 450-3709-321
August 2018
Standard Issue 07.01 of Blue Planet Manage, Control and Plan API Reference Guide, 450-3709-321
April 2018
Standard Issue 06.02 of Blue Planet Manage, Control and Plan REST API Reference Guide, 450-3709-321
Standard Issue 06.01 of Blue Planet Manage, Control and Plan REST API Reference Guide, 450-3709-321
December 2017
Standard Issue 05.01 of Blue Planet Manage, Control and Plan REST API Reference Guide, 450-3709-321
September 2017
Standard Issue 04.01 of Blue Planet Manage, Control and Plan REST API Reference Guide, 450-3709-321
August 2017
Standard Issue 03.01 of Blue Planet Manage, Control and Plan REST API Reference Guide, 450-3709-321
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 3
Blue Planet MCP API Reference Guide, Release 18.06 Publication history
July 2017
Standard Issue 02.01 of Blue Planet Manage, Control and Plan REST API Reference Guide, 450-3709-321
March 2017
Standard Issue 01.01 of Blue Planet Manage, Control and Plan REST API Reference Guide, 450-3709-321
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 4
Blue Planet MCP API Reference Guide, Release 18.06 About this document
The main reference tool for MCP’s REST API is contained in the MCP UI itself. To view this information,
open the MCP UI and select System → APIs. The resulting interactive display allows you to search for
calls by category, view supported parameters, configure sample calls, and view the responses to those
calls. For some of these calls, the UI also provides sample responses to certain types of call.
This document supplements the information contained in the UI for selected API calls. Generally, API calls
are documented here to provide examples of:
• using a single call to achieve one specific result (unlike the UI’s general description)
• using a series of calls to achieve a result (whereas the UI documents only individual calls)
Only a subset of all the available MCP REST API calls are documented here. For information about any
call not discussed in this document, see the API reference tool in the MCP UI.
Command strings
Command strings that you enter in a terminal window appear in bold face courier font as in the following
example:
cd /tmp
Note : You must enter the command string exactly as shown, including spaces, and press Enter.
An explanation of the variable may follow the command string, as in the following example:
where
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 5
Blue Planet MCP API Reference Guide, Release 18.06 About this document
/opt
Click OK.
In some cases, the user interface supports menu commands and buttons with equivalent capabilities. In
the procedures, we suggest the use of buttons where they exist. Menu command equivalents have the
same or equivalent name as the button, if you prefer to use them.
Keyboard keys
Keyboard key names appear in bold face as in the following example:
Press Enter.
When a new window or dialog box opens as a result of a procedure step, the new context is included in
the following step, as follows:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 6
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 7
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 8
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 9
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 10
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
GET /perfg/api/v2/fiberloss
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 11
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 12
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 13
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
shared attribute on a
discovered=true Resource can
no longer be changed using non-
observed-PUT.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 14
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
shared attribute on a
discovered=true Resource can
no longer be changed using
observed-PUT.
shared attribute on a
discovered=true Resource can
no longer be changed using non-
observed-PATCH.
shared attribute on a
discovered=true resource can
now be changed using observed-
PATCH.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 15
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 16
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 17
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 18
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API changes
TOPIC DESCRIPTION
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 19
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API overview
The REST API interaction is performed using the HTTP/HTTPS protocol. In part, this provides firewall
friendliness using Port 80 (HTTP) and 443 (HTTPS).
POST Create
GET Read
PUT Update/Replace
PATCH Update/Modify
DELETE Delete
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 20
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API overview
400 Bad request. This is used for validation errors and other
known verification.
JSON
All native REST API requests and responses use the JSON format. JSON is the most common format
used with REST and is more compact and faster to parse than XML: see http://www.json.org and
http://json-schema.org.
JSON is a well-standardized human-readable format like XML, but is favored as it has the advantage of
being more compact for API-type usage. What follows is a short example showing how an object
("aliasNames") can have one or more attributes with an assigned value in an easy to read format. In this
example, only one attribute ("name") is being assigned a value.
"aliasNames": [
{
"aliasType": "CustomerName",
"name": "CustService1"
}
Blue Planet MCP REST APIs seek to be fully JSON API compliant
(http://jsonapi.org) where possible. The Content-Type: application/json is used in all HTTP headers as
demonstrated below:
Pagination
For GET requests that return lists of objects, pagination is supported so that not all objects are returned at
once. MCP REST APIs employ two jsonapi.org approved pagination approaches:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 21
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API overview
• Offset/Limit-based: ?page[offset]=<int>&page[limit]=<int>
• Cursor-based: ?page[offset]=<cursor>&page[limit]=<cursor>
The cursor-based approach provides the cursor value in the response message.
Versioning
Each MCP REST API is provided with a version number in the API (for example, /tron/api/v1/tokens/). A
REST API’s initial version is v1.
If a REST API change is made that is backwards incompatible, the version number is incremented. This
does not include updates that add new optional parameters. Older versions of a REST API can continue to
be used and will be available for use for a period of time (contact Ciena for details about the official
support period).
Note: The IFD API version numbers (for example, “v2” in “ifd.v2.resourceTypes”) that appear in this
document do not necessarily reflect the IFD API version numbers associated with this current Blue Planet
MCP release. They are provided only as an example. IFD API version numbers may be higher than those
shown in this chapter. All clients interacting with the MCP intent-based service provisioning APIs (BPO-
IFD) must adapt to the version associated with the new MCP server release version after the upgrade is
completed.
• 18.06: V5
• 18.02: V4
• 17.10: V3
HAProxy uses a floating virtual IP (VIP) address to provide redundancy. All REST clients point to the MCP
"Site IP" virtual IP address.
Using this approach, both scale and redundancy are achieved for interfacing to Northbound clients. MCP
can add more capacity and ability to handle more requests and as an added benefit the REST API client
does not have to change under failure scenarios.
Authentication
MCP REST API provides authentication according to OAuth2 (https://oauth.net/2/). HTTPs is used by
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 22
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API overview
default for all MCP REST calls to ensure all data, including passwords, is protected.
A REST API call is made to MCP with a username, password, and a timeout attribute. Upon successful
authentication, MCP returns an OAuth token. The token expires at the specified timeout. The token can
then be used repeatedly in subsequent REST API calls by the client until the token expires.
MCP REST API documentation (in HTML) is generated at compile time and is shipped with the product.
The Swagger UI is integrated in to the MCP management UI and as a result the REST API documentation
is available, always up to date, and synchronized with the software.
To access the Swagger REST API documentation on your MCP server, log in to the UI
(https://<server_name>/ui/) and select the System menu and then select APIs (Interactive API Specs).
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 23
Blue Planet MCP API Reference Guide, Release 18.06 Topology and the TPE/FRE model
This model is based upon the the ONF Common Information Model
(ONF TR-512).
• Ciena is the editor of this model in ONF and has contributed heavily to the model’s development.
• ONF-CIM is used in MEF and ITU-T G.7711.
• The MCP Model is aligned with the TM Forum SID Converged Network ABE.
The TPE/FRE model is designed to be generic and independent of the underlying network protocols and
multi-layers.
MCP functional micro-services operate on this model for equipment and topology.
The TPE/FRE model allows MCP micro-services to promote re-use and be more generic and data-driven;
for example, multi-layer and device agnostic PCE, Network and Service Inventory (NSI), Service
Management (IFD), and UI.
The Resource Adapter (RA) Framework allows MCP to mediate to external models.
Each encapsulated layer (ITU-T) is represented by a Layer Termination (LT) and can be seen as
synonymous with a protocol.
The Layer Termination encapsulates the functions and points associated with one instance of termination
of a layer (ITU-T).
A TPE is a collection of Layer Terminations, each TPE representing a layer (a layer rate; for example, OMS,
OTS, OCH, ODU0, Ethernet) and the applicable attributes of that layer.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 24
Blue Planet MCP API Reference Guide, Release 18.06 Topology and the TPE/FRE model
TpeStructureType indicates the structure type of this TPE (PTP, CTP, FTP):
tpeStructureType:
• CTPServerToClient
• CTPClientToServer
• CTPClientToClient
• CTPServerToDomain
• A CTP can be anchored to PTPs, FTPs and other CTPs (for example, multiple ODU hierarchies).
• A CTP can be uniquely identified by channelization information and other properties (for example, EVC,
pseudowire) sometimes in conjunction with the identifying information of the CTP owner or peer.
For example, a 40G MUX port 100. The network element does report this as a numeric port but it is
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 25
Blue Planet MCP API Reference Guide, Release 18.06 Topology and the TPE/FRE model
An FRE can have two, or more, end points (EndPointRoles) and these endpoints reference TPEs.
FREs can be partitioned into underlying FREs. It must be possible to correlate a FRE to the FRE’s server
(and the FRE’s server’s server) and in the reverse navigation.
There are three categories of the networkRole: FRE_AP, eFRE, and iFRE.
• /nsi/api/tpes
• /nsi/api/fres
Get all of the TPEs and FREs for a service intent identifier (id). This includes the port trail down to the
OCH/OTSi layer.
/nsi/api/fres?freExpectations.serviceIntent.id={id}&include=tpes
Example: Get all of the TPEs and FREs for a service intent name. This includes the port trail down to the
OCH/OTSi layer.
/ifd/api/v1/serviceIntents?label=<service_name>
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 26
Blue Planet MCP API Reference Guide, Release 18.06 Topology and the TPE/FRE model
Use the resulting serviceIntent.id parameter as the {id} in the example above.
/nsi/api/fres?group=infrastructure
/nsi/api/fres?include=tpes&networkConstruct.id={id}
/nsi/api/fres?include=tpes&freExpectations.serviceIntent.id=<X>
The figure below identifies the TPEs and FREs on the OTU4 100G wavelength service.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 27
Blue Planet MCP API Reference Guide, Release 18.06 Topology and the TPE/FRE model
The partitioned FREs provided for each OTSi (OCH) iFRE are the ones shown in green in the figure below.
To see the internal adjacency relationships, look at the FRE endpoint CTP TPEs and then get the parent
PTP TPE and look at the adjacency.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 28
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
• Overview
• OTU4 support matrix
• Constraint examples
Overview
The following table describes the supported Layer 0 infrastructure service constraints.
10GE/100GE/OTM4 client NONE. Constraints are not supported for client services.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 29
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
NOTE INCLU INCLU INCLU EXCLU EXCLU EXCLU DIVER DIVER DIVER DIVER CO-
1 DE DE DE DE DE DE SITY SITY + SITY + SITY + ROUTE
NODE_ ROAD SITE_N NODE_ ROAD SITE_N EXISTI NODED SRLGD SITEDI D
NAME M_LIN AME NAME M_LIN AME NG IVERSI IVERSI VERSIT SERVIC
E_NAM E_NAM SERVIC TY TY Y E
E E E
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 30
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
NOTE INCLU INCLU INCLU EXCLU EXCLU EXCLU DIVER DIVER DIVER DIVER CO-
1 DE DE DE DE DE DE SITY SITY + SITY + SITY + ROUTE
NODE_ ROAD SITE_N NODE_ ROAD SITE_N EXISTI NODED SRLGD SITEDI D
NAME M_LIN AME NAME M_LIN AME NG IVERSI IVERSI VERSIT SERVIC
E_NAM E_NAM SERVIC TY TY Y E
E E E
Includ - Y Y Y Note Y N N N N N
e 3
ROAD
M_LIN
E_NA
ME
Includ - Y Y Y N N N N N
e
SITE_
NAME
Exclud - Note Y Y N N N N
e 2
NODE
_NAM
E
Exclud - Y N N N N N
e
ROAD
M_LIN
E_NA
ME
Exclud - N N N N N
e
SITE_
NAME
Divers - Y Y Y N
ity
existin
g
servic
e
Divers - Y Y N
ity +
nodeD
iversit
y
Divers - Y N
ity +
srlgDi
versity
Divers - N
ity +
siteDiv
ersity
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 31
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
NOTE INCLU INCLU INCLU EXCLU EXCLU EXCLU DIVER DIVER DIVER DIVER CO-
1 DE DE DE DE DE DE SITY SITY + SITY + SITY + ROUTE
NODE_ ROAD SITE_N NODE_ ROAD SITE_N EXISTI NODED SRLGD SITEDI D
NAME M_LIN AME NAME M_LIN AME NG IVERSI IVERSI VERSIT SERVIC
E_NAM E_NAM SERVIC TY TY Y E
E E E
co- -
routed
servic
e
Note 1: Y/N indicates Whether the constraints can (Y) or cannot (N) be combined.
Note 3: Exclude constraint supercedes the Include constraint for the same object.
Constraint examples
This section provides three constraint examples.
"constraints": \{
"excludeRouteObjects": [
"routeObjectType": "ROADM_LINE_NAME",
"roadmLineName": "a43bb456-091b-4ebd-958d-2c899c8b4183::TPE_a43bb456-
091b-4ebd-958d-2c899c8b4183::EQPT_21_1-5-PTP"
},
{
"routeObjectType": "NODE_NAME",
"nodeName": "\{\{NODEA}”
}
]
},
Co-route constraint
"constraints": \{
"coRoutedService": "configOTU4_1RLC"
},
Diversity constraint
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 32
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
"constraints": \{
"diverseObjects":
\{ "existingService": [
"configOTR_AB_12_1_1","configOTU4_1Diverse"
],
"nodeDiversity": false,
"srlgDiversity": true,
"siteDiversity": false
}
},
STATE DESCRIPTION
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 33
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
STATE DESCRIPTION
DELETED This definition is only used in the published service intent just
before being deleted from the database.
• NSI to produce an expectation validation event each time a TPE/FRE actual is changed. The payload is
the result of deep comparison between the new actual and its included expectation.
• IFD to consume all these expectation validation events and track them in relation with their associated
service intents.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 34
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
NSI
• All service intent resources as TPE/FRE expectations are stored in NSI (aka IFD ServiceRealization).
• Creation/Update of each TPE/FRE actual triggers a validation (deep comparison) with its associated
expectations.
The outcome of this validation is published as an event to a kafka topic; bp.nsi.v1.validation of the
following two event types:
• bp.v1.tpeExpectationValidated
• bp.v1.freExpectationValidated
◦ All events are sent with an order directive that is set with the service intent ID to ensure that all
events associated with the same service intent are sent to the kafka of the same cluster partition.
This is important to prevent any concerns about Cassandra data replication and allow IFD to
consume all these events in relation to the service intent on the same cluster partition as well.
IFD
• Listens to the above topics for expectation validation status reporting (events).
• Use the Service intent resource tracker to handle all the service intent activation state transitions.
NSI
• Publishes to the bp.nsi.v1.changes.fre topic an FRE change event for the deletion of each actual FRE.
IFD
• Consumes the FRE change events and act on all the deletion events.
• Use the Service intent resource tracker to handle the service intent deactivation state changes.
POST:/ifd/api/v1/serviceIntents/{id}/forceFailState
The purpose of this REST API is to move away from a stuck provisioning process/following states:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 35
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
There are many reasons why an IFD service intent state may be stuck while in a provisioning state:
• There is no timeout exercised during these transient states.So, it will always remain in the transient
state until the conditions are met to switch to the corresponding target steady state (ACTIVATED or
DEACTIVATED).
• See state machine or states description table above.
• See Potential failing points in monitoring activating and deactivating
Provisioning (activation) • A resource tracker is set for each one of the TPE and FRE
expectations that define the service intent route.
• It is initialized in the ACTIVATING state.
• It is associated with the registered
ExpectationListener.java.
Deprovisioning (deactivation) • A resource tracker is set for each one of the FRE (actual)
that is to be deleted.
• It is initialized in the DEACTIVATING state.
• It is associated with the registered
FreChangeListener.java.
Troubleshooting
How can I monitor the progress of a service intent ACTIVATING or DEACTIVATING? IFD supports a REST
API to allow reporting of all the resource tracker states for any given service intent ID. The REST API
endpoint is: GET:/ifd/api/v1/serviceIntents/{id}/resourceTrackers. See Service intent resource tracker.
Why is the service intent stuck in ACTIVATING? Verify the following in this order:
• State of the IFD resource trackers for the given service intent
◦ See How can I monitor the progress of a service intent ACTIVATING or DEACTIVATING?
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 36
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
• Interpretation of the resource trackers after a reasonable waiting time to allow for the provisioning to
be exercised:
◦ All are still ACTIVATING
IFD did not receive ANY or failed to process ALL expectation validation events.
• You should try to verify if the service is really provisioned in the network using one of the following:
◦ Log in the node (using CESD CLI or Site Manager) to verify that the node(s) are provisioned as
expected, or
◦ Use another application such as OneControl WSM (L0) or PSM (L2) to see that the service is
properly created and discovered
◦ If the service is provisioned in the network then we are dealing with a potential issue.
◦ See Potential failing points in monitoring activating and deactivating
Recovery steps:
• The only way to potentially recover is to send an NSI resynchronization to each node involved in the
service intent route (use MCP UI or REST API).
• Use the ForceFailState REST API. See Force failed activation or deactivation process
The following list is a description of some of the potential failing points for each component:
IFD
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 37
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
NSI
• May have failed to receive (from IFD) or execute resynchronization (deep-discovery) as post-
provisioning process (Layer 2 only).
• May have failed to consume, validate (deep comparison between actual/ expectation TPE/FRE) and
publish.
• Check NSI logs.
• You can also retrieve all TPEs and FREs by service intent ID (simply using Swagger).
◦ You can check if some of the actuals are not yet discovered (that is, there are no CTP actual
attributes—only the expectation).
RA
• May have failed to execute a provisioning command (sent by IFD during deploying).
• May have failed to execute resynchronization (Layer 2 nodes) or process AO (Layer 0 and Layer 1).
• See Service intent resource tracker.
Kafkacomet
This service relays messages from Kafka topics to a websocket connection. Clients can establish a
websocket connection and send a subscription for one or more Kafka topics. If the connection is
established, all Kafka messages from the subscribed topic are relayed to the websocket client. The client
may disconnect or unsubscribe from topics at any time.
Connect
ws(s)://<host>:<port>/kafkacomet/socket/websocket?user_id=<userId>
#V2
ws(s)://<host>:<port>/kafkacomet/socket/websocket
Authentication
By default authentication must be provided in order to open a websocket connection with kafkacomet.
The client must provide either a uac.authorization cookie with the value set to a valid token, or an
Authorization bearer <token> header with the connection request.
Failure to provide valid authentication will result in a websocket: bad handshake error, along with a 401
Status code.
The requirement for authentication can be disabled using the Global Configuration Service, by setting the
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 38
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
When subscribing to a topic for the very first time with a consumerId, the offset determines where you
begin to read messages from the topic.
You can read all messages from the beginning or start with the next message to be produced to the topic.
Note: Messages may expire or compacted based on topic configuration. So, the earliest message is not
always the first message ever produced to the topic.
Once subscribed, Kafka keeps track of the topic offset for your consumerId. If you lose connection or
unsubscribe and resubscribe later with the same consumerId, you start where you left off.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 39
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
Reference parameter
Each request has a ref parameter, it is used to associate the request with its response.
Protocol V2
Heartbeat
If the server does not receive a heartbeat every 30 seconds in the absence of any other messages, the
connection will be terminated.
Request:
{
"v2" : {
"ref" : 1,
"operation" : "heartbeat"
}
}
Response:
{
"v2" : {
"ref" : 1,
"response" : {
"success" : true
}
}
}
Ping/Pong Frame
As an alternative to Heartbeat messages, one can send a Ping Frames to the websocket server. The
payload for this message is arbitrary data.
This will keep the connection alive and prevent the server from terminating it, just like the Heartbeat
message does. The only difference is that the server answers with a Pong Frame, which contains the
exact same data that was sent with the Ping Frame. The Ping Frame needs to be send at an interval < 30
seconds.
Subscribe
Subscribe to a topic. Streaming starts with the most recent message Request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 40
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
{
"v2" : {
"ref" : 2,
"operation" : "subscribe",
"consumerId" : "myConsumer", # Generated and returned in response, if not
specified
"topics" : [
{
"name" : "bp.aeprocessor.v2_0.alarms",
"startAt" : "latest"
}
]
}
}
Response:
{
"v2" : {
"ref" : 2,
"operation": "subscribe",
"consumerId" : "<specified or generated consumerId>",
"response" : {
"topic" : "bp.aeprocessor.v2_0.alarms",
"success" : true
}
}
}
Unsubscribe
Request:
{
"v2" : {
"ref" : 4,
"operation" : "unsubscribe",
"response" : {
"topic" : "bp.aeprocessor.v2_0.alarms",
"success" : true
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 41
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
{
"v2" : {
"operation" : "relay",
"message" : {
"topic" : "srcTopic",
"body" : {},
}
}
}
Error Messages
{
"v2" : {
"ref" : 2,
"operation" : "<operation>",
"response" : {
"error" : "Something went wrong"
}
}
}
Protocol V1 (Deprecated)
Heartbeat
If the server does not receive a heartbeat every 30 seconds in the absence of any other messages, the
connection will be terminated.
Request:
{"topic":"phoenix","event":"heartbeat","payload":{},"ref":"7"}
Response:
{"topic":"phoenix","ref":"7","payload":{"status":"ok","response":{},"event":"phx_re
ply"}
Ping/Pong Frame
As an alternative to Heartbeat messages, one can send a Ping Frames to the websocket server. The
payload for this message is arbitrary data.
This will keep the connection alive and prevent the server from terminating it, just like the Heartbeat
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 42
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
message does. The only difference is that the server answers with a Pong Frame, which contains the
exact same data that was sent with the Ping Frame. The Ping Frame needs to be send at an interval < 30
seconds.
Subscribe
Subscribe to a topic. Streaming starts with the most recent message Request:
{"topic":"topics:bp.aeprocessor.v2_0.alarms","event":"phx_join","payload":{},"ref":
"1"}
Response:
{"topic":"topics:equipment","ref":"1","payload":{"status":"ok","response":{}},"even
t":"phx_reply"}
Unsubscribe
Request:
{"topic":"topics:bp.aeprocessor.v2_0.alarms","event":"phx_leave","ref":"1"}
Response:
{"topic":"topics:bp.aeprocessor.v2_0.alarms","payload":{"body":{"value":"{\"test\":
\"message\"}"}},"event":"shout"}
Error Messages
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 43
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
Subscription notifications
Applications that care about whether or not their topic is subscribed to can listen on the topic
bp.kafkacomet.v1.channel.administration for subscription notifications. The notifications consist of a
join message sent out when a topic is subscribed to e.g.:
{"version":1,"header":{"envelopeId":"a2e2d89a-8049-464e-8a3c-
8258a878be4d","timestamp":"2017-08-22T20:41:41.224Z","traceId":"9eef9356-87e5-4d27-
a9d8-0c1ee8986585","upstreamId":"a0ae2c64-bdf4-4372-8cc9-
5abf1ec9aba6"},"event":{"_type":"bp.kafkacomet.v1.admin","op":"CHANNEL_JOINED","cha
nnel":"bp.aeprocessor.v2_0.alarms"}}
and a close message sent out when all subscribers for a channel are gone:
{"version":1,"header":{"envelopeId":"4e3a2444-8c72-4d3a-9586-
11c97fa53164","timestamp":"2017-08-22T20:42:40.374Z","traceId":"a43ac7d8-0cd3-4d01-
8f78-ab3d4800094e","upstreamId":"147203b2-596a-4ab1-aa64-
3442e3e05e08"},"event":{"_type":"bp.kafkacomet.v1.admin","op":"CHANNEL_CLOSED","cha
nnel":"bp.aeprocessor.v2_0.alarms"}}
Consumers of this topic must be idempotent, since it is not guaranteed that each
join/close message will be sent only once. Each host will send a join/close
message when a subscription is created, or a channel is closed. E.g. with 2
IMPORTANT
KafkaComet instances, when bp.aeprocessor.v2_0.alarms is joined, 2
CHANNEL_JOINED messages will be sent on
bp.kafkacomet.v1.channel.administration for bp.aeprocessor.v2_0.alarms.
Client
This client can be used to test. It will subscribe to a topic and display incoming messages. Use Ctrl+C to
gracefully quit.
Usage:
Example:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 44
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
Considerations
• Tokens have a maximum expiry time limit of 24 hours.
• Tokens that are generated and used in a request (API or UI) are considered active tokens and are
subject to the Session Inactivity Timeout value.
• Tokens that are generated but not used in a request (API or UI) are not considered active tokens and
are not subject to the Session Inactivity Timeout value. Tokens will expire at the maximum expiry time
limit of 24 hours.
Before you obtain the API token, make sure that you have Blue Planet MCP credentials (user name and
password).
POST {{MCP_SERVER}}/tron/api/v1/tokens
Copy the token into the token field in the Swagger UI header. Subsequent operations in Swagger UI will
use this token.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 45
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
Procedure
• Viewing the REST API documentation
You can display the list of operations (or the expanded list of operations) for multiple REST APIs at the
same time.
Prerequisites
• You are assigned the necessary security role to execute these APIs. For more information about roles,
see Appendix A: Blue Planet MCP REST API permissions.
• You are logged into Blue Planet MCP.
Steps
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 46
Blue Planet MCP API Reference Guide, Release 18.06 Using the REST API
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 47
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API collections
Alarms
APIs to manage network alarms.
API Authorization
APIs to configure the permissions necessary to use specific, or all, MCP APIs.
Asset Manager
APIs to manage SSH public keys, upgrade requests, and area files.
Commissioning
APIs to manage commissioning scripts.
Correlator Engine
APIs to correlate network alarms to services.
Equipment
APIs to manage network equipment.
Equipment groups
APIs to manage equipment groups.
Equipment holders
APIs to manage equipment holders.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 48
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API collections
Inventory Overlay
APIs to create and retrieve debug logs and to manage service trails for FREs.
Market
APIs to manage Markets.
MCP provides a default set of network element (NE) connection profiles that can be used to enroll
network elements. A NE connection profile contains details on how to connect to a device type, includes
the connection type to be used (for example, SSH) and also includes the credentials needed to login into
the device.
A user tasked to enroll network elements selects a NE connection profile by reference. This user does not
see the network element login credentials. This ensures network elements are enrolled in a consistent
and secure way.
Existing NE connection profiles can be modified and new profiles can be created.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 49
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API collections
OnePlanner Import/Export
APIs to retrieve a OnePlanner file from MCP for the entire network and to import a network from
OnePlanner to MCP.
Performance metrics
APIs to collect and query network element performance measurements (PMs).
Policy Manager
APIs to manage policies.
Project Management
APIs to manage Planning Projects.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 50
Blue Planet MCP API Reference Guide, Release 18.06 MCP REST API collections
UAC
APIs to manage the MCP system security.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 51
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Planning
This section describes some of the planning tasks that you can perform using MCP REST APIs.
Note: Multiple operations per project are not currently supported. Each project must be of type equipment
(one per site) or fiber route.
Requirements
Before you start, make sure that you know the planning project definition.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 52
Blue Planet MCP API Reference Guide, Release 18.06 Planning
In your request, modify the example to create a planning project definition, as required.
Sample request
POST {{MCP_SERVER}}/projectmanagment/api/v1/PlanningProjects
{
"name": "ProjectList1_MixEQPT"
}
Sample response
{
"id": "94a527ba-3bb3-44c0-9761-5d11ac2df2a3",
"name": "ProjectList1_MixEQPT",
"projects": [],
"failureReasons": [],
"state": "New",
"syncState": "New"
}
Note: You will copy the project ID or Name from the Response body when you run other APIs.
Instructions follow on how to add a new fiber route (ROADM line) to a network with new or existing
ROADMs. You create a sequence of fiber sections between new or existing ROADM nodes. One or more
Line nodes may be present along the route.
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 53
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Note: Re-using the same project container for multiple fiber route or equipment projects is not supported.
In other words, only one fiber route or equipment project is supported per planning project.
Note 1: TID or CLLI + NodeID can be used for referencing a node in Fiber Route and Equipment projects.
Use the TID if it is known; otherwise, use CLLI + Node ID.
Note 2: The nodeID is assigned by the user for Gateway Network Elements (GNE). The nodeID must be
unique within a CLLI.
Sample request
POST {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/FiberRoutes
Using the sample provided (as follows), define the Fiber Route as follows:
1. Replace the project ID or Name as required. Copy the new project ID or Name into the appropriate field
(“Id” or “Name”).
2. Set the TID or CLLI+Node ID for the A and Z ends.
3. Set the fiber properties.
4. Set the node types.
5. Optionally, include any ILAs along the span.
Note: Make sure that the direction you specify in the command is a new direction at the existing
ROADM.
Sample request
{
"project":{
"Name":"{{PROJECT_Route1}}"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 54
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
"sections":[
{
"fiberPairs":[
{
"aEndNode":{
"tid": "{{SITEA}}"
},
"zEndNode":{
"clli": "{{SITEJ}}",
"nodeId": "{{J}}"
},
"cableId":"Cable100",
"aTozFiber":{
"number":100,
"fiberType":"NDSF"
},
"zToaFiber":{
"number":101,
"fiberType":"NDSF"
}
}
],
"aEndPointAttributes":
{
"directionId":3,
"totalNumberOfCmds":1
},
"zEndPointAttributes":
{
"directionId":1,
"totalNumberOfCmds":1
},
"facilities":{
"facilityAtoZ":"SiteAtoJ",
"facilityZtoA":"SiteJtoA"
}
},
. . .
],
"nodes":[
{
"nodeIdentity":{
"tid": "{{SITEA}}"
},
"geoLocation":{
"latitude":36.8203525,
"longitude":-94.8559042
},
"nodeType":"ROADMSMALL"
},
{
"nodeIdentity":{
"clli": "{{SITEJ}}",
"nodeId": "{{J}}"
},
"geoLocation":{
"latitude":36.8303525,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 55
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"longitude":-94.9559042
},
"nodeType":"ROADMLARGE"
. . .
}
]
}
Perform the following using the OnePlanner Client. (For details, see the OnePlanner 6.0.1806 User Guide.)
Note: Editing the Route ID and Domain name is optional but recommended to avoid issues (for
example, redundant Domain names or Route IDs).
3. Run ROD.
4. Save the route back to the MCP server.
Retrieve a list, grouped by kit, of all the equipment belonging to the project, that is, a Project Equipment
Summary.
To retrieve a Project Equipment Summary, use the Equipment and Topology Planning API.
Sample request
GET {{MCP_SERVER}}/equipmenttopologyplanning/api/v3/EquipmentSummary
GET
{{MCP_SERVER}}/equipmenttopologyplanning/api/v3/EquipmentSummary?projects={{PROJECT_Route1
}}
{
"projectEquipmentSummary": [
{
"source": {
"project": {
"id": "094772a4-9bd4-4b8a-8b1d-ec9aadc4b012",
"name": "NewACRoute2"
}
},
"equipmentSummary": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 56
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"node": {
"nodeIdentity": {
"tid": "PV0410C"
},
"nodeType": "ROADMLARGE",
"amplifierConfigurationType": "Unsupported"
},
"equipmentKits": [
{
"equipmentKitId": "CNASDNLGCTLRBAYD2P",
"oin": "33333.333",
"shelves": [
[
{
"key": "RACK",
"value": "4"
},
{
"key": "PHYSICAL_SHELF",
"value": "1"
}
],
[
{
"key": "RACK",
"value": "4"
},
{
"key": "PHYSICAL_SHELF",
"value": "2"
}
]
],
"maintenanceSpare": false
},
{
"equipmentKitId": "CNASDNSMD14X8",
"oin": "33333.333",
"shelves": [
[
{
"key": "RACK",
"value": "1"
},
{
"key": "PHYSICAL_SHELF",
"value": "1"
}
]
],
"maintenanceSpare": true
},
...
]
}
]
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 57
Blue Planet MCP API Reference Guide, Release 18.06 Planning
https://<hostname>/ui
b. Log in if required.
c. Select Network > Resources > Equipment.
b. Validate that a ROADM line exists with the endpoints you specified.
4. Verify the equipment intent as follows. (Optional.)
a. Launch the Blue Planet MCP Client UI:
https://<hostname>/ui
b. Log in if required.
c. Select Network > Resources > Equipment.
The Equipment window displays, reporting the total displayed equipment and the selected
equipment.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 58
Blue Planet MCP API Reference Guide, Release 18.06 Planning
7. Add the new ROADMs and perform system lineup and testing (SLAT) on the new ROADMs, based on
the submitted plan.
For details, see the applicable customer documentation: 6500 Packet-Optical Platform, 323-1851-XXX,
Release 11.5 or higher.
For details, see the procedures on enrolling a single network element enrolling multiple network
elements in the Blue Planet MCP User Guide, 450-3709-301.
Requirements
Note: Re-using the same project container for multiple network change projects is not supported. In other
words, only one network change project is supported per planning project.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 59
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Note 1: TID or CLLI + NodeID can be used for referencing a node in Fiber Route and Equipment projects.
Use the TID if it is known; otherwise, use CLLI + Node ID.
Note 2: The nodeID is assigned by the user for Gateway Network Elements (GNE). The nodeID must be
unique within a CLLI.
Sample request
PUT MCP_SERVER/equipmenttopologyplanning/api/v1/fiberroutes
Using the sample provided (as follows), define the Fiber Route as follows:
1. Replace the project ID or Name as required. Copy the new project ID or Name into the appropriate field
(“Id” or “Name”).
2. Set the TID or CLLI+Node ID for the A and Z ends.
3. Set the fiber properties.
4. Set the node types.
5. Optionally, include any ILAs along the span.
Note: 3 Make sure the facilityAtoZ and facilityZtoA match exactly the ROADM line to modify that exists in
the network.
Sample request
{
"project":{
"name":"{{PROJECT_ID}}"
},
"sections":[
{
"fiberPairs":[
{
"aEndNode":{
"tid":"Node1"
},
"zEndNode":{
"tid":"Node2"
},
"cableId":"Cable10",
"aTozFiber":{
"number":1,
"fiberType":"NDSF",
},
"zToaFiber":{
"number":2,
"fiberType":"NDSF",
}
}
],
"aEndPointAttributes":
{
"directionId":1,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 60
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"totalNumberOfCmds":0
},
"zEndPointAttributes":
{
"directionId":1,
"totalNumberOfCmds":0
},
"facilities":{
"facilityAtoZ":"1 DWDMU Node1 Node2",
"facilityZtoA":"2 DWDMU Node1 Node2"
}
}
],
"nodes":[
{
"nodeIdentity":{
"tid":"Node1"
},
"geoLocation":{
"latitude":11.11,
"longitude":11.11
},
"nodeType":"ROADMLARGE"
},
{
"nodeIdentity":{
"tid":"Node2"
},
"geoLocation":{
"latitude":64.6,
"longitude":64.6
},
"nodeType":"ROADMSMALL"
}
]
}
Sample response
{
"addedNodes": [],
"removedNodes": [
{
"tid": "SiteA"
}
],
"addedFibers": [
{
"aEndNode": {
"tid": "Node1"
},
"zEndNode": {
"tid": "Node2"
},
"cableId": "Cable10",
"aTozFiber": {
"number": 1,
"fiberType": "NDSF",
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 61
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"zToaFiber": {
"number": 2,
"fiberType": "NDSF",
}
}
],
"removedFibers": [
{
"aEndNode": {
"tid": "Node1"
},
"zEndNode": {
"tid": "SiteA"
},
"cableId": "Cable1",
"lengthKm": 70,
"aTozFiber": {
"name": "Node1-11-1-5",
"number": 1,
"fiberType": "NDSF",
"lossDb": 16
},
"zToaFiber": {
"name": "SiteA-0-1-5",
"number": 2,
"fiberType": "NDSF",
"lossDb": 16
}
},
{
"aEndNode": {
"tid": "SiteA"
},
"zEndNode": {
"tid": "Node2"
},
"cableId": "Cable5",
"lengthKm": 40,
"aTozFiber": {
"name": "SiteA-0-4-5",
"number": 1,
"fiberType": "NDSF",
"lossDb": 12
},
"zToaFiber": {
"name": "Node2-11-1-5",
"number": 2,
"fiberType": "NDSF",
"lossDb": 12
}
}
]
}
Note 4: The above assumes the ROADM line had topology of Node1 - SiteA - Node2
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 62
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Perform the following using the OnePlanner Client. (For details, see the OnePlanner 5.5.18.03 User Guide.)
Plan equipment
Instructions follow on how to plan new equipment at existing ROADM nodes. New equipment can be one
or more of the following:
If the transponder shelf has no empty slots, the cards can also be slotted in mixed/photonic
shelves.
Note: You must create an Add Equipment Request and perform one or more of the following tasks:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 63
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Termination equipment groups associated with existing CMDs are comprised of either:
Note: If the transponder shelf has no empty slots, the cards can also be slotted in mixed/photonic
shelves.
Requirements
Note 1: Reusing the same planning project with multiple Equipment projects or Fiber Routes projects is
not supported. Add all the equipment within the same command.
Note 2: If adding equipment to a node that is being introduced or modified by another planning project,
you must commit the previous project (see commit a planning project) before its equipment can be used
to add more new equipment. Alternatively, a ProjectList may be used to plan equipment on an
uncommitted node. For details, see Project Lists.
• if you are adding an add/drop bank, a large ROADM network element where at least one direction
exists (real or planned) without the corresponding add/drop bank
• performed the following
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 64
Blue Planet MCP API Reference Guide, Release 18.06 Planning
CAUTION
• all member shelves are associated with the primary shelf in an alarm-free
state, and
• all member shelves are in service
Sample request
POST {MCP_SERVER}/equipmenttopologyplanning/api/v1/Equipment
1. Set the projectId or ProjectName to the ID or Name of the project to which the equipment will be
added.
2. Optionally, set the ProjectList id or name to the ID or Name of the ProjectList that the new equipment
is to be planned relative to.
3. In nodeIdentity, specify the TID or CLLI+Node ID of the device to which the equipment will be added.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 65
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"project": {
"id": "string",
"name": "string"
},
"projectList": {
"id": "string",
"name": "string"
},
"equipmentAdditions": [
{
"nodeIdentity": {
"clli": "string",
"nodeId": 0,
"tid": "string"
},
Sample request
"transponderBays": [
{
"bayId": 0
}
]}
Sample request
"addDropBanks": [
{
"addDropBankId": 2,
"totalCmdCount": 1
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 66
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Sample request
"cmds": [
{
"equipmentSpec": {
"partNumber": "string"
},
"addDropBankId": 0,
"totalCount": 0
}
],
Sample request
"terminationEquipmentGroups": [
{
"equipments": [
{
"equipmentSpec":
{ "partNumber": "NTK529BB"},
"
]
},
{
"equipmentSpec":
{ "partNumber": "NTK539UJ" },
"additionalAttributes": [
{
"key": "ADDDROPBANK",
"value": "1"
}
]
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 67
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Provide a termination EquipmentGroup with the product engineering code (PEC) or the provisioning name
of the interface cards to be added. Optionally, specify the add/drop bank. If the add/drop bank is not
specified, the API will pick diversified add/drop banks if they have a pair of free CMD ports. Specify the
add/drop bank to which the equipment will be added.
Note: If the transponder shelf has no empty slots, the cards can also be slotted in mixed/photonic
shelves.
Sample request
"terminationEquipmentGroups": [
{
"equipments": [
{
"equipmentSpec": {
"partNumber": "NTK539UJ"
},
"customerCode": "code",
"additionalAttributes": [
{
"key": "ADDDROPBANK",
"value": "2"
}
]
},
{
"equipmentSpec": {
"partNumber": "NTK539UJ"
},
"customerCode": "code",
"additionalAttributes": [
{
"key": "ADDDROPBANK",
"value": "5"
}
]
}
],
"regen":true
}
]
Note: The example shows two add/drop banks. If you specify only one add/drop bank or do not specify
any add/drop bank, then the add/drop bank(s) will be automatically selected based on the equipment
diversity rule. Both Regen cards are located in the same shelf. Each of the Regen cards will be connected
to an add/drop bank in a different shelf. (For example, Regen card A is connected to the add/drop bank in
Shelf X and Regen card B is connected to the add/drop bank in Shelf Y.)
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 68
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Sample request
"pluggables": [
{
"equipmentSpec": {
"partNumber": "string"
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [
{
"key": "RACK",
"value": "string",
"pattern": "string"
}
]
},
"customerCode": "string"
}
Note: Only equipments which were planned using MCP can be updated. You cannot use this API to
update discovered equipments.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 69
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Sample request
{
"data": {
"attributes": {
"intentId": "5a33f196-09ef-4ab4-b45b-1c19036f910a",
"equipment": [
{
"eqpId": "6522bec9-603e-36af-b8f6-5b8148fba41d::EQPT_1_41",
"customerCode": "New customer code"
}
]
}
}
}
Sample request
POST {MCP_SERVER}/projectmanagement/api/v2/ProjectLists
1. Specify the Project ID or Name (already created based on Create an Add Equipment Request).
2. Commit the project to create the intent by performing commit a planning project.
3. Create a ProjectList by modifying the Sample request as follows:
a. Optionally, set the ProjectList id or name to the ID or Name of the ProjectList that the new
equipment is to be planned relative to.
b. Set the projectId or ProjectName to the ID or Name of the project to which the equipment will be
added.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 70
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"id": "string",
"name": "string",
"validatedDate": "2017-03-10T15:21:05.490Z",
"committedDate": "2017-03-10T15:21:05.490Z",
"projects": [
{
"id": "string",
"name": "string"
}
],
"failureReasons": [
{
"project": {
"id": "string",
"name": "string"
},
"failureReasons": [
"string"
]
}
],
"state": "New",
"syncState": "New"
}
Note: This action is only available for users with “update inventory” privileges.
POST {{MCP_SERVER}}/ifd/api/v3/equipmentIntents
GET {{MCP_SERVER}}/nsi/api/v3/fres?freExpectations.equipmentIntent.id=EQUIP_INTENT_ID
DELETE {{MCP_SERVER}}/ifd/api/equipmentIntents/EQUIP_INTENT_ID
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 71
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"data" : {
"attributes" : {
"equipmentGroups" : [ ],
"equipment" : [ {
"eqpId" : "G5832-4-SITEB-014::1::EQPT-2-9",
"projectID" : "FR123",
"networkElements" : [ {
"name" : "G5832-4-SITEB-014",
"deviceType" : "PN6x",
"softwareVersion" : "12.3"
} ],
"shelf" : "2",
"slot" : "9",
"endpoints" : [ {
"port" : "5",
"layerTerminations" : [ {
"layerRate" : "OTU2e",
"manualAdjacencyPackage" : {
"adjacencyType" : "TXRX",
"localTag" : "G5832-4-SITEB-014-2-9-5",
"provisionedRemoteTag" : "G5832-4-SITED-016-4-2-2",
"remoteTagFormat" : "PID-SH-SL-PRT",
"adjacencyMechanism" : "OTU",
"linkAttributes" : {
"tags" : [ "Manual Topology" ],
"description" : "Topology description for Manual Topology in case
of TPEs exist",
"userLabel" : "Ref to third party network"
}
},
"cfmPackages" : [ ],
"trafficProfiles" : [ ],
"boundaries" : [ ],
"bundleIds" : [ ]
} ],
"controlPlaneLines" : [ ]
} ],
"equipmentOperation" : "UPDATE_ADJ"
}, {
"eqpId" : "G5832-4-SITED-016::1::EQPT-4-2",
"projectID" : "FR124",
"networkElements" : [ {
"name" : "G5832-4-SITED-016",
"deviceType" : "PN6x",
"softwareVersion" : "12.3"
} ],
"shelf" : "4",
"slot" : "2",
"endpoints" : [ {
"port" : "2",
"layerTerminations" : [ {
"layerRate" : "OTU2e",
"manualAdjacencyPackage" : {
"adjacencyType" : "TXRX",
"localTag" : "G5832-4-SITED-016-4-2-2",
"provisionedRemoteTag" : "G5832-4-SITEB-014-2-9-5",
"remoteTagFormat" : "PID-SH-SL-PRT",
"adjacencyMechanism" : "OTU",
"linkAttributes" : {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 72
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"data": [
{
"id": "6582320231977506248",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "plannedAndDiscovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
},
{
"attributeName": "attributes.description",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"tags": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 73
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"Manual",
"Topology"
],
"userLabel": "Ref to third party network",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTU2",
"layerRateQualifier": "OTU2e",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"manual"
],
"adminState": "In Service",
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"reliability": "auto",
"description": "Topology description for Manual Topology in case of
TPEs exist",
"resilienceLevel": "unprotected"
},
"relationships": {
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "6582320231977506248::8a6c7d43-0bdd-468d-b2f8-
a71a319052da"
}
]
},
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "6582320231977506248"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "6582320231977506248:1"
},
{
"type": "endPoints",
"id": "6582320231977506248:2"
}
]
}
}
}
],
"included": [
{
"id": "6582320231977506248:1",
"type": "endPoints",
"attributes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 74
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "b3d22bd3-41b7-36f5-8d97-
6b980ac29adf::TPE_b3d22bd3-41b7-36f5-8d97-6b980ac29adf::EQPT_4_2-2-
CTPServerToClient"
}
]
}
}
},
{
"id": "6582320231977506248:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c861b612-71bd-35ab-8489-
923da73ac2af::TPE_c861b612-71bd-35ab-8489-923da73ac2af::EQPT_2_9-5-
CTPServerToClient"
}
]
}
}
},
{
"id": "6582320231977506248::8a6c7d43-0bdd-468d-b2f8-a71a319052da",
"type": "freExpectations",
"attributes": {
"userLabel": "Ref to third party network",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTU2",
"layerRateQualifier": "OTU2e",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"manual"
],
"adminState": "In Service",
"active": true,
"reliability": "auto",
"description": "Topology description for Manual Topology in case of
TPEs exist",
"resilienceLevel": "unprotected"
},
"relationships": {
"equipmentIntent": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 75
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"data": {
"type": "equipmentIntents",
"id": "8a6c7d43-0bdd-468d-b2f8-a71a319052da"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "6582320231977506248:1"
},
{
"type": "endPoints",
"id": "6582320231977506248:2"
}
]
}
}
}
]
}
{
"links": {},
"data": [
{
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf::TPE_b3d22bd3-41b7-36f5-
8d97-6b980ac29adf::EQPT_4_2-2-CTPServerToClient",
"type": "tpes",
"attributes": {
"state": "IS",
"identifiers": [
{
"networkConstructId": "b3d22bd3-41b7-36f5-8d97-
6b980ac29adf",
"nodalId": "b3d22bd3-41b7-36f5-8d97-
6b980ac29adf::TPE_b3d22bd3-41b7-36f5-8d97-6b980ac29adf::EQPT_4_2-2-
CTPServerToClient"
}
],
"resourceState": "plannedAndDiscovered",
"structureType": "CTPServerToClient",
"nativeName": "OTUTTP-4-2-2",
"locations": [
{
"managementType": "tl1",
"shelf": "4",
"slot": "2",
"port": "2"
}
],
"layerTerminations": [
{
"layerRate": "OTU2",
"layerRateQualifier": "OTU2e",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 76
Blue Planet MCP API Reference Guide, Release 18.06 Planning
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 77
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"type": "LIST",
"format": "TribSlot"
},
"unit": "ODU0TS"
}
}
],
"cardType": "P10GSOEL",
"active": true,
"lifeCycleRules": {
"autoCreatedByNetwork": true,
"autoDeletedByNetwork": true
},
"additionalAttributes": {
"alarmResourceId": "OTUTTP-4-2-2"
}
},
"relationships": {
"tpePlanned": {
"data": {
"type": "tpePlanned",
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf::TPE_b3d22bd3-
41b7-36f5-8d97-6b980ac29adf::EQPT_4_2-2-CTPServerToClient"
}
},
"tpeExpectations": {
"data": [
{
"type": "tpeExpectations",
"id": "b3d22bd3-41b7-36f5-8d97-
6b980ac29adf::TPE_b3d22bd3-41b7-36f5-8d97-6b980ac29adf::EQPT_4_2-2-
CTPServerToClient::8a6c7d43-0bdd-468d-b2f8-a71a319052da"
}
]
},
"tpeDiscovered": {
"data": {
"type": "tpeDiscovered",
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf::TPE_b3d22bd3-
41b7-36f5-8d97-6b980ac29adf::EQPT_4_2-2-CTPServerToClient"
}
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf"
},
"meta": {
"partiallyPopulated": true
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf::EQPT_4_2_2"
}
},
"owningServerTpe": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 78
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"type": "tpes",
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf::TPE_b3d22bd3-
41b7-36f5-8d97-6b980ac29adf::EQPT_4_2-2-PTP"
}
}
}
},
{
"id": "c861b612-71bd-35ab-8489-923da73ac2af::TPE_c861b612-71bd-35ab-
8489-923da73ac2af::EQPT_2_9-5-CTPServerToClient",
"type": "tpes",
"attributes": {
"state": "IS",
"identifiers": [
{
"networkConstructId": "c861b612-71bd-35ab-8489-
923da73ac2af",
"nodalId": "c861b612-71bd-35ab-8489-
923da73ac2af::TPE_c861b612-71bd-35ab-8489-923da73ac2af::EQPT_2_9-5-
CTPServerToClient"
}
],
"resourceState": "plannedAndDiscovered",
"structureType": "CTPServerToClient",
"nativeName": "OTUTTP-2-9-5",
"locations": [
{
"managementType": "tl1",
"shelf": "2",
"slot": "9",
"port": "5"
}
],
"layerTerminations": [
{
"layerRate": "OTU2",
"layerRateQualifier": "OTU2e",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"adminState": "up",
"operationalState": "up",
"active": true,
"nativeName": "OTUTTP-2-9-5",
"additionalAttributes": {
"numOtnTribSlots": "1",
"otnLineRate": "OTU2e",
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
},
{
"layerRate": "DSR",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"additionalAttributes": {
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 79
Blue Planet MCP API Reference Guide, Release 18.06 Planning
}
],
"stackDirection": "bidirectional",
"displayAlias": "OTUTTP-2-9-5",
"fgiSpecificationRefList": [
"ODU_Switch_FG:1:2"
],
"totalCapacity": [
{
"layer": "ODU2e",
"capacity": 1,
"capacitySize": {
"size": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"pattern": {
"type": "LIST",
"format": "TribSlot"
},
"unit": "ODU0TS"
}
}
],
"usedCapacity": [
{
"layer": "ODU2e",
"capacity": 0,
"capacitySize": {
"size": [],
"pattern": {
"type": "LIST",
"format": "TribSlot"
},
"unit": "ODU0TS"
}
}
],
"cardType": "PXFP",
"active": true,
"lifeCycleRules": {
"autoCreatedByNetwork": true,
"autoDeletedByNetwork": true
},
"additionalAttributes": {
"alarmResourceId": "OTUTTP-2-9-5"
}
},
"relationships": {
"tpePlanned": {
"data": {
"type": "tpePlanned",
"id": "c861b612-71bd-35ab-8489-923da73ac2af::TPE_c861b612-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 80
Blue Planet MCP API Reference Guide, Release 18.06 Planning
71bd-35ab-8489-923da73ac2af::EQPT_2_9-5-CTPServerToClient"
}
},
"tpeExpectations": {
"data": [
{
"type": "tpeExpectations",
"id": "c861b612-71bd-35ab-8489-
923da73ac2af::TPE_c861b612-71bd-35ab-8489-923da73ac2af::EQPT_2_9-5-
CTPServerToClient::8a6c7d43-0bdd-468d-b2f8-a71a319052da"
}
]
},
"tpeDiscovered": {
"data": {
"type": "tpeDiscovered",
"id": "c861b612-71bd-35ab-8489-923da73ac2af::TPE_c861b612-
71bd-35ab-8489-923da73ac2af::EQPT_2_9-5-CTPServerToClient"
}
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "c861b612-71bd-35ab-8489-923da73ac2af"
},
"meta": {
"partiallyPopulated": true
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "c861b612-71bd-35ab-8489-923da73ac2af::EQPT_2_9_5"
}
},
"owningServerTpe": {
"data": {
"type": "tpes",
"id": "c861b612-71bd-35ab-8489-923da73ac2af::TPE_c861b612-
71bd-35ab-8489-923da73ac2af::EQPT_2_9-5-PTP"
}
}
}
}
],
"included": [
{
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf::TPE_b3d22bd3-41b7-36f5-
8d97-6b980ac29adf::EQPT_4_2-2-CTPServerToClient::8a6c7d43-0bdd-468d-b2f8-
a71a319052da",
"type": "tpeExpectations",
"attributes": {
"layerTerminations": [
{
"layerRate": "OTU2",
"layerRateQualifier": "OTU2e",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 81
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"adminState": "up",
"operationalState": "up",
"active": true,
"manualAdjacencyPackage": {
"adjacencyType": "TXRX",
"localTag": "G5832-4-SITED-016-4-2-2",
"provisionedRemoteTag": "G5832-4-SITEB-014-2-9-5",
"remoteTag": "G5832-4-SITEB-014-2-9-5",
"remoteTagFormat": "PID-SH-SL-PRT",
"adjacencyMechanism": "OTU",
"linkAttributes": {
"tags": [
"Manual",
"Topology"
],
"description": "Topology description for Manual
Topology in case of TPEs exist",
"userLabel": "Ref to third party network"
}
},
"nativeName": "OTUTTP-4-2-2",
"additionalAttributes": {
"numOtnTribSlots": "1",
"otnLineRate": "OTU2e",
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
},
{
"layerRate": "DSR",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"additionalAttributes": {
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
}
],
"stackDirection": "bidirectional",
"active": true,
"additionalAttributes": {
"alarmResourceId": "OTUTTP-4-2-2",
"stitchingInput": "true"
}
},
"relationships": {
"equipmentIntent": {
"data": {
"type": "equipmentIntents",
"id": "8a6c7d43-0bdd-468d-b2f8-a71a319052da"
}
},
"owningServerTpe": {
"data": {
"type": "tpes",
"id": "b3d22bd3-41b7-36f5-8d97-6b980ac29adf::TPE_b3d22bd3-
41b7-36f5-8d97-6b980ac29adf::EQPT_4_2-2-PTP"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 82
Blue Planet MCP API Reference Guide, Release 18.06 Planning
}
},
{
"id": "c861b612-71bd-35ab-8489-923da73ac2af::TPE_c861b612-71bd-35ab-
8489-923da73ac2af::EQPT_2_9-5-CTPServerToClient::8a6c7d43-0bdd-468d-b2f8-
a71a319052da",
"type": "tpeExpectations",
"attributes": {
"layerTerminations": [
{
"layerRate": "OTU2",
"layerRateQualifier": "OTU2e",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"adminState": "up",
"operationalState": "up",
"active": true,
"manualAdjacencyPackage": {
"adjacencyType": "TXRX",
"localTag": "G5832-4-SITEB-014-2-9-5",
"provisionedRemoteTag": "G5832-4-SITED-016-4-2-2",
"remoteTag": "G5832-4-SITED-016-4-2-2",
"remoteTagFormat": "PID-SH-SL-PRT",
"adjacencyMechanism": "OTU",
"linkAttributes": {
"tags": [
"Manual",
"Topology"
],
"description": "Topology description for Manual
Topology in case of TPEs exist",
"userLabel": "Ref to third party network"
}
},
"nativeName": "OTUTTP-2-9-5",
"additionalAttributes": {
"numOtnTribSlots": "1",
"otnLineRate": "OTU2e",
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
},
{
"layerRate": "DSR",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"additionalAttributes": {
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
}
],
"stackDirection": "bidirectional",
"active": true,
"additionalAttributes": {
"alarmResourceId": "OTUTTP-2-9-5",
"stitchingInput": "true"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 83
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
"relationships": {
"equipmentIntent": {
"data": {
"type": "equipmentIntents",
"id": "8a6c7d43-0bdd-468d-b2f8-a71a319052da"
}
},
"owningServerTpe": {
"data": {
"type": "tpes",
"id": "c861b612-71bd-35ab-8489-923da73ac2af::TPE_c861b612-
71bd-35ab-8489-923da73ac2af::EQPT_2_9-5-PTP"
}
}
}
}
]
}
Requirements
Before you start, make sure that you have performed the applicable task: * Plan a fiber route * Plan
equipment
Note: A site ID might change during the planning phase of project. Only at commit time will the value be
final. The OnePlanner UI might not show the updated site ID after the project is committed.
• Option A
• Option B
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 84
Blue Planet MCP API Reference Guide, Release 18.06 Planning
POST {{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects/{id}/commitOperation
POST {{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects/commitOperation
POST
{{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects/Commit?name={{PROJECT_Route1}}
Sample response
200 Ok
Sample request
GET {{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects
The operation will be complete when the project state indicates: “Committed”.
Sample response
{
"Id": "094772a4-9bd4-4b8a-8b1d-ec9aadc4b012",
"Name": "NewACRoute2",
"CompletionDate": "2017-12-31T23:59:59+00:00",
"ExpirationDate": null,
"State": "Committing",
"Description": null,
"StatusMessage": "Fiber route request succeeded",
"IntentId": null,
"ProjectListId": "94a527ba-3bb3-44c0-9761-5d11ac2df2a3"
}
If the state is “Committing”, wait a few seconds and issue the query again.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 85
Blue Planet MCP API Reference Guide, Release 18.06 Planning
1. Open the project in the OnePlanner client and modify the fiber number, fiber loss, or amplifier
provisioning attributes. See “Editing the fiber parameters for a committed Blue Planet MCP project” in
the OnePlanner 6.0.1806 User Guide – Part B (Designing a Photonic network), 450-3550-001, for more
details.
2. Run ROD without the equipment placement option if amplifiers need to be re-provisioned.
3. Save the project back to the Blue Planet MCP server.
4. Make sure you re-create the commissioning script, if required. For more details, see Generate
commissioning scripts.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 86
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Requirements
Note: Provide either the resourceId or resourceName. If both attributes are present, there will be a
failure due to ambiguity.
Sample request
PUT {{MCP_SERVER}}/ifd/api/v1/srlg
{
"data": {
"attributes": {
"resourceName": "1 DWDMU PV0754A111 PV0754B111",
"resourceType": "Fre",
"srlgSet": [
{
"srlgValues": [
"10234",
"20567"
],
"plannedStartDate": "2019-11-19T11:37:29.739Z"
}
]
}
}
}
Sample response
A response code of 200 indicates that the SRLG was successfully updated.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 87
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"data": {
"id": "b9dcfb7a-4043-47ad-9dbe-b4c31e3f1479",
"requestType": "srlgRequest",
"attributes": {
"resourceId": "<<freId>>>",
"resourceType": "Fre",
"srlgSet": [
{
"srlgValues": [
"abc"
],
"structuredSRLGValues": []
}
]
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 88
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Requirements
Sample request
GET {{MCP_SERVER}}/ifd/api/v1/srlg/{id}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 89
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"data": {
"requestType": "srlgRequest",
"attributes": {
"resourceId": "-2665141645553035328",
"resourceType": "Fre",
"srlgSet": [
{
"id": "0579fff9-9557-42c6-9d88-978aef0a691f",
"srlgValues": [
"att10"
],
"structuredSRLGValues": []
},
{
"id": "10ceb9e4-4772-42b1-b2e5-2b165a0cd8ed",
"plannedStartDate": "2018-11-19T11:37:29.739Z",
"srlgValues": [
"10697",
"10234"
],
"structuredSRLGValues": []
},
{
"id": "89a81a60-a1fa-4a11-bfca-2b778df0439f",
"plannedStartDate": "2019-11-19T11:37:29.739Z",
"srlgValues": [
"10234",
"20567"
],
"structuredSRLGValues": []
},
{
"id": "c29a68ff-256c-4cf3-b1e6-f8bd4d76d83e",
"plannedStartDate": "2018-06-24T17:02:15.632Z",
"srlgValues": [
"20234",
"30567"
],
"structuredSRLGValues": []
},
{
"id": "daf570c3-21f8-46c1-94b2-9d928897cf19",
"plannedStartDate": "2018-06-24T17:00:26.149Z",
"srlgValues": [
"10697",
"10234"
],
"structuredSRLGValues": []
}
]
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 90
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Requirements
If the empty srlgSet (srlgSet with no value) is applied, then the existing SLRG data is deleted.
Sample request
PUT {{MCP_SERVER}}/ifd/api/v1/srlg
{
"data": {
"attributes": {
"resourceId": "-1051233137015796590",
"resourceType": "Fre",
"srlgSet": []
}
}
}
{
"data": {
"id": "0a5e1eb9-2f19-4bf5-9775-50e0d4f56f6e",
"requestType": "srlgRequest",
"attributes": {
"resourceId": "-1051233137015796590",
"resourceType": "Fre",
"srlgSet": []
}
}
}
Canceling a committed planning project issues a DELETE on the intent and transitions the project state to
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 91
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Canceled. The project and its associated planning data are not deleted.
WARNING
The intent is not deleted if either of the following conditions are true:
To cancel a project even if equipment has been realized, set the “ignoreEquipmentProvisioining” flag to
“true” in the cancelOperation.
To check if there are other projects that depend on the project being cancelled, set the
"checkDependencies" flag to "true" in the cancelOperation. If any dependencies are found, then cancelling
the project fails and lists the projects that depend on the project being cancelled.
WARNING
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 92
Blue Planet MCP API Reference Guide, Release 18.06 Planning
• Option A
• Option B
POST {{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects/cancel
POST {{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects/{id)/cancel
POST
{{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects/{{PROJECT_ID_Route1}}/CancelOperatio
n
200 Ok
Sample request
GET {{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 93
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"Id": "094772a4-9bd4-4b8a-8b1d-ec9aadc4b012",
"Name": "NewACRoute2",
"CompletionDate": "2017-12-31T23:59:59+00:00",
"ExpirationDate": null,
"State": "Cancelling",
"Description": null,
"StatusMessage": "Intent accepted by IFD",
"IntentId": "8283a874-e892-412e-8386-ab9735e544ec",
"ProjectListId": "94a527ba-3bb3-44c0-9761-5d11ac2df2a3"
}
Sample request
GET {{MCP_SERVER}}/projectmanagement/api/v1/PlanningProjects/094772a4-9bd4-4b8a-8b1d-
ec9aadc4b012
Sample response
{
"Id": "094772a4-9bd4-4b8a-8b1d-ec9aadc4b012",
"Name": "NewACRoute2",
"CompletionDate": "2017-12-31T23:59:59+00:00",
"ExpirationDate": null,
"State": "InProcess",
"Description": null,
"StatusMessage": "Intent 8283a874-e892-412e-8386-ab9735e544ec deleted from IFD",
"IntentId": "",
"ProjectListId": "94a527ba-3bb3-44c0-9761-5d11ac2df2a3"
}
If the state is “Cancelling”, wait a few seconds and issue the query again.
• Project rename
• Project date change
• Fiber characteristic changes (OnePlanner client).
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 94
Blue Planet MCP API Reference Guide, Release 18.06 Planning
To reuse the project after it has been cancelled, perform commit a planning project.
Project Lists
ProjectLists allow individual projects created by one or more users to be sequenced and validated against
each other, against the network, and against all previously committed projects.
As Projects are added to a ProjectList, they are validated against existing Projects in the list.
While adding projects, if a conflict is detected, or if a required dependency is missing, the Project will be
rejected.
Ports and slots are not reserved until projects are committed.
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 95
Blue Planet MCP API Reference Guide, Release 18.06 Planning
• created individual planning projects for Fiber Routes to be included in the Project List (see Create a
planning project and Plan a fiber route )
Sample request
POST {{MCP_SERVER}}/projectmanagment/api/v2/ProjectLists
{
"name": "ProjectList1"
}
Modify the example to create a planning project list, as required. The Name must be 1 to 16 alphanumeric
characters.
Note either the project list ID or name in the following Example response body. You will copy the project
list ID or name from the response body and use it in other REST API tasks.
Sample response
{
"id": "9306343e-e253-4c8a-b5e1-3b9edf5530e1",
"name": "TomPL",
"projects": [],
"failureReasons": {},
"state": "New",
"syncState": "New"
}
Sample request
POST {{MCP_SERVER}}/projectmanagment/api/v2/ProjectLists/{projectListName}/addProject
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 96
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"projectName": "{{PROJECT_Route1}}"
}
• The Project List Name uniquely identifies the ProjectList that the Project is to be added to.
• The Project Name uniquely identifies the Fiber Route or Equipment project that is to be added to the
Project List.
Sample response
{
"id": "94a527ba-3bb3-44c0-9761-5d11ac2df2a3",
"name": "ProjectList1_MixEQPT",
"projects": [],
"failureReasons": [],
"state": "New",
"syncState": "Synchronizing"
}
Poll the status of the ProjectList periodically until syncState is either LastProjectAddSynchronized or
LastProjectAddFailed.
Sample response
GET {{MCP_SERVER}}/projectmanagment/api/v2/ProjectLists
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 97
Blue Planet MCP API Reference Guide, Release 18.06 Planning
[
{
"id": "94a527ba-3bb3-44c0-9761-5d11ac2df2a3",
"name": "ProjectList1_MixEQPT",
"projects": [
{
"id": "094772a4-9bd4-4b8a-8b1d-ec9aadc4b012",
"name": "NewACRoute2"
}
],
"failureReasons": [],
"state": "Valid",
"syncState": "LastProjectAddSynchronized"
}
]
Repeat the task Add an existing Fiber Route or Equipment planning project to a project list for every
existing planning project, as applicable.
Note: In Plan equipment, be sure to include the optional Project List ID or name.
Note: Creating a new Equipment Planning project in the context of an existing project list ensures that the
slots assigned to newly planned equipment take into account other planned equipment that are included
in other projects in the project list.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 98
Blue Planet MCP API Reference Guide, Release 18.06 Planning
To determine the number of cards that can be added to a bay, the system first considers the traffic-
carrying circuit packs, pluggables, common equipment, photonic equipment, and spares.
When you are adding a number of circuit packs to a bay, messages similar to the following can display in
the response body:
1. If circuits packs are being added to a bay without breaching the threshold, the following appears in the
response body with the status “Ok”.
{
"heatDissipationThresholdStatus": {
"status": "Ok",
"warningThreshold": [],
"blockingThreshold": []
}
}
2. If circuits packs are being added to a bay breaching the warning threshold but not the blocking one,
the following appears in the response body with the status “Warning” and the calculated heat value of
the current and added circuit packs. The bay getting added with a breaching threshold is also
identified by threshold type (Global/Site/Bay).
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 99
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"heatDissipationThresholdStatus": {
"status": "Warning",
"warningThreshold": [{
"bay": {
"nodeIdentity": {
"clli": "SITEA",
"tid": "SITEA1"
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [{
"key": "RACK",
"value": "1"
}]
}
},
"calculatedHeatDissipation": 1760,
"heatDissipationThreshold": {
"warningThreshold": "1502",
"blockingThreshold": "1900"
},
"thresholdType": "Global"
}],
"blockingThreshold": []
}
}
3. If a circuits pack’s power breaches the warning and blocking thresholds, the following appears in the
response body with the status “Exceeded” if it will not get added to any bays in that site. The
calculated heat value of the presently slotted circuit packs also appears. The power and PECs of the
first unslotted circuit packs and the threshold type (Global/Site/Bay) are also included in the response
body.
{
"heatDissipationThresholdStatus": {
"status": "Exceeded",
"warningThreshold": [],
"blockingThreshold": [{
"bay": {
"nodeIdentity": {
"clli": "SITEA",
"tid": "SITEA1"
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [{
"key": "RACK",
"value": "1"
}]
}
},
"calculatedHeatDissipation": 986,
"heatDissipationThreshold": {
"warningThreshold": "500",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 100
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"blockingThreshold": "600"
},
"thresholdType": "Global"
},
{
"bay": {
"nodeIdentity": {
"clli": "SITEA",
"tid": "SITEA1"
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [{
"key": "RACK",
"value": "2"
}]
}
},
"calculatedHeatDissipation": 783,
"heatDissipationThreshold": {
"warningThreshold": "500",
"blockingThreshold": "600"
},
"thresholdType": "Global"
}
],
"unslottedEquipmentGroups": [{
"unslottedEquipmentHeatDissipation": [{
"pec": "NTK539UJ",
"power": 160
},
{
"pec": "NTK529AC",
"power": 85
},
{
"pec": "160-9115-900",
"power": 13
}
]
}]
}
}
A single Heat Dissipation REST API for all heat dissipation settings (Global, Site, Rack/Bay) can be used to
provide the ability to set either or both of the two thresholds.
Two thresholds (“Threshold 1” - Warning and “Threshold 2” - Block) for heat dissipation in watts can be
set globally for all bays in the network, per site for all bays in a specific site or for a specific rack/bay.
All heat dissipation settings (global, site, rack/bay) can be set for either or both of the two thresholds.
The thresholds are applied in the order: global threshold > overridden by per site threshold > overridden by
per rack/bay threshold.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 101
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Specific tasks you can perform with the Heat Dissipation REST API are:
To create a global heat dissipation policy, use the Equipment and Topology Planning API.
Requirements
• you have Blue Planet MCP credentials (user name and password) and planner permissions
• the network elements and fiber routes are planned
• the projects for the network elements and fiber routes are in a Committed state
• you know the tolerable heat dissipation level for each bay (prescribed by your company)
• you understand the Heat dissipation policy overview. In your request, modify the example to create a
heat dissipation policy, as required.
• Specify a name that is unique.
Note: For now you can give only the name “Heat dissipation threshold policy” to the policy. If the heat
dissipation policy is created with any other name, it is not considered.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 102
Blue Planet MCP API Reference Guide, Release 18.06 Planning
• Specify the value in watts for the warning and blocking thresholds.
Sample request
POST {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies
{
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {
"warningThreshold": "600",
"blockingThreshold": "700"
}
}
}
Sample response
{
"id": "cb481b74-d4b7-4d4f-87fa-0660cfe21c2b",
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {
"warningThreshold": "600",
"blockingThreshold": "700"
},
"siteHeatDissipationPolicies": [],
"bayHeatDissipationPolicies": []
},
"userActivityInfo": {
"createdByUserName": "admin",
"creationTime": "2017-07-19T17:36:02.090458+00:00"
}
}
To create a site heat dissipation policy, use the Equipment and Topology Planning API.
Requirements
• you have Blue Planet MCP credentials (user name and password) and planner permissions
• the network elements and fiber routes are planned
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 103
Blue Planet MCP API Reference Guide, Release 18.06 Planning
• the projects for the network elements and fiber routes are in a Committed state
• you know the tolerable heat dissipation level for each bay (prescribed by your company)
• you understand the Heat dissipation policy overview. In your request, modify the example to create a
heat dissipation policy, as required.
• Specify a name that is unique.
Note: For now you can give only the name “Heat dissipation threshold policy” to the policy. If the heat
dissipation policy is created with any other name, it is not considered.
• Specify the value in watts for the warning and blocking thresholds.
POST {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies
{
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"siteHeatDissipationPolicies": [{
"clli": "SITEA",
"heatDissipationThreshold": {
"warningThreshold": 500,
"blockingThreshold": 900
}
},
{
"clli": "SITEB",
"heatDissipationThreshold": {
"warningThreshold": 500,
"blockingThreshold": 130
}
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 104
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {
"warningThreshold": "1030",
"blockingThreshold": "1040"
},
"siteHeatDissipationPolicies": [{
"clli": "SITEA",
"heatDissipationThreshold": {
"warningThreshold": "1040",
"blockingThreshold": "1050"
}
}],
"bayHeatDissipationPolicies": []
}
}
See Sample response - site policy only and Sample response - global and site policies in one call for
details.
To create a rack/bay heat dissipation policy, use the Equipment and Topology Planning API.
Requirements
• you have Blue Planet MCP credentials (user name and password) and planner permissions
• the network elements and fiber routes are planned
• the projects for the network elements and fiber routes are in a Committed state
• you know the tolerable heat dissipation level for each bay (prescribed by your company)
• you understand the Heat dissipation policy overview. In your request, modify the example to create a
heat dissipation policy, as required.
• Specify a name that is unique.
Note: For now you can give only the name “Heat dissipation threshold policy” to the policy. If the heat
dissipation policy is created with any other name, it is not considered.
• Specify the value in watts for the warning and blocking thresholds.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 105
Blue Planet MCP API Reference Guide, Release 18.06 Planning
POST {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies
{
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {},
"siteHeatDissipationPolicies": [],
"bayHeatDissipationPolicies": [{
"bay": {
"nodeIdentity": {
"clli": "SITEA",
"nodeId": "1"
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [{
"key": "RACK",
"value": 1
}]
}
},
"heatDissipationThreshold": {
"warningThreshold": "1243",
"blockingThreshold": "1243"
}
}]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 106
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {
"warningThreshold": 1030,
"blockingThreshold": 1040
},
"siteHeatDissipationPolicies": [{
"clli": "SITEA",
"heatDissipationThreshold": {
"warningThreshold": 1042,
"blockingThreshold": 1050
}
}],
"bayHeatDissipationPolicies": [{
"bay": {
"nodeIdentity": {
"clli": "SITEA",
"nodeId": 1
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [{
"key": "RACK",
"value": 2
}]
}
},
"heatDissipationThreshold": {
"warningThreshold": 1040,
"blockingThreshold": 1040
}
}]
}
}
See Sample response - site policy only and Sample response - global and site policies in one call for
details.
To retrieve the policy, use the Equipment and Topology Planning API.
Sample request
GET {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 107
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"id": "cb481b74-d4b7-4d4f-87fa-0660cfe21c2b",
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {
"warningThreshold": "600",
"blockingThreshold": "700"
},
"siteHeatDissipationPolicies": [],
"bayHeatDissipationPolicies": []
},
"userActivityInfo": {
"createdByUserName": "admin",
"creationTime": "2017-07-19T17:36:02.090458+00:00"
}
}
{
"id": "8f158a71-408e-4012-b027-fb152d0fa740",
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {},
"siteHeatDissipationPolicies": [{
"clli": "SITEA",
"heatDissipationThreshold": {
"warningThreshold": "1244",
"blockingThreshold": "1245"
}
}],
"bayHeatDissipationPolicies": []
},
"userActivityInfo": {
"lastModifiedByUserName": "admin",
"lastModifiedTime": "2017-07-19T18:36:30.586366+00:00"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 108
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"id": "8f158a71-408e-4012-b027-fb152d0fa740",
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {
"warningThreshold": "1030",
"blockingThreshold": "1040"
},
"siteHeatDissipationPolicies": [{
"clli": "SITEA",
"heatDissipationThreshold": {
"warningThreshold": "1040",
"blockingThreshold": "1050"
}
}],
"bayHeatDissipationPolicies": []
},
"userActivityInfo": {
"createdByUserName": "admin",
"creationTime": "2017-07-19T18:27:19.723557+00:00"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 109
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"id": "8f158a71-408e-4012-b027-fb152d0fa740",
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {},
"siteHeatDissipationPolicies": [],
"bayHeatDissipationPolicies": [{
"bay": {
"nodeIdentity": {
"clli": "SITEA",
"nodeId": 1
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [{
"key": "RACK",
"value": "1"
}]
}
},
"heatDissipationThreshold": {
"warningThreshold": "1243",
"blockingThreshold": "1243"
}
}]
},
"userActivityInfo": {
"lastModifiedByUserName": "admin",
"lastModifiedTime": "2017-07-19T19:25:55.481999+00:00"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 110
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"id": "8f158a71-408e-4012-b027-fb152d0fa740",
"name": "Heat dissipation threshold policy",
"heatDissipationThresholdPolicy": {
"globalHeatDissipationPolicy": {
"warningThreshold": "1030",
"blockingThreshold": "1040"
},
"siteHeatDissipationPolicies": [{
"clli": "SITEA",
"heatDissipationThreshold": {
"warningThreshold": "1042",
"blockingThreshold": "1050"
}
}],
"bayHeatDissipationPolicies": [{
"bay": {
"nodeIdentity": {
"clli": "SITEA",
"nodeId": 1
},
"location": {
"mgmtAccess": "TL1_ACCESS",
"address": [{
"key": "RACK",
"value": "2"
}]
}
},
"heatDissipationThreshold": {
"warningThreshold": "1040",
"blockingThreshold": "1040"
}
}]
},
"userActivityInfo": {
"lastModifiedByUserName": "admin",
"lastModifiedTime": "2017-07-19T19:26:42.133156+00:00"
}
}
• Service Provisioning Policy (SPP) - line and service card preferences, and mappings.
This policy has the capability to Rank Service Equipment (ranking of client cards per line card and ranking
of plugs for a given client card and rate). Creation and modification of policy is accomplished using REST
APIs.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 111
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Note: In 17.06 the user is advised to create only one Service Provisioning Policy. MCP will use first
planning policy that has Service Provisioning Policy section defined and therefore it is advisable not to
have more than one to avoid confusion.
Sample request
GET {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies
Sample response
[
{
"id": "dbd49f70-318f-4b8d-b05d-37497e713711",
"name": "Valid planning policy with only ServiceProvisioningPolicy",
"serviceProvisioningPolicy": {
"cardPolicies": [
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 112
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"rate": "DSR_100GE",
"pec": "160-9115-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03GJ"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03HE"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01CE"
},
{
"rate": "DSR_100GE",
"pec": "160-9113-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03BE"
},
{
"rate": "OTM4",
"pec": "160-9114-900"
},
{
"rate": "OTM4",
"pec": "160-9115-900"
},
{
"rate": "OTM4",
"pec": "NTTA01CE"
},
{
"rate": "OTM4",
"pec": "NTTA03BE"
}
]
},
{
"cardPec": "NTK529BX",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 113
Blue Planet MCP API Reference Guide, Release 18.06 Planning
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP81BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81KA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HB"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HC"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HD"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HE"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HF"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HG"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HH"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 114
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"rate": "DSR_10GE",
"pec": "NTTP83BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP80DA"
},
{
"rate": "OTM2",
"pec": "NTTP81KA"
},
{
"rate": "OTM2",
"pec": "NTTP84HA"
},
{
"rate": "OTM2",
"pec": "NTTP84HB"
},
{
"rate": "OTM2",
"pec": "NTTP84HC"
},
{
"rate": "OTM2",
"pec": "NTTP84HD"
},
{
"rate": "OTM2",
"pec": "NTTP84HE"
},
{
"rate": "OTM2",
"pec": "NTTP84HF"
},
{
"rate": "OTM2",
"pec": "NTTP84HG"
},
{
"rate": "OTM2",
"pec": "NTTP84HH"
},
{
"rate": "OTM2",
"pec": "NTTP83BA"
},
{
"rate": "OTM2",
"pec": "NTTP84AA"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 115
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "OTM2",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP86AA"
},
{
"rate": "OTM2",
"pec": "NTTP86BA"
}
]
},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UX",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BB",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BE",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BH",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 116
Blue Planet MCP API Reference Guide, Release 18.06 Planning
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538DZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9400-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9401-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9402-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9403-900"
},
{
"rate": "OTM4",
"pec": "160-9400-900"
},
{
"rate": "OTM4",
"pec": "160-9401-900"
},
{
"rate": "OTM4",
"pec": "160-9402-900"
},
{
"rate": "OTM4",
"pec": "160-9403-900"
}
]
}
]
},
"userActivityInfo": {
"createdByUserName": "sensfan",
"creationTime": "2017-05-22T22:05:43.579+00:00",
"lastModifiedByUserName": "bobama",
"lastModifiedTime": "2017-05-22T22:31:45.855+00:00"
}
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 117
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Sample request
Sample response
[
{
"id": "dbd49f70-318f-4b8d-b05d-37497e713711",
"name": "Valid planning policy with only ServiceProvisioningPolicy",
"serviceProvisioningPolicy": {
"cardPolicies": [
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9115-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03GJ"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03HE"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01CE"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 118
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "DSR_100GE",
"pec": "160-9113-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03BE"
},
{
"rate": "OTM4",
"pec": "160-9114-900"
},
{
"rate": "OTM4",
"pec": "160-9115-900"
},
{
"rate": "OTM4",
"pec": "NTTA01CE"
},
{
"rate": "OTM4",
"pec": "NTTA03BE"
}
]
},
{
"cardPec": "NTK529BX",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP81BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80BA"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 119
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81KA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HB"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HC"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HD"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HE"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HF"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HG"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HH"
},
{
"rate": "DSR_10GE",
"pec": "NTTP83BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP80DA"
},
{
"rate": "OTM2",
"pec": "NTTP81KA"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 120
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "OTM2",
"pec": "NTTP84HA"
},
{
"rate": "OTM2",
"pec": "NTTP84HB"
},
{
"rate": "OTM2",
"pec": "NTTP84HC"
},
{
"rate": "OTM2",
"pec": "NTTP84HD"
},
{
"rate": "OTM2",
"pec": "NTTP84HE"
},
{
"rate": "OTM2",
"pec": "NTTP84HF"
},
{
"rate": "OTM2",
"pec": "NTTP84HG"
},
{
"rate": "OTM2",
"pec": "NTTP84HH"
},
{
"rate": "OTM2",
"pec": "NTTP83BA"
},
{
"rate": "OTM2",
"pec": "NTTP84AA"
},
{
"rate": "OTM2",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP86AA"
},
{
"rate": "OTM2",
"pec": "NTTP86BA"
}
]
},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 121
Blue Planet MCP API Reference Guide, Release 18.06 Planning
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UX",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BB",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BE",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BH",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538DZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9400-900"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 122
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "DSR_100GE",
"pec": "160-9401-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9402-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9403-900"
},
{
"rate": "OTM4",
"pec": "160-9400-900"
},
{
"rate": "OTM4",
"pec": "160-9401-900"
},
{
"rate": "OTM4",
"pec": "160-9402-900"
},
{
"rate": "OTM4",
"pec": "160-9403-900"
}
]
}
]
},
"userActivityInfo": {
"createdByUserName": "sensfan",
"creationTime": "2017-05-22T22:05:43.579+00:00",
"lastModifiedByUserName": "bobama",
"lastModifiedTime": "2017-05-22T22:31:45.855+00:00"
}
}
]
Sample request
GET {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies/dbd49f70-318f-4b8d-b05d-
37497e713711
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 123
Blue Planet MCP API Reference Guide, Release 18.06 Planning
[
{
"id": "dbd49f70-318f-4b8d-b05d-37497e713711",
"name": "Valid planning policy with only ServiceProvisioningPolicy",
"serviceProvisioningPolicy": {
"cardPolicies": [
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9115-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03GJ"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03HE"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01CE"
},
{
"rate": "DSR_100GE",
"pec": "160-9113-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03BE"
},
{
"rate": "OTM4",
"pec": "160-9114-900"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 124
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"rate": "OTM4",
"pec": "160-9115-900"
},
{
"rate": "OTM4",
"pec": "NTTA01CE"
},
{
"rate": "OTM4",
"pec": "NTTA03BE"
}
]
},
{
"cardPec": "NTK529BX",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP81BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81KA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HB"
},
{
"rate": "DSR_10GE",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 125
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"pec": "NTTP84HC"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HD"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HE"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HF"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HG"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HH"
},
{
"rate": "DSR_10GE",
"pec": "NTTP83BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP80DA"
},
{
"rate": "OTM2",
"pec": "NTTP81KA"
},
{
"rate": "OTM2",
"pec": "NTTP84HA"
},
{
"rate": "OTM2",
"pec": "NTTP84HB"
},
{
"rate": "OTM2",
"pec": "NTTP84HC"
},
{
"rate": "OTM2",
"pec": "NTTP84HD"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 126
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"rate": "OTM2",
"pec": "NTTP84HE"
},
{
"rate": "OTM2",
"pec": "NTTP84HF"
},
{
"rate": "OTM2",
"pec": "NTTP84HG"
},
{
"rate": "OTM2",
"pec": "NTTP84HH"
},
{
"rate": "OTM2",
"pec": "NTTP83BA"
},
{
"rate": "OTM2",
"pec": "NTTP84AA"
},
{
"rate": "OTM2",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP86AA"
},
{
"rate": "OTM2",
"pec": "NTTP86BA"
}
]
},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UX",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 127
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BB",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BE",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BH",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538DZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9400-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9401-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9402-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9403-900"
},
{
"rate": "OTM4",
"pec": "160-9400-900"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 128
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"rate": "OTM4",
"pec": "160-9401-900"
},
{
"rate": "OTM4",
"pec": "160-9402-900"
},
{
"rate": "OTM4",
"pec": "160-9403-900"
}
]
}
]
},
"userActivityInfo": {
"createdByUserName": "sensfan",
"creationTime": "2017-05-22T22:05:43.579+00:00",
"lastModifiedByUserName": "bobama",
"lastModifiedTime": "2017-05-22T22:31:45.855+00:00"
}
}
]
Sample request
POST {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies
Note: This example creates planning policy with only service provisioning policy. Content of the request is
validated and the request will fail if validation fails. Examples of validation errors are shown in the
following topic (Create a new planning policy - validation errors).
{
"name": "Valid planning policy with only ServiceProvisioningPolicy",
"serviceProvisioningPolicy": {
"cardPolicies": [
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 129
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9115-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03GJ"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03HE"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01CE"
},
{
"rate": "DSR_100GE",
"pec": "160-9113-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03BE"
},
{
"rate": "OTM4",
"pec": "160-9114-900"
},
{
"rate": "OTM4",
"pec": "160-9115-900"
},
{
"rate": "OTM4",
"pec": "NTTA01CE"
},
{
"rate": "OTM4",
"pec": "NTTA03BE"
}
]
},
{
"cardPec": "NTK529BX",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 130
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP81BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81KA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HB"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HC"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HD"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HE"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HF"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HG"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 131
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "DSR_10GE",
"pec": "NTTP84HH"
},
{
"rate": "DSR_10GE",
"pec": "NTTP83BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP80DA"
},
{
"rate": "OTM2",
"pec": "NTTP81KA"
},
{
"rate": "OTM2",
"pec": "NTTP84HA"
},
{
"rate": "OTM2",
"pec": "NTTP84HB"
},
{
"rate": "OTM2",
"pec": "NTTP84HC"
},
{
"rate": "OTM2",
"pec": "NTTP84HD"
},
{
"rate": "OTM2",
"pec": "NTTP84HE"
},
{
"rate": "OTM2",
"pec": "NTTP84HF"
},
{
"rate": "OTM2",
"pec": "NTTP84HG"
},
{
"rate": "OTM2",
"pec": "NTTP84HH"
},
{
"rate": "OTM2",
"pec": "NTTP83BA"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 132
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM2",
"pec": "NTTP84AA"
},
{
"rate": "OTM2",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP86AA"
},
{
"rate": "OTM2",
"pec": "NTTP86BA"
}
]
},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UX",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BB",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BE",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 133
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"cardPec": "NTK539BH",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538DZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9400-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9401-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9402-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9403-900"
},
{
"rate": "OTM4",
"pec": "160-9400-900"
},
{
"rate": "OTM4",
"pec": "160-9401-900"
},
{
"rate": "OTM4",
"pec": "160-9402-900"
},
{
"rate": "OTM4",
"pec": "160-9403-900"
}
]
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 134
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Sample response
{
"id": "dbd49f70-318f-4b8d-b05d-37497e713711",
"name": "Valid planning policy with only ServiceProvisioningPolicy",
"serviceProvisioningPolicy": {
"cardPolicies": [
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9115-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03GJ"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03HE"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01CE"
},
{
"rate": "DSR_100GE",
"pec": "160-9113-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03BE"
},
{
"rate": "OTM4",
"pec": "160-9114-900"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 135
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM4",
"pec": "160-9115-900"
},
{
"rate": "OTM4",
"pec": "NTTA01CE"
},
{
"rate": "OTM4",
"pec": "NTTA03BE"
}
]
},
{
"cardPec": "NTK529BX",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP81BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81KA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HB"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 136
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "DSR_10GE",
"pec": "NTTP84HC"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HD"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HE"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HF"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HG"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HH"
},
{
"rate": "DSR_10GE",
"pec": "NTTP83BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP80DA"
},
{
"rate": "OTM2",
"pec": "NTTP81KA"
},
{
"rate": "OTM2",
"pec": "NTTP84HA"
},
{
"rate": "OTM2",
"pec": "NTTP84HB"
},
{
"rate": "OTM2",
"pec": "NTTP84HC"
},
{
"rate": "OTM2",
"pec": "NTTP84HD"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 137
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM2",
"pec": "NTTP84HE"
},
{
"rate": "OTM2",
"pec": "NTTP84HF"
},
{
"rate": "OTM2",
"pec": "NTTP84HG"
},
{
"rate": "OTM2",
"pec": "NTTP84HH"
},
{
"rate": "OTM2",
"pec": "NTTP83BA"
},
{
"rate": "OTM2",
"pec": "NTTP84AA"
},
{
"rate": "OTM2",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP86AA"
},
{
"rate": "OTM2",
"pec": "NTTP86BA"
}
]
},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UX",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UN",
"certifiedMatePecs": [
"NTK529AC",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 138
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BB",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BE",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BH",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538DZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9400-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9401-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9402-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9403-900"
},
{
"rate": "OTM4",
"pec": "160-9400-900"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 139
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM4",
"pec": "160-9401-900"
},
{
"rate": "OTM4",
"pec": "160-9402-900"
},
{
"rate": "OTM4",
"pec": "160-9403-900"
}
]
}
]
},
"userActivityInfo": {
"createdByUserName": "",
"creationTime": "2017-07-12T13:49:28.3783341+00:00"
}
}
To create a new planning policy, use the Equipment and Topology Planning API.
Sample request
POST {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies
Note: This example creates planning policy with only service provisioning policy (with validation errors).
{
"id":"Testing validation",
"name": "",
"serviceProvisioningPolicy": {
"cardPolicies": [
{
"cardPec": "",
"certifiedMatePecs": [],
"certifiedClientPluggables": []
},
{
"cardPec": "PEC_XYZZZZZZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": []
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 140
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"cardPec": "NTK539QK",
"certifiedMatePecs": [
"NTK529BB",
"NTK529BA",
"NTK529AC"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538UM",
"certifiedMatePecs": [
"BLA1",
"BLA2"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK529BA",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP30CF"
},
{
"rate": "DSR_10GE",
"pec": "160-9111-900"
}
]},
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539QK",
"NTK539UX",
"FANTOM_CARD"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9115-900"
}
]},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529BB",
"NTK529BA",
"NTK529AC"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 141
Blue Planet MCP API Reference Guide, Release 18.06 Planning
]},
{
"cardPec": "NTK538BJ",
"certifiedMatePecs": [],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK529BB",
"certifiedMatePecs": [
"NTK539QK",
"NTK539UJ"
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": ""
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "OTM2",
"pec": "PEC_PLUG_XYZ"
}
]},
{
"cardPec": "NTK539QK",
"certifiedMatePecs": [
"NTK529BB",
"NTK529BA",
"NTK529AC"
],
"certifiedClientPluggables": []}
]
},
"userActivityInfo": {
"createdByUserName": "sensfan",
"creationTime": "2017-05-31T15:18:59.458+00:00"
}
}
Sample response
Note: All possible validation errors for ServiceProvisioningPolicy and most PlanningPolicy validation
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 142
Blue Planet MCP API Reference Guide, Release 18.06 Planning
errors are shown in this example. Heat dissipation policy validation errors are not covered here.
{
"errors": [
{
"title": "Planning policy id can't be specified."
},
{
"title": "Planning policy name can't be empty."
},
{
"title": "Planning policy UserActivityInfo can't be specified."
},
{
"title": "CardPolicy[0].CardPec:. Can't be an empty string."
},
{
"title": "CardPolicy[1].CardPec:PEC_XYZZZZZZ. Not valid or supported
PEC."
},
{
"title": "CardPolicy[2].CardPec:NTK539QK is not unique. CardPolicy
indexies with same cardPec:2,9."
},
{
"title": "CardPolicies[3].CardPec:NTK538UM should not have any
CertifiedMatePecs defined. Leave this section empty."
},
{
"title": "CardPolicies[4].CardPec:NTK529BA has no certified mate card
pecs defined in CertifiedMatePecs section."
},
{
"title": "CardPolicies[5].CardPec:NTK529AC.
CertifiedMatePecs[1]:NTK539UX doesn't have CardPolicy defined."
},
{
"title": "CardPolicies[5].CardPec:NTK529AC.
CertifiedMatePecs[2]:FANTOM_CARD. Not valid or supported PEC."
},
{
"title": "CardPolicies[6].CardPec:NTK539UJ doesn't support client
pluggables. Leave CertifiedClientPluggables section empty."
},
{
"title": "CardPolicies[7].CardPec:NTK538BJ has no pluggables records
defined in CertifiedClientPluggables section."
},
{
"title": "CardPolicies[8].CardPec:NTK529BB. CertifiedClientPluggables
section contains duplicate pec records for rates:DSR_10GE."
},
{
"title": "CardPolicies[8].CardPec:NTK529BB.
CertifiedClientPluggables[0] record with rate:DSR_10GE has pec information
missing."
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 143
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"title": "CardPolicies[8].CardPec:NTK529BB.
CertifiedClientPluggables[5] record is not valid. Rate:OTM2 and/or pec:PEC_PLUG_XYZ
combination is not supported."
},
{
"title": "CardPolicy[9].CardPec:NTK539QK is not unique. CardPolicy
indexies with same cardPec:2,9."
}
]
}
Sample request
DELETE {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies/dbd49f70-318f-4b8d-
b05d-37497e713711
Sample response
204 - No content
Sample request
PUT {{MCP_SERVER}}/equipmenttopologyplanning/api/v1/PlanningPolicies/dbd49f70-318f-4b8d-b05d-
37497e713711
Note: This example modifies service provisioning policy section of the planning policy with id dbd49f70-
318f-4b8d-b05d-37497e713711. Policy is modified so that the following two (OTM4) client pluggables of
NTK529AC card are removed from the policy: NTTA01CE and NTTA03BE.
Note: Whole policy body details should be sent in the PUT (modified) request once modifications are
done to the original details of the policy.
{
"name": "Valid planning policy with only ServiceProvisioningPolicy",
"serviceProvisioningPolicy": {
"cardPolicies": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 144
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9115-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03GJ"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03HE"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01CE"
},
{
"rate": "DSR_100GE",
"pec": "160-9113-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03BE"
},
{
"rate": "OTM4",
"pec": "160-9114-900"
},
{
"rate": "OTM4",
"pec": "160-9115-900"
}
]
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 145
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"cardPec": "NTK529BX",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP81BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81KA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HB"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HC"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HD"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HE"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HF"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 146
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "DSR_10GE",
"pec": "NTTP84HG"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HH"
},
{
"rate": "DSR_10GE",
"pec": "NTTP83BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP80DA"
},
{
"rate": "OTM2",
"pec": "NTTP81KA"
},
{
"rate": "OTM2",
"pec": "NTTP84HA"
},
{
"rate": "OTM2",
"pec": "NTTP84HB"
},
{
"rate": "OTM2",
"pec": "NTTP84HC"
},
{
"rate": "OTM2",
"pec": "NTTP84HD"
},
{
"rate": "OTM2",
"pec": "NTTP84HE"
},
{
"rate": "OTM2",
"pec": "NTTP84HF"
},
{
"rate": "OTM2",
"pec": "NTTP84HG"
},
{
"rate": "OTM2",
"pec": "NTTP84HH"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 147
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM2",
"pec": "NTTP83BA"
},
{
"rate": "OTM2",
"pec": "NTTP84AA"
},
{
"rate": "OTM2",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP86AA"
},
{
"rate": "OTM2",
"pec": "NTTP86BA"
}
]
},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UX",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BB",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BE",
"certifiedMatePecs": [
"NTK529AC",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 148
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BH",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538DZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9400-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9401-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9402-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9403-900"
},
{
"rate": "OTM4",
"pec": "160-9400-900"
},
{
"rate": "OTM4",
"pec": "160-9401-900"
},
{
"rate": "OTM4",
"pec": "160-9402-900"
},
{
"rate": "OTM4",
"pec": "160-9403-900"
}
]
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 149
Blue Planet MCP API Reference Guide, Release 18.06 Planning
}
}
Sample response
{
"id": "dbd49f70-318f-4b8d-b05d-37497e713711",
"name": "Valid planning policy with only ServiceProvisioningPolicy",
"serviceProvisioningPolicy": {
"cardPolicies": [
{
"cardPec": "NTK529AC",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9114-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9115-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03GJ"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03HE"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01CE"
},
{
"rate": "DSR_100GE",
"pec": "160-9113-900"
},
{
"rate": "DSR_100GE",
"pec": "NTTA01AA"
},
{
"rate": "DSR_100GE",
"pec": "NTTA03BE"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 150
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM4",
"pec": "160-9114-900"
},
{
"rate": "OTM4",
"pec": "160-9115-900"
}
]
},
{
"cardPec": "NTK529BX",
"certifiedMatePecs": [
"NTK539UJ",
"NTK539UX",
"NTK539UN",
"NTK539BB",
"NTK539BE",
"NTK539BH",
"NTK539BN"
],
"certifiedClientPluggables": [
{
"rate": "DSR_10GE",
"pec": "NTTP81BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP80DA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP81KA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HB"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HC"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 151
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"rate": "DSR_10GE",
"pec": "NTTP84HD"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HE"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HF"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HG"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84HH"
},
{
"rate": "DSR_10GE",
"pec": "NTTP83BA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84AA"
},
{
"rate": "DSR_10GE",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP80DA"
},
{
"rate": "OTM2",
"pec": "NTTP81KA"
},
{
"rate": "OTM2",
"pec": "NTTP84HA"
},
{
"rate": "OTM2",
"pec": "NTTP84HB"
},
{
"rate": "OTM2",
"pec": "NTTP84HC"
},
{
"rate": "OTM2",
"pec": "NTTP84HD"
},
{
"rate": "OTM2",
"pec": "NTTP84HE"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 152
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM2",
"pec": "NTTP84HF"
},
{
"rate": "OTM2",
"pec": "NTTP84HG"
},
{
"rate": "OTM2",
"pec": "NTTP84HH"
},
{
"rate": "OTM2",
"pec": "NTTP83BA"
},
{
"rate": "OTM2",
"pec": "NTTP84AA"
},
{
"rate": "OTM2",
"pec": "NTTP84BA"
},
{
"rate": "OTM2",
"pec": "NTTP86AA"
},
{
"rate": "OTM2",
"pec": "NTTP86BA"
}
]
},
{
"cardPec": "NTK539UJ",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UX",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539UN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 153
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"cardPec": "NTK539BB",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BE",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BH",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK539BN",
"certifiedMatePecs": [
"NTK529AC",
"NTK529BX"
],
"certifiedClientPluggables": []
},
{
"cardPec": "NTK538DZ",
"certifiedMatePecs": [],
"certifiedClientPluggables": [
{
"rate": "DSR_100GE",
"pec": "160-9400-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9401-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9402-900"
},
{
"rate": "DSR_100GE",
"pec": "160-9403-900"
},
{
"rate": "OTM4",
"pec": "160-9400-900"
},
{
"rate": "OTM4",
"pec": "160-9401-900"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 154
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
{
"rate": "OTM4",
"pec": "160-9402-900"
},
{
"rate": "OTM4",
"pec": "160-9403-900"
}
]
}
]
},
"userActivityInfo": {
"createdByUserName": "",
"creationTime": "2017-07-12T13:49:28.3783341+00:00"
}
}
• Obtain the existing viability data from the viability microservice (see Retrieve viability data).
• If you are going to replace all of the MCP viability data, update the data obtained in Step 1 or append
new data to the data obtained in Step 1. Proceed to Create/update all viability data.
If you do not want to replace all of the MCP viability data; you only want to add a new verification path
to the MCP viability data or you want to update some of the existing MCP viability data, proceed to
Create/update new viability data.
GET {{MCP_SERVER}}/viability/api/v1/ViableRoutes/ViabilityData
or
GET {{MCP_SERVER}}/viability/api/v1/ViableRoutes/ViabilityData?freIds=1338565178451080725
Note: Multiple FRE identifiers (comma delimited) can be specified for retrieval.
{
"VerificationPaths": [
{
"vpName": "VP55",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 155
Blue Planet MCP API Reference Guide, Release 18.06 Planning
"amplifiedSpanCount": 2,
"fiberLatency": 98,
"mateVpName": "VP56",
"modulationClass": "MC_100GWL38QAM",
"aEndVpEndPoint": {
"dwdmInterface": "WL3EMDM8QAMCLS1",
"cmdType": "CCMD12",
"wssType": "UNKNOWN",
"diaAmpType": "none",
"splitterCouplerType": "none",
"coadmAmpType": "OME_MLA3",
"demuxAmpType": "none",
"diaWssType": "none",
"diaSplitterCouplerType": "none"
},
"zEndVpEndPoint": {
"dwdmInterface": "WL3EMDM8QAMCLS1",
"cmdType": "CCMD12",
"wssType": "UNKNOWN",
"diaAmpType": "none",
"splitterCouplerType": "none",
"coadmAmpType": "OME_MLA3",
"demuxAmpType": "none",
"diaWssType": "none",
"diaSplitterCouplerType": "none"
},
"opsEnabled": false,
"parentLongPathVpId": "VP55",
"pmd": 0.447213595499958,
"status": "Passed",
"validationResult": {
"calcMode": "Normal",
"rcvDispersionMargin": 244.347974866246,
"rcvDispersionMarginMax": 421.39660370451,
"optimumDispersionShift": 0,
"dispersionShiftFiberType": "NDSF",
"lowDispersionMargin": 0,
"highDispersionMargin": 0,
"simulatedOsnr": 24.0355934462621,
"adjustedReceiverOsnr": 23.4955934462621,
"rcvOsnrMargin": 7.86139698894605,
"rcvPowerMax": -8.97918548131621,
"rcvPowerMaxMargin": 11.4791854813162,
"rcvPowerMin": -9.07585443270938,
"rcvPowerMinMargin": 8.92414556729062,
"requiredReceiverPowerMax": 4,
"requiredReceiverPowerMin": -20,
"transmitterPowerReduction": 0,
"leVerificationCertification": "FTV_Certified",
"mpi": -39.0886750627875,
"prfber": 0.032,
"allocMarginPdl": 0.897156062232207,
"maxRxPower": 1,
"e2pn": -25.1878876047514,
"estimatedPadValue": 0,
"failureReasonSeverity": "Error",
"failureReasonType": ""
},
"vpOmsRoute": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 156
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"freid": "-9118497143917145132",
"aEndNcid": "5a9d6653-4d9d-436e-93e2-be38cb9596f1",
"aEndNodeName": "NE1",
"omsTlName": "Oms-WSS-TX-1326-WSS-RX-1628",
"length": 10,
"routeIndex": 1,
"zEndNcid": "e888e7de-657c-425b-a5d8-4ed12172761d",
"zEndNodeName": "NE2"
},
{
"freid": "206160161395439961",
"aEndNcid": "e888e7de-657c-425b-a5d8-4ed12172761d",
"aEndNodeName": "NE2",
"omsTlName": "Oms-WSS-TX-1477-WSS-RX-1426",
"length": 10,
"routeIndex": 2,
"zEndNcid": "71284161-d693-4cdc-af6b-39e25a637a01",
"zEndNodeName": "NE3"
}
],
"vpSourceNodeName": "NE1",
"vpDestinationNodeName": "NE3",
"vpSourceNcid": "5a9d6653-4d9d-436e-93e2-be38cb9596f1",
"vpDestinationNcid": "71284161-d693-4cdc-af6b-39e25a637a01",
"vpType": "FtvFlex",
"mcMixType": "Pure",
"channelSpacing": 50,
"startFrequency": 191.325,
"endFrequency": 196.125,
"txSnrBias": 0
},
{
"vpName": "VP59",
"amplifiedSpanCount": 1,
"fiberLatency": 49,
"mateVpName": "VP60",
"modulationClass": "MC_100GWL38QAM",
"aEndVpEndPoint": {
"dwdmInterface": "WL3EMDM8QAMCLS1",
"cmdType": "CCMD12",
"wssType": "UNKNOWN",
"diaAmpType": "none",
"splitterCouplerType": "none",
"coadmAmpType": "OME_MLA3",
"demuxAmpType": "none",
"diaWssType": "none",
"diaSplitterCouplerType": "none"
},
"zEndVpEndPoint": {
"dwdmInterface": "WL3EMDM8QAMCLS1",
"cmdType": "CCMD12",
"wssType": "UNKNOWN",
"diaAmpType": "none",
"splitterCouplerType": "none",
"coadmAmpType": "OME_MLA3",
"demuxAmpType": "none",
"diaWssType": "none",
"diaSplitterCouplerType": "none"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 157
Blue Planet MCP API Reference Guide, Release 18.06 Planning
},
"opsEnabled": false,
"parentLongPathVpId": "VP55",
"pmd": 0.316227766016838,
"status": "Passed",
"validationResult": {
"calcMode": "Normal",
"rcvDispersionMargin": 95.0372292082571,
"rcvDispersionMarginMax": 237.816033746884,
"optimumDispersionShift": -11,
"dispersionShiftFiberType": "NDSF",
"simulatedOsnr": 24.5803656909155,
"rcvPowerMax": -8.97918548131621,
"rcvPowerMaxMargin": 11.4791854813162,
"rcvPowerMin": -9.07585443270938,
"rcvPowerMinMargin": 8.92414556729062,
"requiredReceiverPowerMax": 4,
"requiredReceiverPowerMin": -20,
"transmitterPowerReduction": 0,
"leVerificationCertification": "FTV_Certified",
"mpi": -39.248261845928,
"allocMarginPdl": 0.812280739646091,
"maxRxPower": 1,
"estimatedPadValue": 0,
"failureReasonSeverity": "Error",
"failureReasonType": ""
},
"vpOmsRoute": [
{
"freid": "206160161395439961",
"aEndNcid": "e888e7de-657c-425b-a5d8-4ed12172761d",
"aEndNodeName": "NE2",
"omsTlName": "Oms-WSS-TX-1477-WSS-RX-1426",
"length": 10,
"routeIndex": 1,
"zEndNcid": "71284161-d693-4cdc-af6b-39e25a637a01",
"zEndNodeName": "NE3"
}
],
"vpSourceNodeName": "NE2",
"vpDestinationNodeName": "NE3",
"vpSourceNcid": "e888e7de-657c-425b-a5d8-4ed12172761d",
"vpDestinationNcid": "71284161-d693-4cdc-af6b-39e25a637a01",
"vpType": "FtvFlex",
"mcMixType": "Pure",
"channelSpacing": 50,
"startFrequency": 191.325,
"endFrequency": 196.125,
"txSnrBias": 0
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 158
Blue Planet MCP API Reference Guide, Release 18.06 Planning
Sample request
PUT {{MCP_SERVER}}/viability/api/v1/ViableRoutes/ViabilityData
Note: For the input format, see Sample response: verification path format.
Sample response A response code of 200 indicates that MCP was successfully updated.
Sample request
POST {{MCP_SERVER}}/viability/api/v1/ViableRoutes/ViabilityData
Note: For the input format, see Sample response: verification path format.
Sample response A response code of 200 indicates that MCP was successfully updated.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 159
Blue Planet MCP API Reference Guide, Release 18.06 Planning
{
"generationDate": "2018-07-04T17:21:52.785+00:00",
"version": "MCP(2.7.144)",
"source": {
"project": {
"id": "1d444858-a375-4f16-984f-603fbe707670",
"name": "WS1"
}
},
"results": [
{
"version": "MCP(2.7.144)",
"status": "Passed",
"severity": "Error",
"title": "Incomplete Fiber Routes",
"description": "Look for incomplete fiber routes",
"details": "All new fiber routes terminate at an OADM"
},
{
"version": "MCP(2.7.144)",
"status": "Passed",
"severity": "Error",
"title": "Unsupported Equipment",
"description": "Look for unsupported or unrecognized equipment",
"details": "All new equipment is supported"
},
{
"version": "MCP(2.7.144)",
"status": "Passed",
"severity": "Error",
"title": "Project Type",
"description": "Validate the project type",
"details": "Project type is valid."
},
{
"version": "MCP(2.7.144)",
"status": "Failed",
"severity": "Error",
"title": "WaveServer Node Properties",
"description": "Some new WaveServer nodes have missing properties",
"details": "The following WaveServer nodes have missing properties:\nNode
'WS1' is missing properties: 'Member Id' and 'Group Id'\nNode 'WS2' is missing
properties: 'Member Id' and 'Group Id'\n"
},
{
"version": "MCP(2.7.144)",
"status": "Passed",
"severity": "Error",
"title": "Potential merge conflict",
"description": "Look for potential merge conflicts",
"details": "No conflicting entities have been found in the original and
planned networks.\nThe current network is empty or could not be retrieved. Merge
conflict detection with the current network was not performed."
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 160
Blue Planet MCP API Reference Guide, Release 18.06 Planning
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 161
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
• Commissioning management
• Generate the commissioning scripts
• Generate commissioning scripts for a homogeneous project (6500)
• Generate commissioning scripts for a homogeneous project (Waveserver)
• Generate commissioning scripts for a heterogeneous project consisting of (6500 and Waveserver)
• Retrieve the commissioning scripts
• Retrieve commissioning scripts for a homogeneous project (6500)
• Retrieve commissioning scripts for a homogeneous project (Waveserver)
• Retrieve commissioning scripts for a heterogeneous project consisting of (6500 and Waveserver)
• Enroll a 6200 network element
• View 6200 inventory
• Service provisioning after commissioning
• Change a network element connection profile
• Commission and configure a node or port
• Changing the Waveserver Ai 1.1 DCN wayside
• Retreive health diagnostics from a node
• Retrieve control plane configuration data from a node
• Create the Facility By Pass Profile
• Create/Edit the Facility By Pass Profile using shareable SRLG
• Edit the Facility By Pass Profile
• Delete the Facility By Pass Profile
• Retrieve the Facility By Pass Profile
• Retrieve the FRR Profile(s)
• Set/Unset the Facility By Pass Profile to an IP interface
• Configuring a shareable SRLG list on a node
• Configure Traffic Engineering (TE) parameters for an IP interface
• Place a network element into or out of maintenance mode
Commissioning management
This section describes network element commissioning management.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 162
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
• For script generation of a homogeneous project only consisting of 6500 nodes: Public_IPV4_v1,
Public_IPV6_v1 (6500-specific policies):
Supports DCN Example 4 in the 6500 Packet-Optical Platform Data Communications Planning and User
Guide, 323-1851-101.
Tasks include:
Tasks include:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 163
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyTypes/
Sample response
{
"data": [
{
"master_template": "master_ws_v1.tmpl",
"supported_operation": "POST_SCRIPTS_v1",
"handler_class":
"commissioning.services.scripts.waveserver.v1.CWSHandlerV1.CWSHandlerV1",
"policy_type": "Waveserver_v1",
"defaults_file": "waveserver_v1.json"
},
{
"master_template": "None",
"supported_operation": "Radius_Defaults_v1",
"handler_class":
"commissioning.services.radius.RadiusHandler.RadiusHandler",
"policy_type": "Radius_Defaults_v1",
"defaults_file": "radius_defaults_v1.json"
},
{
"master_template": "None",
"supported_operation": "NTP_Defaults_v1",
"handler_class": "commissioning.services.ntp.NTPHandler.NTPHandler",
"policy_type": "NTP_Defaults_v1",
"defaults_file": "ntp_defaults_v1.json"
},
{
"master_template": "master_private_ipv4_v1.tmpl",
"supported_operation": "POST_SCRIPTS_v1",
"handler_class":
"commissioning.services.scripts.private_ipv4.v1.PrivateIPV4HandlerV1.PrivateIPV4Han
dlerV1",
"policy_type": "Private_IPV4_v1",
"defaults_file": "private_ipv4_v1.json"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 164
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"master_template": "None",
"supported_operation": "CRAFT_UI_LAUNCH_v1",
"handler_class": "None",
"policy_type": "Craft_UI_Launch_v1",
"defaults_file": "craft_ui_launch_v1.json"
},
{
"master_template": "master_public_ipv4_v1.tmpl",
"supported_operation": "POST_SCRIPTS_v1",
"handler_class":
"commissioning.services.scripts.public_ipv4.v1.PublicIPV4HandlerV1.PublicIPV4Handle
rV1",
"policy_type": "Public_IPV4_v1",
"defaults_file": "public_ipv4_v1.json"
},
{
"master_template": "master_heterogeneous_v1.tmpl",
"supported_operation": "POST_SCRIPTS_v1",
"handler_class":
"commissioning.services.scripts.heterogeneous.v1.HeterogeneousHandlerV1.Heterogeneo
usHandlerV1",
"policy_type": "Heterogeneous_v1",
"defaults_file": "heterogeneous_v1.json"
},
{
"master_template": "master_snmp_6500_v1.tmpl",
"supported_operation": "SNMP_6500_v1",
"handler_class": "commissioning.services.snmp.SNMPHandler.SNMPHandler",
"policy_type": "SNMP_6500_v1",
"defaults_file": "snmp_6500_v1.json"
},
{
"master_template": "master_public_ipv6_v1.tmpl",
"supported_operation": "POST_SCRIPTS_v1",
"handler_class":
"commissioning.services.scripts.public_ipv6.v1.PublicIPV6HandlerV1.PublicIPV6Handle
rV1",
"policy_type": "Public_IPV6_v1",
"defaults_file": "public_ipv6_v1.json"
},
{
"master_template": "master_eqpt_6500_v1.tmpl",
"supported_operation": "EQPT_6500_v1",
"handler_class":
"commissioning.services.eqpt.EquipmentCommissioning.EquipmentCommissioning",
"policy_type": "EQPT_6500_v1",
"defaults_file": "eqpt_6500_v1.json"
}
]
}
Create a policy for script generation of a homogeneous nodes project using the commissioning API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 165
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/policy/
{
"policyName": "Policy01",
"policyType": "Public_IPV4_v1",
"description": "DCN routable policy",
"customerName": "Telus",
"state": "New"
}
Sample response
{
"data": [
{
"attributes": {
"policy_name": "Policy01",
"state": "New",
"supported_operation": "POST_SCRIPTS_v1",
"description": "DCN routable policy",
"customer_name": "telus"
},
"type": "Public_IPV4_v1",
"id": "201ba295-3888-4b2d-9a4a-9d254de0c6a0"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 166
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"policyName": "Policy06",
"policyType": "Public_IPV6_v1",
"description": "DCN routable policy",
"customerName": "Telus",
"state": "New"
}
Sample response
{
"data": [
{
"attributes": {
"policy_name": "Policy06",
"state": "New",
"supported_operation": "POST_SCRIPTS_v1",
"description": "DCN routable policy",
"customer_name": "telus"
},
"type": "Public_IPV6_v1",
"id": "201ba295-3888-4b2d-9a4a-9d254de0c6a0"
}
]
}
Note: The value for "id" in this response is used in a subsequent request.
Create a policy for script generation of a heterogeneous nodes project using the commissioning API.
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 167
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/policy/
Sample input
{
"policyName": "Policy for 6500 and waveserver nodes projects",
"policyType": "Heterogeneous_v1",
"description": "Heterogeneous policy",
"customerName": "AT&T",
"state": "New"
}
Sample response
{
"data": [
{
"attributes": {
"policy_name": "Policy for 6500 and waveserver nodes projects",
"state": "New",
"supported_operation": "POST_SCRIPTS_v1",
"description": "Heterogeneous policy",
"customer_name": "AT&T"
},
"type": "Heterogeneous_v1",
"id": "6802171a-e686-4cc2-8677-ea7cc8977133"
}
]
}
Note: The value for "id" in this response is used in a subsequent request.
Retrieve all policies (user or system) or a single policy using the commissioning API.
Requirements
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 168
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
GET {{MCP_SERVER}}/commissioning/api/v1/policy/
GET {{MCP_SERVER}}/commissioning/api/v1/policy/?id=1b312740-d6b7-4aee-8037-744215515d52
{
"data": [
{
"attributes": {
"policy_name": "Default Policy for Craft UI Launch 1",
"state": "Active",
"supported_operation": "CRAFT_UI_LAUNCH_v1",
"description": "Default policy for Craft UI Launch",
"customer_name": "default"
},
"type": "Craft_UI_Launch_v1",
"id": "706d670e-9724-4a02-92bb-7a13957f7496"
},
{
"attributes": {
"policy_name": "Default Policy for Radius 1",
"state": "Active",
"supported_operation": "Radius_Defaults_v1",
"description": "Default policy for Radius commissioning",
"customer_name": "default"
},
"type": "Radius_Defaults_v1",
"id": "435fc50c-7ada-4f0a-ace2-5c39b7c322ad"
},
{
"attributes": {
"policy_name": "Default Policy for NTP 1",
"state": "Active",
"supported_operation": "NTP_Defaults_v1",
"description": "Default policy for NTP commissioning",
"customer_name": "default"
},
"type": "NTP_Defaults_v1",
"id": "2f42a246-0f78-4cef-a98f-ee4589247e07"
},
{
"attributes": {
"policy_name": "Default Policy for 6500 SNMP 1",
"state": "Active",
"supported_operation": "SNMP_6500_v1",
"description": "Default policy for 6500 SNMP commissioning",
"customer_name": "default"
},
"type": "SNMP_6500_v1",
"id": "794b6fc0-7de5-49b1-970e-af8181546c33"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 169
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"attributes": {
"policy_name": "Default Policy for 6500 Equipment 1",
"state": "Active",
"supported_operation": "EQPT_6500_v1",
"description": "Default policy for 6500 Equipment commissioning",
"customer_name": "default"
},
"type": "EQPT_6500_v1",
"id": "0d1f63b5-9966-41d3-8952-26a08d358179"
}
]
}
{
"data": [
{
"attributes": {
"policy_name": "Policy01",
"state": "New",
"supported_operation": "POST_SCRIPTS_v1",
"description": "DCN routable policy",
"customer_name": "telus"
},
"type": "Public_IPV4_v1",
"id": "1b312740-d6b7-4aee-8037-744215515d52"
}
]
}
Set an active policy for script generation using the commissioning API.
Requirements
• Use a value for "id" as indicated in a response from Create a policy for script generation of a
homogeneous nodes project, Create a policy for script generation of a heterogeneous nodes project or
Retrieve all policies.
• Use a value for "policy" as indicated in the sample input.
Sample request
PUT {{MCP_SERVER}}/commissioning/api/v1/policy/?id=1b312740-d6b7-4aee-8037-744215515d52
Sample input
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 170
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"state": "Active"
}
Sample response
A response code of 200 indicates a successful activation of a policy for script generation.
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"node": [
{
"shelf": [
{
"shelfattributes": {
"colan": {
"isColan": true,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
},
"radius": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 171
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"active": true,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
"gne": {
"isGne": true,
"gneConfiguration": "REDUNDANT",
"gneAccess": "OSPF"
}
},
"isTIDc": "ENABLE",
"primary": "Enable",
"shelfType": null
},
{
"shelfattributes": {
"colan": {
"isColan": false,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
},
"radius": {
"active": false,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
"gne": {
"isGne": false,
"gneConfiguration": null,
"gneAccess": null
}
},
"isTIDc": "ENABLE",
"primary": "Disable",
"shelfType": null
}
],
"nodeType": "OADM"
},
{
"shelf": [
{
"shelfattributes": {
"colan": {
"isColan": false,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
},
"radius": {
"active": true,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 172
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"gne": {
"isGne": false,
"gneConfiguration": "REDUNDANT",
"gneAccess": "OSPF"
}
},
"isTIDc": "ENABLE",
"primary": "Enable",
"shelfType": null
}
],
"nodeType": "ILA"
},
{
"shelf": [
{
"shelfattributes": {
"colan": {
"isColan": false,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
},
"radius": {
"active": true,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
"gne": {
"isGne": false,
"gneConfiguration": "REDUNDANT",
"gneAccess": "OSPF"
}
},
"isTIDc": "ENABLE",
"primary": "Enable",
"shelfType": null
}
],
"nodeType": "DGE"
}
],
"shelfIPDefaults": {
"shelfNetMaskV4": "255.255.255.255",
"isOSPFRequired": true
},
"ilanDefaults": {
"ilanIP": "0.0.0.0",
"ilanNetmask": "255.255.255.255",
"ilanPrts": [
{
"ilanOutPrt": "OUT",
"ilanInPrt": "IN",
"family": {
"familyType": "S-Series"
}
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 173
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"ilanOutPrt": "OUT1",
"ilanInPrt": "IN1",
"family": {
"familyType": "T-Series"
}
}
],
"ilanIPType": "UnNumbered"
},
"comms": {
"shelfRouting": "geoOSPF",
"telnetState": "ON",
"ipTypeDcn": "IPV4",
"idleTimeOut": 30,
"httpRest": "OFF",
"httpsState": "ON",
"colanOverrideSupported": true,
"familySpecific": [
{
"sshMaxSessions": 18,
"family": {
"familyType": "S-Series"
}
},
{
"sshMaxSessions": 28,
"family": {
"familyType": "T-Series"
}
}
],
"oscRouting": "OSPF",
"httpState": "OFF"
},
"photonicDefaults": {
"oscMode": "DISABLED",
"spanLossMargin": "3.0"
},
"general": {
"linepevstat": "AUTO",
"bitsMode": "SONET",
"autoProvCRS": "ON",
"autoEquipMode": "DISABLED",
"neMode": [
{
"value": "SONET",
"family": {
"familyType": "S-Series"
}
},
{
"value": "NONE",
"family": {
"familyType": "T-Series"
}
}
],
"shelfSync": "YES",
"airFilterReplacementAlarm": "ENABLE",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 174
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"LASEROFFFARENDFAIL": "DISABLED",
"pathsdth": 6,
"csfmcastmac": "0180C2880001",
"tcaSuppression": "NO",
"pathswcrit": {
"oduSignalDegrade": false,
"alarmIndicationSignal": true,
"lossOfPointer": false,
"traceIdentifierMismatch": false,
"pathSignalDegrade": false,
"pathUnequipped": false,
"pathExcessiveBitError": false,
"payloadLabelMismatch": false
},
"minCooling": "HIGHFLOW",
"ainsTimeOut": {
"hours": 0,
"minutes": 5
},
"bayFICinAO": "FALSE",
"gcc0mode": "DISABLED",
"lineFlappingThreshold": 3,
"ndpMode": "ON",
"enhEqptMgmt": "DISABLED",
"pthaisinsert": {
"lossOfMultiframe": false,
"alarmIndicationSignal": true,
"lossOfPointer": true,
"traceIdentifierMismatch": false,
"payloadLabelUnequipped": false,
"payloadLabelMismatch": false
},
"lineFlappingRaiseTime": 300,
"eth10gmapping": "GFPSTD",
"ethgfprfiupi": 5,
"extendedShelfNumber": "DISABLE",
"alarmHoldOff": "2.5",
"spareEquipmentPrimaryState": "OOS-MA",
"pathpevstat": "MAN",
"ainsEquipmentAlarmMode": null,
"csControl": "OFF",
"autoprovfac": "ON",
"docautodellos": "NO",
"patheberth": 4,
"isFICRequired": false,
"ainsEquipmentSuppressSlotAlarm": null,
"ethgfprfi": "ENABLED",
"fiberLossDetection": "ENABLED",
"alarmInfo": {
"name": true,
"label": false,
"fic": false,
"cardType": false,
"disable": false,
"clfi": true,
"subnetName": false,
"waveLength": false,
"physicalShelf": false,
"bayNumber": false
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 175
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
},
"airFilterReplacementTimer": "730",
"ainsEquipmentTimeOut": {
"hours": 0,
"minutes": 5
},
"autoRoute": "DISABLE",
"lineFlappingClearTime": 300,
"gcc1mode": "DISABLED",
"ainsEquipmentDefault": null,
"alarmCorrelation": "ON"
},
"radiusDefaults": {
"primaryAccProfileName": "",
"alternate": "LOCAL",
"isRadiusRequired": true,
"secondaryAccProfileName": "",
"proxyTimeout": 30,
"secondaryProfileName": "RADIUS Authentication
Secondary",
"defaultPort": 1812,
"queryMode": "ROUND_ROBIN",
"timeout": 15,
"genSecret": "N",
"fallback": "Local",
"primaryProfileName": "RADIUS Authentication Primary"
},
"osrpDefaults": {
"osrpData": [
{
"layer": "L0",
"udpPort": 51001
}
]
}
}
}
},
"type": "Public_IPV4_v1",
"id": "26ad791c-d750-4f44-a20d-2b8f7708a8f7"
}
]
}
Update a policy
Requirements
• Provide the "id" value obtained from Create a policy for script generation of a homogeneous nodes
project, Create a policy for script generation of a heterogeneous nodes project or from Retrieve all
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 176
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
Note: The Public_IPV4_v1 policy configures nodes according to DCN Example 4 in the 6500 Packet-
Optical Platform Data Communications Planning and User Guide, 323-1851-101.
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"node": [
{
"shelf": [
{
"shelfattributes": {
"colan": {
"isColan": true,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
},
"radius": {
"active": true,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
"gne": {
"isGne": true,
"gneConfiguration": "REDUNDANT",
"gneAccess": "OSPF"
}
},
"isTIDc": "ENABLE",
"primary": "Enable",
"shelfType": null
},
{
"shelfattributes": {
"colan": {
"isColan": false,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 177
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
},
"radius": {
"active": false,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
"gne": {
"isGne": false,
"gneConfiguration": null,
"gneAccess": null
}
},
"isTIDc": "ENABLE",
"primary": "Disable",
"shelfType": null
}
],
"nodeType": "OADM"
},
{
"shelf": [
{
"shelfattributes": {
"colan": {
"isColan": false,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
},
"radius": {
"active": true,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
"gne": {
"isGne": false,
"gneConfiguration": "REDUNDANT",
"gneAccess": "OSPF"
}
},
"isTIDc": "ENABLE",
"primary": "Enable",
"shelfType": null
}
],
"nodeType": "ILA"
},
{
"shelf": [
{
"shelfattributes": {
"colan": {
"isColan": false,
"ipType": "IPV4",
"colanRouting": "ospfCircuit"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 178
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"radius": {
"active": true,
"authState": "DISABLE",
"state": "ENABLE",
"proxyServer": "N",
"accounting": "DISABLE"
},
"gne": {
"isGne": false,
"gneConfiguration": "REDUNDANT",
"gneAccess": "OSPF"
}
},
"isTIDc": "ENABLE",
"primary": "Enable",
"shelfType": null
}
],
"nodeType": "DGE"
}
],
"shelfIPDefaults": {
"shelfNetMaskV4": "255.255.255.255",
"isOSPFRequired": true
},
"ilanDefaults": {
"ilanIP": "0.0.0.0",
"ilanNetmask": "255.255.255.255",
"ilanPrts": [
{
"ilanOutPrt": "OUT",
"ilanInPrt": "IN",
"family": {
"familyType": "S-Series"
}
},
{
"ilanOutPrt": "OUT1",
"ilanInPrt": "IN1",
"family": {
"familyType": "T-Series"
}
}
],
"ilanIPType": "UnNumbered"
},
"comms": {
"shelfRouting": "geoOSPF",
"telnetState": "ON",
"ipTypeDcn": "IPV4",
"idleTimeOut": 30,
"httpRest": "OFF",
"httpsState": "ON",
"colanOverrideSupported": true,
"familySpecific": [
{
"sshMaxSessions": 18,
"family": {
"familyType": "S-Series"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 179
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
}
},
{
"sshMaxSessions": 28,
"family": {
"familyType": "T-Series"
}
}
],
"oscRouting": "OSPF",
"httpState": "OFF"
},
"photonicDefaults": {
"oscMode": "DISABLED",
"spanLossMargin": "3.0"
},
"general": {
"linepevstat": "AUTO",
"bitsMode": "SONET",
"autoProvCRS": "ON",
"autoEquipMode": "DISABLED",
"neMode": [
{
"value": "SONET",
"family": {
"familyType": "S-Series"
}
},
{
"value": "NONE",
"family": {
"familyType": "T-Series"
}
}
],
"shelfSync": "YES",
"airFilterReplacementAlarm": "ENABLE",
"LASEROFFFARENDFAIL": "DISABLED",
"pathsdth": 6,
"csfmcastmac": "0180C2880001",
"tcaSuppression": "NO",
"pathswcrit": {
"oduSignalDegrade": false,
"alarmIndicationSignal": true,
"lossOfPointer": false,
"traceIdentifierMismatch": false,
"pathSignalDegrade": false,
"pathUnequipped": false,
"pathExcessiveBitError": false,
"payloadLabelMismatch": false
},
"minCooling": "HIGHFLOW",
"ainsTimeOut": {
"hours": 0,
"minutes": 5
},
"bayFICinAO": "FALSE",
"gcc0mode": "DISABLED",
"lineFlappingThreshold": 3,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 180
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"ndpMode": "ON",
"enhEqptMgmt": "DISABLED",
"pthaisinsert": {
"lossOfMultiframe": false,
"alarmIndicationSignal": true,
"lossOfPointer": true,
"traceIdentifierMismatch": false,
"payloadLabelUnequipped": false,
"payloadLabelMismatch": false
},
"lineFlappingRaiseTime": 300,
"eth10gmapping": "GFPSTD",
"ethgfprfiupi": 5,
"extendedShelfNumber": "DISABLE",
"alarmHoldOff": "2.5",
"spareEquipmentPrimaryState": "OOS-MA",
"pathpevstat": "MAN",
"ainsEquipmentAlarmMode": null,
"csControl": "OFF",
"autoprovfac": "ON",
"docautodellos": "NO",
"patheberth": 4,
"isFICRequired": false,
"ainsEquipmentSuppressSlotAlarm": null,
"ethgfprfi": "ENABLED",
"fiberLossDetection": "ENABLED",
"alarmInfo": {
"name": true,
"label": false,
"fic": false,
"cardType": false,
"disable": false,
"clfi": true,
"subnetName": false,
"waveLength": false,
"physicalShelf": false,
"bayNumber": false
},
"airFilterReplacementTimer": "730",
"ainsEquipmentTimeOut": {
"hours": 0,
"minutes": 5
},
"autoRoute": "DISABLE",
"lineFlappingClearTime": 300,
"gcc1mode": "DISABLED",
"ainsEquipmentDefault": null,
"alarmCorrelation": "ON"
},
"radiusDefaults": {
"primaryAccProfileName": "",
"alternate": "LOCAL",
"isRadiusRequired": true,
"secondaryAccProfileName": "",
"proxyTimeout": 30,
"secondaryProfileName": "RADIUS Authentication
Secondary",
"defaultPort": 1812,
"queryMode": "ROUND_ROBIN",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 181
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"timeout": 15,
"genSecret": "N",
"fallback": "Local",
"primaryProfileName": "RADIUS Authentication Primary"
},
"osrpDefaults": {
"osrpData": [
{
"layer": "L0",
"udpPort": 51001
}
]
}
}
}
},
"type": "Public_IPV4_v1",
"id": "26ad791c-d750-4f44-a20d-2b8f7708a8f7"
}
]
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"nodes": [
{
"nodeType": "6500",
"policyId": "9bbb05f6-c1c2-485e-9984-
b205f8a90b42"
},
{
"nodeType": "waveserver_ai",
"policyId": "a495b9d5-d654-41af-abf1-
f1d53d8d37b6"
}
]
}
}
},
"type": "Heterogeneous_v1",
"id": "6802171a-e686-4cc2-8677-ea7cc8977133"
}
]
}
Set an active policy for script generation to the default values using the commissioning API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 182
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Use a value for "id" as indicated in a response from Create a policy for script generation of a
homogeneous nodes project, Create a policy for script generation of a heterogeneous nodes project or
Retrieve all policies.
Sample request
DELETE {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
Sample response
A response code of 200 indicates a successful reset of the specified policy to default values.
Tasks include:
• Retrieve the SNMP policy identifier. Perform Retrieve all policies or a single policy.
The response identifies all of the policies available for commissioning. Within this response, locate the
policy name Default Policy for 6500 SNMP 1. Record the value of the 'id' parameter.
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 183
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample response
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"snmp": {
"userCommunity": {
"cstr": ""
},
"trap": {
"trapConfig": "ENABLE_ALL",
"udpPort": "162",
"version": "V3",
"destinations": {
"site_2": "5.6.7.8",
"site_1": "1.2.3.4"
}
},
"agent": {
"agentState": "ENABLED",
"tcaReporting": "OFF",
"version": "V3",
"proxy": "ON",
"alarmMasking": "OFF",
"trapInterface": "AUTO",
"trapMib": "NORTELCIENA"
},
"usmUser": {
"storageType": "NONVOLATILE",
"priv": "NOPRIV",
"usergroup": "OM5Kcustomer1Group"
}
}
}
}
},
"type": "SNMP_6500_v1",
"id": "09ae5fef-4bd9-44fc-a985-616f68dc0078"
}
]
}
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 184
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
• Provide the "id" value obtained from Retrieve all policies or a single policy.
• Provide values for the defaults parameter obtained from Retrieve SNMP policy data (that is, first GET
the policy data and then provide this data to set trap, agents and use community parameters here
under the defaults parameter).
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
Sample input
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"snmp": {
"userCommunity": {
"cstr": ""
},
"trap": {
"trapConfig": "ENABLE_ALL",
"udpPort": "162",
"version": "V3",
"destinations": {
"site_2": "5.6.7.8",
"site_1": "1.2.3.4"
}
},
"agent": {
"agentState": "ENABLED",
"tcaReporting": "OFF",
"version": "V3",
"proxy": "ON",
"alarmMasking": "OFF",
"trapInterface": "AUTO",
"trapMib": "NORTELCIENA"
},
"usmUser": {
"storageType": "NONVOLATILE",
"priv": "NOPRIV",
"usergroup": "OM5Kcustomer1Group"
}
}
}
}
},
"type": "SNMP_6500_v1",
"id": "09ae5fef-4bd9-44fc-a985-616f68dc0078"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 185
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Tasks include:
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
Sample response
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"nodes": [
{
"nodeType": "6500",
"policyId": ""
},
{
"nodeType": "waveserver_ai",
"policyId": ""
}
]
}
},
"type": "Heterogeneous_v1",
"id": "09ae5fef-4bd9-44fc-a985-616f68dc0078"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 186
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
• Provide the "id" value obtained from retrieve all policies or a single policy.
• Provide values for the node specific policy ids.
Sample request
PUT {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
Sample input
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"nodes": [
{
"nodeType": "6500",
"policyId": "{{PUBLIC_IPV4_V1_POLICY_ID_01}}"
},
{
"nodeType": "waveserver_ai",
"policyId": "{{WS_V1_POLICY_ID_01}}"
}
]
}
}
},
"type": "Heterogeneous_v1",
"id": "{{HETERO_V1_POLICY_ID_01}}"
}
]
}
}
},
"type": "Heterogeneous_v1"
"id": "09ae5fef-4bd9-44fc-a985-616f68dc0078"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 187
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Note: Currently a heterogeneous project can contain only 6500 and Waveserver nodes. Heterogeneous
policy defaults should contain policy id for device specific policies.
Tasks include:
The response identifies all of the policies available for commissioning. Within this response, locate the
policy name Default Policy for 6500 license 1. Record the value of the 'id' parameter.
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 188
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"license": {
"policy": "DEFAULT",
"protocol": "HTTPS",
"server": {
"port": {
"HTTPS": "7100",
"HTTP": "7200"
}
},
"products": [
{
"productType": "6500",
"isRequired": true,
"overrideLicenseServer": false
},
{
"productType": "waveserver",
"isRequired": true,
"overrideLicenseServer": false
}
]
}
}
},
"type": "License_6500_v1",
"id": "63a120f2-de41-495d-9ba3-46ce8b066d2b"
}
]
}
Requirements
• Provide the "id" value obtained from retrieve all policies or a single policy.
• Provide values for the defaults parameter obtained from Retrieve a license policy (that is, first GET the
policy data and then provide this data to set protocol, port parameters here under the defaults
parameter).
Sample request
PUT {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 189
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample input
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"license": {
"policy": "DEFAULT",
"protocol": "HTTPS",
"server": {
"port": {
"HTTPS": "7100",
"HTTP": "7200"
}
},
"products": [
{
"productType": "6500",
"isRequired": true,
"overrideLicenseServer": false
},
{
"productType": "waveserver",
"isRequired": true,
"overrideLicenseServer": false
}
]
}
}
},
"type": "License_6500_v1",
"id": "63a120f2-de41-495d-9ba3-46ce8b066d2b"
}
]
Tasks include:
The response identifies all policies available for commissioning. Within this response, locate the policy
name Default Policy for Waveserver_v1. Record the value of the 'id' parameter.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 190
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
Sample response
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"general": {
"hostNameIsMemberName": true
}
},
"type": "Waveserver_v1",
"id": "63a120f2-de41-495d-9ba3-46ce8b066d2b"
}
]
}
Requirements
• Provide the "id" value obtained from Retrieve all policies or a single policy.
• Provide values for the defaults parameter obtained from Retrieve a Waveserver policy.
Sample request
PUT {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 191
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample input
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"general": {
"hostNameIsMemberName": true
}
},
"type": "Waveserver_v1",
"id": "63a120f2-de41-495d-9ba3-46ce8b066d2b"
}
]
Tasks include:
• Retrieve the NTP policy identifier. Perform retrieve all policies or a single policy.
The response identifies all of the policies available for commissioning. Within this response, locate the
policy name Default Policy for NTP. Record the value of the 'id' parameter.
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 192
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"ntp": {
"authentication": {
"attributes": {
"encryptedKey": "abcd",
"keyId": 1,
"key": "ab",
"fileName": "a"
}
},
"products": [
{
"isRequired": true,
"authentication": {
"md5Auth": false
},
"serverReferences": [
{
"attributeKey": "S1",
"attributeName": "seraddress1"
},
{
"attributeKey": "S2",
"attributeName": "seraddress2"
},
{
"attributeKey": "S3",
"attributeName": "seraddress3"
},
{
"attributeKey": "S4",
"attributeName": "seraddress4"
},
{
"attributeKey": "S5",
"attributeName": "seraddress5"
}
],
"productType": "6500",
"client": {
"attributes": {
"pollingInterval": "60",
"sync": "ACTIVE"
}
}
},
{
"isRequired": true,
"authentication": {
"md5Auth": true
},
"serverReferences": [
{
"attributeKey": "S1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 193
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"attributeName": "1"
}
],
"productType": "waveserver",
"client": {
"attributes": {
"pollingInterval": "16",
"mode": "polling"
}
}
}
],
"servers": [
{
"key": "S1",
"address": {
"ip": "0.0.0.0"
}
},
{
"key": "S2",
"address": {
"ip": "0.0.0.0"
}
},
{
"key": "S3",
"address": {
"ip": "0.0.0.0"
}
},
{
"key": "S4",
"address": {
"ip": "0.0.0.0"
}
},
{
"key": "S5",
"address": {
"ip": "0.0.0.0"
}
}
]
}
}
}
},
"type": "NTP_Defaults_v1",
"id": "2f42a246-0f78-4cef-a98f-ee4589247e07"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 194
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
• Provide the "id" value obtained from Retrieve all policies or a single policy.
• Provide values for the defaults parameter obtained from Retrieve NTP policy data (that is, first GET the
policy data and then provide this data to set polling interval and server references here under the
defaults parameter).
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
Sample input
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"ntp": {
"servers": [
{
"key": "S1",
"address": {
"ip": "0.0.0.0"
}
}
],
"authentication": {
"attributes": {
"keyId": 1,
"key": "ab",
"encryptedKey": "abcd",
"fileName": "a"
}
},
"products": [
{
"productType": "6500",
"serverReferences": [
{
"attributeName": "SERVER1",
"attributeKey": "S1"
}
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 195
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"isRequired": true,
"client": {
"attributes": {
"pollingInterval": "60",
"sync": "ACTIVE"
}
},
"authentication": {
"md5Auth": false
}
},
{
"productType": "waveserver",
"serverReferences": [
{
"attributeName": "1",
"attributeKey": "S1"
}
],
"isRequired": true,
"client": {
"attributes": {
"pollingInterval": "16",
"mode": "polling"
}
},
"authentication": {
"md5Auth": true
}
}
]
}
}
}
},
"type": "NTP_Defaults_v1",
"id": "07629276-1126-4a21-ab33-990eef8b17d1"
}
]
}
Tasks include:
• Retrieve the RADIUS policy identifier. Perform Retrieve all policies or a single policy.
The response identifies all of the policies available for commissioning. Within this response, locate the
policy name Default Policy for Radius 1. Record the value of the 'id' parameter.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 196
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 197
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"radius": {
"products": [
{
"isRequired": true,
"radiusServerReferences": [
{
"attributeName": "PRIMARY",
"serverKey": "S1"
},
{
"attributeName": "SECONDARY",
"serverKey": "S2"
}
],
"productType": "6500"
}
],
"servers": [
{
"address": {
"ip": "0.0.0.0",
"port": "1812"
},
"description": "RADIUS server access info in
a centralized store",
"key": "S1",
"name": "RADIUS profile 1"
},
{
"address": {
"ip": "0.0.0.0",
"port": "1812"
},
"description": "RADIUS server access info in
a centralized store",
"key": "S2",
"name": "RADIUS profile 2"
}
]
}
}
}
},
"type": "Radius_Defaults_v1",
"id": "435fc50c-7ada-4f0a-ace2-5c39b7c322ad"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 198
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
• Provide the "id" value obtained from Retrieve all policies or a single policy.
• Provide values for the defaults parameter obtained from Retrieve RADIUS policy data (that is, first GET
the policy data and then provide this data to set RADIUS server IPs and assign these RADIUS server
IPs to each product (for example, 6500 or Waveserver) here under the defaults parameter).
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/?id=1b312740-d6b7-4aee-8037-
744215515d52
Sample input
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 199
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"radius": {
"products": [
{
"isRequired": true,
"radiusServerReferences": [
{
"attributeName": "PRIMARY",
"serverKey": "S1"
},
{
"attributeName": "SECONDARY",
"serverKey": "S2"
}
],
"productType": "6500"
}
],
"servers": [
{
"address": {
"ip": "0.0.0.0",
"port": "1812"
},
"description": "RADIUS server access info in
a centralized store",
"key": "S1",
"name": "RADIUS profile 1"
},
{
"address": {
"ip": "0.0.0.0",
"port": "1812"
},
"description": "RADIUS server access info in
a centralized store",
"key": "S2",
"name": "RADIUS profile 2"
}
]
}
}
}
},
"type": "Radius_Defaults_v1",
"id": "d15cdf4c-c07b-4514-ad36-9936d8ad16db"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 200
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
IP subnetwork management
Manage an IPv4 or IPv6 subnetwork.
Tasks include:
• Allocate an IP subnetwork
• Retrieve an IP subnetwork
• Delete an IP subnetwork
• Load Reserved Shelf IP Data
• Retrieve Reserved Shelf IP Data
• Delete Reserved Shelf IP Data
Allocate an IP subnetwork
Allocate a IPv4 or IPv6 subnetwork and OspfArea for the shelf of 6500 network elements using the
commissioning API.
Requirements
{
"data": {
"attributes": {
"IP": "string",
"ospfArea": "string",
"ospfAreav3": "string",
"IP6": "string"
},
"type": "string"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 201
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
• [IP] - (string) - a range of IPv4 addresses used to allocate the shelf IPv4 address in commissioning (for
example, 147.23.24.24)
• [IP6] - (string) - a range of IPv6 addresses used to allocate the shelf IPv6 address in commissioning
(for example, 2081::4)
• [CIDR] - (string) - number of IP addresses under the IPSubnet (for example, 22)
• [OspfArea] - (string) – OspfAreaV2 of the IPSubnet (for example, 0.0.0.3)
• [OspfAreaV3] – (string) – OspfAreaV3 of the IPSubnet
• [type] - (string) - an optional parameter. If this parameter is not provided, shelf is the default. Other
possible values for usage include Craft which will be used for craft.
Sample request
POST {{MCP_SERVER}}/commissioning/api/v2/ipsubnet/
Sample response
A response code of 201 indicates successful creation of the IPv4 or IPv6 subnetwork.
Retrieve an IP subnetwork
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v2/ipsubnet/
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 202
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": [
{
"attribute": {
"IP": [
"10.183.0.0/22"
"1,2"
],
"ospfArea": "2.0.0.0"
},
"type": "shelf",
"id": "9591f3b2-251f-4e45-9e90-34451f3e7c0"
},
{
"attribute": {
"IP": [
"2081::4/22"
"1,2"
],
"ospfArea": "0.0.0.3"
},
"type": "shelf",
"id": "838a1be9-15b6-42c6-880f-f4bf3a29d304"
}
}
}
Delete an IP subnetwork
You can only delete those subnets which do not contain any shelf IP addresses.
Requirements
{
"subnetId": "[SUBNETID]",
"ospfArea": "[OSPFAREA]"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 203
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
• [SUBNETID] - (string) - a unique identifier retrieved from Retrieve an IP subnetwork. For example,
"ccff736d-4e7f-4752-8531-f1b180219f61".
• [OSPFAREA] - (string) - the IP address of the OspfArea to be deleted (for example, 0.0.0.2)
Sample request
DELETE {{MCP_SERVER}}/commissioning/api/v2/ipsubnet/
Sample response
There are shelves on the network which are already deployed and assigned IPv4 or IPv6 addresses. Use
this API to reserve shelf IPv4 or IPv6 data in commissioning.
• User can reserve shelf IPv4 or IPv6 Network data using REST for 6500 devices in commissioning. To
load the shelves IP data, post a REST request using the underneath URL with the following body:
Sample request
POST{{MCP_SERVER}}/commissioning/api/v2/reservedIP/
Requirements
• Provide shelfNumber.
• Provide projectId if associated with shelf.
• Provide the ospfAreaV3.
• Provide the ospfArea.
• Provide the IP6 value as IPV6.
• Provide the IP value as IPV4.
• Provide tid associated with the NE.
• Provide type value, default is shelf.
• Provide projectName if associated with shelf.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 204
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
[
{
"shelfNumber": "string",
"projectId": "string",
"ospfAreaV3": "string",
"ospfArea": "string",
"IP6": "string",
"IP": "string",
"tid": "string",
"type": "string",
"projectName": "string"
}
]
The following parameters need to be substituted into the sample body above:
Sample response
Prerequisite:
Sample request
GET {{MCP_SERVER}}/commissioning/api/v2/reservedIP/?tid=<tid>
Provide the value of the tid parameter in the text box. Tid (Target Identifier) of the deployed shelf with IP
Address.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 205
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample response
{
"ospfArea": "0.0.0.3",
"projectName": "",
"projectid": "",
"shelfIP": "2018::1",
"shelfNumber": "1",
"tid": "sidtid1",
"usage": "shelf"
}
{
"ospfArea": "2.0.0.0",
"projectName": "",
"projectid": "",
"shelfIP": "10.183.0.1",
"shelfNumber": "1",
"tid": "sidtid1",
"usage": "shelf"
}
Prerequisite:
Sample Request
DELETE {{MCP_SERVER}}/commissioning/api/v2/reservedIP/
Request
{
"tid": "[TargetIdentifier]",
"shelfNumber": "[ShelfNumber]"
}
The following parameters need to be substituted into the sample body above:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 206
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample response
On successful deletion of reserved shelf, the REST HTTP response 200 will be returned.
Requirements
6500 Site Manager software is installed on a known server. For more information about installing 6500
Site Manager, see Blue Planet Installation Guide, 450-3709-201.
Tasks include:
Requirements
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 207
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"craftLaunch": {
"nodes": [
{
"attributes": {
"server": "Site_Manager_GUI_Server_host_name",
"craftFolder": "sitemanager",
"port": "8443",
"preferredProtocol": "https",
"craftLaunchLabel": "Site manager"
},
"nodeType": "6500"
},
{
"attributes": {
"port": "",
"preferredProtocol": "https",
"craftLaunchLabel": "6200 Node manager"
},
"nodeType": "6200"
}
]
}
}
}
},
"type": "Craft_UI_Launch_v1",
"id": "706d670e-9724-4a02-92bb-7a13957f7496"
}
]
}
Update the craft policy to identify the location of the 6500 Site Manager software
Update the craft launch policy to identify the location of the 6500 Site Manager software using the
commissioning API.
Requirements
• Provide the "id" value obtained from Retrieve the craft policy.
• Using the response from Retrieve the craft policy, replace the value of the 'server' attribute
(nodeType="6500" and craftLaunchLabel="Site manager") with the hostname or IP address of the
server that is hosting the 6500 Site Manager software. In the sample input below,
'Site_Manager_GUI_Server_host_name' has been replaced with hostname 'halifax02'.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 208
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request
PUT {{MCP_SERVER}}/commissioning/api/v1/policyDefaults/
Sample input
{
"data": [
{
"attributes": {
"additionalAttributes": {
"data": {
"craftLaunch": {
"nodes": [
{
"attributes": {
"server": "halifax02",
"craftFolder": "sitemanager",
"port": "8443",
"preferredProtocol": "https",
"craftLaunchLabel": "Site manager"
},
"nodeType": "6500"
},
{
"attributes": {
"port": "",
"preferredProtocol": "https",
"craftLaunchLabel": "6200 Node manager"
},
"nodeType": "6200"
}
]
}
}
}
},
"type": "Craft_UI_Launch_v1",
"id": "706d670e-9724-4a02-92bb-7a13957f7496"
}
]
}
Sample response
A response code of 201 indicates that the craft launch policy was successfully updated.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 209
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/scripts/
Provide the value of the projectname parameter in the text box and an Optional Parameter PolicyId of
commissioning policy. The projectname value specifies the project name of the planned network in RPT.
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 210
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"devicetypesURLs": [
{
"deviceType": "6500",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=GfDeg1&devicetype=
6500"
}
}
],
"projectId": "",
"nodes": [
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "sidtid1",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=GfDeg1&devicetype=
6500&nodename=sidtid1"
}
},
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "sidtid2",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=GfDeg1&devicetype=
6500&nodename=sidtid2"
}
}
],
"relatedProjects": [],
"projectName": "GfDeg1"
}
}
Note 1: Above Post Response contains the link to the scripts instead of scripts in earlier version of
commissioning. Copy the contents of the response and save it to a text file with the extension .json.
Note 2: To apply a commissioning script to an NE, follow the procedure for "Commissioning via a script"
in the 6500 Packet Optical Platform Commissioning and Testing, 323-1851-221, Issue 3 or later customer
documentation.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 211
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/scripts/
• Provide the value of the projectname parameter in the text box. The value specifies the project name
of the planned network in RPT.
• Provide the value of the policyid to in the text box. The specified policy would be used to generate
commissioning scripts.
• A policy for one of the following policy types can be used to generate scripts for 6500 nodes:
◦ Private_IPV4_v1
◦ Public_IPV4_v1
◦ Public_IPV6_v1
• To create the policy, see Create a policy for script generation of a homogeneous nodes project.
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 212
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"devicetypesURLs": [
{
"deviceType": "6500",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=AddFbRFDILANTB1&de
vicetype=6500"
}
}
],
"projectId": "",
"nodes": [
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "OTTAWA----9876543210",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=AddFbRFDILANTB1&de
vicetype=6500&nodename=OTTAWA----9876543210"
}
},
{
"nodeType": "ILA",
"deviceType": "6500",
"nodeName": "MALTON----1472583690",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=AddFbRFDILANTB1&de
vicetype=6500&nodename=MALTON----1472583690"
}
},
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "DALLAS----0123456789",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=AddFbRFDILANTB1&de
vicetype=6500&nodename=DALLAS----0123456789"
}
}
],
"relatedProjects": [],
"projectName": "AddFbRFDILANTB1"
}
}
Use the links provided in the response to retrieve the scripts for each node.
Note: To apply a commissioning script to a network element, see "Commissioning via a script" in 6500
Packet Optical Platform Commissioning and Testing, 323-1851-221, Issue 3, or later.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 213
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/scripts/
• Provide the value of the projectname parameter in the text box. The value specifies the project name
of the planned network in RPT.
• Provide the value of the policyid to in the text box. The specified policy would be used to generate
commissioning scripts.
• A policy for the following policy type can be used to generate scripts for Waveserver nodes:
Waveserver_v1.
• To create the policy, see Create a policy for script generation of a homogeneous nodes project.
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 214
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"devicetypesURLs": [
{
"deviceType": "WaveserverAi",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=WaveserverAi"
}
}
],
"projectId": "",
"nodes": [
{
"nodeType": "",
"deviceType": "WaveserverAi",
"nodeName": "WS2",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=WaveserverAi&nodename=WS2"
}
},
{
"nodeType": "",
"deviceType": "WaveserverAi",
"nodeName": "WS3",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=WaveserverAi&nodename=WS3"
}
}
],
"relatedProjects": [],
"projectName": "WS6500Project"
}
}
Use the links provided in the response to retrieve the scripts for each node.
Note: To apply a commissioning script to a network element, see "Commissioning via a script" in 6500
Packet Optical Platform Commissioning and Testing, 323-1851-221, Issue 3, or later.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 215
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/scripts/
• Provide the value of the projectname parameter in the text box. The value specifies the project name
of the planned network in RPT.
• Provide the value of the policyid to in the text box. The specified policy would be used to generate
commissioning scripts.
• A policy for the following policy type can be used to generate scripts for a heterogeneous nodes
project: Heterogeneous_v1.
Sample response
{
"data": {
"devicetypesURLs": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 216
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"deviceType": "WaveserverAi",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=WaveserverAi"
}
},
{
"deviceType": "6500",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=6500"
}
}
],
"projectId": "",
"nodes": [
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "sidtid1",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=6500&nodename=sidtid1"
}
},
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "sidtid2",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=6500&nodename=sidtid2"
}
},
{
"nodeType": "",
"deviceType": "WaveserverAi",
"nodeName": "WS2",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=WaveserverAi&nodename=WS2"
}
},
{
"nodeType": "",
"deviceType": "WaveserverAi",
"nodeName": "WS3",
"script": {
"link":
"http://localhost:8080/commissioning/api/v1/scripts/?projectname=WS6500Project&devi
cetype=WaveserverAi&nodename=WS3"
}
}
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 217
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"relatedProjects": [],
"projectName": "WS6500Project"
}
}
Use the links provided in the response to retrieve the scripts for each node.
Note: To apply a commissioning script to a network element, see "Commissioning via a script" in 6500
Packet Optical Platform Commissioning and Testing, 323-1851-221, Issue 3, or later.
Before you retrieve the commissioning scripts, make sure that you Generate the commissioning scripts.
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/scripts/
Provide the value of the projectname parameter which specifies the project name of the planned network
in RPT in the text box and optional parameters devicetype which specifies the device type planned
network (6500, Waveserver) and nodename in a planned network.
{
"data": {
"projectId": "",
"nodes": [
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "sidtid1",
"shelves": [
{
"shelfId": "1",
"primary": "Enable",
"scripts": [
{
"release": "12.1",
"sequenceId": "1",
"commands": [
{
"commandType": "comment",
"command": "\\\"This TL1 Script was created with Commissioning
MicroService for: { \"DeviceType\":\"6500\", \"NodeType\":\"OADM\",
\"TID\":\"sidtid1\", \"Shelf\": \"1\", \"FIC\": \"fic_NE1_Shelf1\", \"Primary\":
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 218
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 219
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"commandType": "tl1",
"command": "ED-HTTP:sidtid1:SHELF-
1:1:::HTTP=OFF,HTTPS=ON,REST=OFF,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:sidtid1:FIM-1-
51:1::NTK504CD:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:sidtid1:SP-1-
42:1::NTK555EA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-FFP-EQPT:sidtid1:SP-1-41,SP-1-
42:1:::PS=1PLUS1,,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:sidtid1:WSSOPM-1-
4:1::NTK553MA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:sidtid1:XLA-1-
3:1::NTK552KA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:sidtid1:AMP-1-3-8:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:sidtid1:AMP-1-3-
8:1:::,GAINMODE=High,,,,,TARGGAINTILT=0.0,,,,,,,,TOPOFFSET=0.0,,,REFBW=12.5:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:sidtid1:AMP-1-3-8:1:;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:sidtid1:AMP-1-3-6:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:sidtid1:AMP-1-3-
6:1:::,GAINMODE=High,,,,,TARGGAINTILT=0.0,,,,,,,,TOPOFFSET=0.0,,,REFBW=12.5:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:sidtid1:AMP-1-3-6:1:;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:sidtid1:ESAM-1-
2:1::NTK552JT:,,,,,,,,,,,,,,,,,:IS,;"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 220
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
},
{
"commandType": "tl1",
"command": "ED-ADJ:sidtid1:ADJ-1-2-5:1:::PROVFEADDR=sidtid2-1-
2-8,,ADJTYPE=LINE,,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ-LINE:sidtid1:ADJ-1-2-
5:1:::FIBERTYPE=NDSF,TARGSPANLOSS=3.5,,SPANLOSSMARGIN=0.0,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:sidtid1:P155M-1-2-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:sidtid1:CCMD12-1-
1:1::NTK508FA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:sidtid1:AMP-1-1-25:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:sidtid1:AMP-1-1-
25:1:::AMPMODE=Gain,,,TARGGAIN=20,,,,,,,,,,,,,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:sidtid1:AMP-1-1-25:1:;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-ROUTER:sidtid1:SHELF-
1:1:::ROUTERID=20.0.0.1,,ASBR=OFF,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:sidtid1:SHELF-
1:1:::NETAREA=2.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:sidtid1:OSC-1-2-
2:1:::NETAREA=2.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:sidtid1:COLAN-1-X:1:::,,;"
},
{
"commandType": "tl1",
"command": "ENT-IP:sidtid1:COLAN-1-
X:1::10.186.243.65:NETMASK=255.255.255.224,,,,,;"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 221
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:sidtid1:COLAN-1-
X:1:::NETAREA=2.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-GNE:sidtid1:Shelf-1:1::REDUNDANT,OSPF:,,,;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:sidtid1:SHELF-
1:1::PRIMARY,,:STATE=ENABLE,RADIUS=1.2.3.4,PORT=1812,TO=15,GENSECRET=N,;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:sidtid1:SHELF-
1:1::SECONDARY,,:STATE=ENABLE,RADIUS=5.6.7.8,PORT=1812,TO=15,GENSECRET=N,;"
},
{
"commandType": "tl1",
"command": "SET-REMAUTH-ALTERNATE:sidtid1:SHELF-1:1::LOCAL;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-CSA:sidtid1:SHELF-
1:1:::,QUERYMODE=ROUND_ROBIN,;"
},
{
"commandType": "tl1",
"command": "ENT-OTS:sidtid1:OTS-1-
1:1:::OSID=D1,TXPATH=1,DOCIND=Y,,CFGTYPE=CHA,SUBTYPE=ROADM,,,,,,,,,OSC=OSC-1-2-
2,,,,,,,,,,,,PROVCTRLMODE=12.5,REFBW=12.5GHZ;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:sidtid1:SLOTSEQ-1-1-1:1:::ADDSEQ=1-
4&1-3&1-2,DROPSEQ=1-2&1-3&1-4,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSRP:sidtid1:OSRP0-1-
1:1:::NODENAME=\"sidtid1\",NODEID=0001,TL1IPADDR=10.186.243.65,TYPE=PROV,UDPPORT=51
001;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:sidtid1:TIDSLOTSEQ-1-51-
1:1:::ADDSEQ=1-4,DROPSEQ=1-4,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:sidtid1:TIDSLOTSEQ-1-51-
2:1:::ADDSEQ=1-4,DROPSEQ=1-4,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:sidtid1:TIDSLOTSEQ-1-51-
10:1:::ADDSEQ=1-1,DROPSEQ=1-1,;"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 222
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"commandType": "macro",
"command": "\\\"PROMPT= Successfully completed script. Please
execute the Shelf All script.\"\\;"
}
],
"deviceType": "6500",
"scriptId": "6500_sidtid1-SHELF-1_1.bch"
}
]
}
]
}
],
"relatedProjects": [],
"projectName": "GfDeg1"
}
}
Copy the contents of the response and save it to a text file with the extension
.json.
\"This CLI Script was created with Commissioning MicroService for: {"DeviceType":"WaveserverAi",
"NodeType":"", "NodeName":"WS1", "Shelf": "1", "Primary": "Enable", "Release":"1.0", "Timestamp":"2018-02-
21_11-27-27-922000", "FileName":"WS_WS1_1.bch"} "\;
software show
system set member-id 5 site-id 120 host-name WS1 group-id 10 member-name WS1
configuration save
configuration save
configuration save
Copy the contents of the response and save it to a text file with the extension .txt.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 223
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Note: To apply a commissioning script to an 6500 NE, follow the procedure for "Commissioning via a
script" in the 6500 Packet Optical Platform Commissioning and Testing, 323-1851-221, Issue 3 or later
customer documentation. If Network Element name changes after generating the scripts, Scripts will be
deleted as part of name change events. User will have to re-generate the scripts.
Note: To apply a commissioning script to an NE, follow the procedure for "Commissioning via a script" in
the 6500 Packet Optical Platform Commissioning and Testing, 323-1851-221, Issue 3 or later customer
documentation.
Requirements
Before you retrieve the commissioning scripts, ensure that you Generate commissioning scripts for a
homogeneous project only consisting of 6500 nodes.
Note: You can also retrieve scripts using links provided for each node in the response from Generate
commissioning scripts for a homogeneous project only consisting of 6500 nodes.
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/scripts/
Provide the value of the projectname parameter in the text box. Its value specifies the project name of the
planned network in RPT.
Sample response
{
"data": {
"projectId": "",
"nodes": [
{
"nodeType": "OADM",
"deviceType": "6500",
"nodeName": "OTTAWA----9876543210",
"shelves": [
{
"shelfId": "11",
"primary": "Enable",
"scripts": [
{
"release": "11.5",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 224
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"sequenceId": "1",
"commands": [
{
"commandType": "comment",
"command": "\\\"This TL1 Script was created with Commissioning
MicroService for: { \"DeviceType\":\"6500\", \"NodeType\":\"OADM\",
\"TID\":\"OTTAWA----9876543210\", \"Shelf\": \"11\", \"FIC\": \"OMED_2180\",
\"Primary\": \"Enable\", \"Release\":\"11.5\", \"Timestamp\":\"2017-11-29_12-30-13-
043000\", \"FileName\":\"6500_OTTAWA----9876543210-SHELF-11_1.bch\",
\"relatedProjects\":\"\"} \"\\;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Please confirm configuring node:
OTTAWA----9876543210, Bay: 1, Shelf: 1, FIC: OMED_2180 and Release: 11.5\"\\;"
},
{
"commandType": "tl1",
"command": "SET-SID:GenTID1:SHELF-0:1::\"\"OTTAWA----
9876543210\"\";"
},
{
"commandType": "tl1",
"command": "ENT-SHELF:OTTAWA----9876543210:SHELF-
11:1:::SITEID=1968,SITENAME=\"OTWAON080MD2\",,FIC=\"OMED_2180\",BAYNUM=1,PHYSSHELF=
1,LOCATION=\"-94.8559042, 36.8203525\",SUBNETNAME=\"DCN-1234-DLLS-
OTWA\",,,PRIMARY=Enable,TIDC=Enable,EXTENDEDSHELF=ENABLE,,;"
},
{
"commandType": "tl1",
"command": "SET-CLLI:OTTAWA----9876543210::1::\"OTWAON080MD\";"
},
{
"commandType": "macro",
"command": "\\\"Set Current Date and Time\"\\;"
},
{
"commandType": "tl1",
"command": "SET-NODE-TYPE:OTTAWA----9876543210::1::OADM;"
},
{
"commandType": "tl1",
"command": "ED-SYS:OTTAWA----9876543210:SHELF-
11:1:::NEMODE=SONET,,,,,,,,PROVCURRENT=3x60,,,,,GCC0MODE=DISABLED,GCC1MODE=DISABLED
,,,ALMHO=0,,OSCMODE=Disabled,ALMCORR=ON,BAYFICINAO=True,,,,,,,,,AINSTIMEOUT=24-
00,,,,,,,,,,,,,AUTOROUTEDEF=DISABLE,,ENHEQPTMGMT=ENABLED,ALARMINFO=CRDTYP&WVLNGTH&F
IC&SBNTNM&PHYSSHLF&BYNMBR&CLFI,,,DOCAUTODELLOS=YES,TCASUPPRESSION=Yes,,AUTOPROVFAC=
ON,AUTOPROVCRS=ON,ETH10GMAPPING=GFPMACOSTR,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IP:OTTAWA----9876543210:SHELF-
11:1::20.0.0.1:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-AUTOEQUIP:OTTAWA----9876543210:SLOT-11-
ALL:1:::MODE=DISABLED;"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 225
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"commandType": "tl1",
"command": "ED-TELNET:OTTAWA----9876543210:SHELF-
11:1:::MAXSESSIONS=3,IDLETIMEOUT=30,SERVER=ENABLED;"
},
{
"commandType": "macro",
"command": "\\\"Delay Time (seconds)= 5\"\\;"
},
{
"commandType": "tl1",
"command": "ED-SSH:OTTAWA----9876543210:SHELF-
11:1:::MAXSESSIONS=18,,SERVER=ENABLED,,;"
},
{
"commandType": "tl1",
"command": "ED-HTTP:OTTAWA----9876543210:SHELF-
11:1:::HTTP=OFF,,REST=OFF,;"
},
{
"commandType": "tl1",
"command": "ED-SLDD:OTTAWA----9876543210:SHELF-
11:1:::ADMINSTATE=ON,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:FIM-11-
51:1::NTK504CC:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:SP-11-
42:1::NTK555FA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:OTTAWA----9876543210:SP-11-42:1;"
},
{
"commandType": "tl1",
"command": "ENT-FFP-EQPT:OTTAWA----9876543210:SP-11-41,SP-11-
42:1:::PS=1PLUS1,,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:CCMD12-11-
31:1::NTK508FA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:OTTAWA----9876543210:CCMD12-11-31:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:CCMD12-11-
21:1::NTK508FA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 226
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "RMV-AMP:OTTAWA----9876543210:AMP-11-21-25:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:OTTAWA----9876543210:AMP-11-21-
25:1:::AMPMODE=Gain,,,TARGGAIN=20,,,,,,,,,,,,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:OTTAWA----9876543210:AMP-11-21-25:1:;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:SMD-11-
14:1::NTK553GC:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:OTTAWA----9876543210:SMD-11-14:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:XLA-11-
13:1::NTK552KA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:OTTAWA----9876543210:XLA-11-13:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:SMD-11-
11:1::NTK553GC:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:WSSOPM-11-
7:1::NTK553MA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:OTTAWA----9876543210:WSSOPM-11-7:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:SAM-11-
6:1::NTK552JN:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:OTTAWA----9876543210:SAM-11-6:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:P155M-11-6-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 227
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "RST-EQPT:OTTAWA----9876543210:P155M-11-6-2:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:WSSOPM-11-
4:1::NTK553MA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:XLA-11-
2:1::NTK552KA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:OTTAWA----9876543210:AMP-11-2-8:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:OTTAWA----9876543210:AMP-11-2-
8:1:::,GAINMODE=High,,,,TARGPKPOW=2.6,TARGGAINTILT=-0.4,,,,,,,,TOPOFFSET=-0.6,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:OTTAWA----9876543210:AMP-11-2-8:1:;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:OTTAWA----9876543210:AMP-11-2-6:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:OTTAWA----9876543210:AMP-11-2-
6:1:::,GAINMODE=High,,,,TARGPKPOW=2.3,TARGGAINTILT=-0.4,,,,,,,,TOPOFFSET=-0.9,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:OTTAWA----9876543210:AMP-11-2-6:1:;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:SAM-11-
1:1::NTK552JN:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ:OTTAWA----9876543210:ADJ-11-1-
5:1:::PROVFEADDR=\"MALTON----1472583690-0-4-8\",,ADJTYPE=LINE,,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ-LINE:OTTAWA----9876543210:ADJ-11-1-
5:1:::FIBERTYPE=NDSF,TARGSPANLOSS=19.0,,SPANLOSSMARGIN=1.0,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:OTTAWA----9876543210:P155M-11-1-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:IS,;"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 228
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"commandType": "tl1",
"command": "ENT-OSPF-ROUTER:OTTAWA----9876543210:SHELF-
11:1:::ROUTERID=20.0.0.1,,ASBR=ON,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:OTTAWA----9876543210:SHELF-
11:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:OTTAWA----9876543210:OSC-11-1-
2:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:OTTAWA----9876543210:COLAN-11-X:1:::;"
},
{
"commandType": "tl1",
"command": "ENT-IP:OTTAWA----9876543210:COLAN-11-
X:1::47.134.24.168:NETMASK=255.255.252.0,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IPSTATICRT:OTTAWA----9876543210:SHELF-
11:1:::IPADDR=0.0.0.0,NETMASK=0.0.0.0,CIRCUIT=COLAN-11-
X,,NEXTHOP=47.134.24.1,COST=5,;"
},
{
"commandType": "tl1",
"command": "ENT-GNE:OTTAWA----9876543210:Shelf-
11:1::REDUNDANT,PRIVATEIP:,,SUBNETNAME=\"DCN-1234-DLLS-OTWA\",;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-ROUTER:OTTAWA----9876543210:SHELF-
11:1:::,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:OTTAWA----9876543210:ILAN-11-IN:1:::;"
},
{
"commandType": "tl1",
"command": "ENT-IP:OTTAWA----9876543210:ILAN-11-
IN:1::0.0.0.0:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:OTTAWA----9876543210:ILAN-11-
IN:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:OTTAWA----9876543210:ILAN-11-OUT:1:::;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 229
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "ENT-IP:OTTAWA----9876543210:ILAN-11-
OUT:1::0.0.0.0:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:OTTAWA----9876543210:ILAN-11-
OUT:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:OTTAWA----9876543210:SHELF-
11:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-RDENTRY:OTTAWA----9876543210:SHELF-
11:1:::IPADDR=20.0.0.0,NETMASK=255.255.255.255,METRIC=500,METRICTYPE=INTERNAL,LEAKL
ISTID=ISISRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-RDENTRY:OTTAWA----9876543210:SHELF-
11:1:::IPADDR=20.0.4.0,NETMASK=255.255.255.255,METRIC=50,METRICTYPE=EXTERNAL,LEAKLI
STID=OSPFRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-RDENTRY:OTTAWA----9876543210:SHELF-
11:1:::IPADDR=0.0.0.0,NETMASK=0.0.0.0,METRIC=500,METRICTYPE=INTERNAL,LEAKLISTID=STA
TICRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-RDENTRY:OTTAWA----9876543210:SHELF-
11:1:::IPADDR=0.0.0.0,NETMASK=0.0.0.0,METRIC=50,METRICTYPE=EXTERNAL,LEAKLISTID=STAT
ICRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-OTS:OTTAWA----9876543210:OTS-11-
1:1:::OSID=\"E2A9EVHF\",TXPATH=4,DOCIND=Y,,CFGTYPE=CHA,SUBTYPE=ROADM,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:OTTAWA----9876543210:SLOTSEQ-11-1-
1:1:::ADDSEQ=11-4&11-2&11-1,DROPSEQ=11-1&11-2&11-4,,;"
},
{
"commandType": "tl1",
"command": "ENT-NE-LIST:OTTAWA----9876543210:SHELF-
11:1:::RNETID=\"MALTON----1472583690\",,;"
},
{
"commandType": "tl1",
"command": "ENT-NE-LIST:OTTAWA----9876543210:SHELF-
11:1:::RNETID=\"DALLAS----0123456789\",GNE=Yes,GNEIPADDR=47.134.24.180;"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 230
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:OTTAWA----9876543210:SHELF-
11:1::PRIMARY,,:STATE=ENABLE,RADIUS=10.10.100.1,PORT=1812,TO=15,GENSECRET=N,;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:OTTAWA----9876543210:SHELF-
11:1::SECONDARY,,:STATE=ENABLE,RADIUS=10.20.200.2,PORT=1812,TO=15,GENSECRET=N,;"
},
{
"commandType": "tl1",
"command": "SET-REMAUTH-ALTERNATE:OTTAWA----9876543210:SHELF-
11:1::LOCAL;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-CSA:OTTAWA----9876543210:SHELF-
11:1:::AUTHSTATE=DISABLE,QUERYMODE=ROUND_ROBIN,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-1:1:::ADDSEQ=11-4,DROPSEQ=11-4,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-2:1:::ADDSEQ=11-4,DROPSEQ=11-4,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-3:1:::ADDSEQ=11-4,DROPSEQ=11-4,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-4:1:::ADDSEQ=11-4,DROPSEQ=11-4,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-77:1:::ADDSEQ=11-11,DROPSEQ=11-11,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-78:1:::ADDSEQ=11-11,DROPSEQ=11-11,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-79:1:::ADDSEQ=11-11,DROPSEQ=11-11,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-51-80:1:::ADDSEQ=11-11,DROPSEQ=11-11,;"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 231
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"commandType": "tl1",
"command": "ED-TOPO-TIDSLOTSEQ:OTTAWA----9876543210:TIDSLOTSEQ-
11-11-6:1:::ADDSEQ=11-21,DROPSEQ=11-21,;"
},
{
"commandType": "tl1",
"command": "ED-IP:OTTAWA----9876543210:LAN-11-
42:1::11.0.0.1:NETMASK=255.255.255.252,,HOSTONLY=OFF,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:OTTAWA----9876543210:LAN-11-
42:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:OTTAWA----9876543210:LAN-11-
42:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,PASSIVE=ON,,,,,;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= The remaining operation in script 1 is
changing the craft port IP address. The session to the craft port will likely drop
due to the IP address change before a response is received. After clicking \"Ok\"
please wait 30 seconds for the ED-IP command to execute then close the TL1 Command
Builder application and disconnect Site Manager. If this is the last shelf specific
script 1 for this TIDc, please connect your computer to the craft port of the
primary. Reset/renew the IP address on your computer and log back into the primary
and execute the Shelf All script.\"\\;"
},
{
"commandType": "tl1",
"command": "ED-IP:OTTAWA----9876543210:LAN-11-
41:1::11.0.0.5:NETMASK=255.255.255.252,,HOSTONLY=OFF,,,;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Successfully completed script 1. Please
reset/renew the IP address on your computer and log back into the primary and
execute the Shelf All script.\"\\;"
}
],
"deviceType": "6500",
"scriptId": "6500_OTTAWA----9876543210-SHELF-11_1.bch"
}
]
},
{
"shelfId": "ALL",
"scripts": [
{
"release": "11.5",
"sequenceId": "1",
"commands": [
{
"commandType": "macro",
"command": "\\\"PROMPT= This is the Shelf: All script for node:
OTTAWA----9876543210. You must be connected to the Primary shelf craft port or via
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 232
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
a DCN port to execute this script. Please confirm script 1 has been executed for
all shelves in this TID. All shelves must have their ILAN cables connected, be
visible and alarm free before executing this script.\"\\;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:OTTAWA----9876543210:LAN-11-
41:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:OTTAWA----9876543210:LAN-11-
41:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,PASSIVE=ON,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-TL1GW:OTTAWA----9876543210:SHELF-
11:1:::GNE=ENABLED,RNE=ENABLED;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Successfully completed
commissioning.\"\\;"
}
],
"deviceType": "6500",
"scriptId": "6500_OTTAWA----9876543210-SHELF-ALL_1.bch"
}
]
}
]
},
{
"nodeType": "ILA",
"deviceType": "6500",
"nodeName": "MALTON----1472583690",
"shelves": [
{
"shelfId": "0",
"primary": "Enable",
"scripts": [
{
"release": "11.5",
"sequenceId": "1",
"commands": [
{
"commandType": "comment",
"command": "\\\"This TL1 Script was created with Commissioning
MicroService for: { \"DeviceType\":\"6500\", \"NodeType\":\"ILA\",
\"TID\":\"MALTON----1472583690\", \"Shelf\": \"0\", \"FIC\": \"OME_0322\",
\"Primary\": \"Enable\", \"Release\":\"11.5\", \"Timestamp\":\"2017-11-29_12-30-13-
076000\", \"FileName\":\"6500_MALTON----1472583690-SHELF-0_1.bch\",
\"relatedProjects\":\"\"} \"\\;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Please confirm configuring node:
MALTON----1472583690, Bay: 0, Shelf: 0, FIC: OME_0322 and Release: 11.5\"\\;"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 233
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"commandType": "tl1",
"command": "SET-SID:GenTID1:SHELF-0:1::\"\"MALTON----
1472583690\"\";"
},
{
"commandType": "tl1",
"command": "ENT-SHELF:MALTON----1472583690:SHELF-
0:1:::SITEID=14696,SITENAME=\"MALTON22CG13\",,FIC=\"OME_0322\",BAYNUM=0,PHYSSHELF=0
,LOCATION=\"-94.55555, 36.8203525\",SUBNETNAME=\"DCN-1234-DLLS-
OTWA\",,,PRIMARY=Enable,TIDC=Enable,EXTENDEDSHELF=ENABLE,,;"
},
{
"commandType": "tl1",
"command": "SET-CLLI:MALTON----1472583690::1::\"MALTON22CG1\";"
},
{
"commandType": "macro",
"command": "\\\"Set Current Date and Time\"\\;"
},
{
"commandType": "tl1",
"command": "SET-NODE-TYPE:MALTON----1472583690::1::ILA;"
},
{
"commandType": "tl1",
"command": "ED-SYS:MALTON----1472583690:SHELF-
0:1:::NEMODE=SONET,,,,,,,,PROVCURRENT=20,,,,,GCC0MODE=DISABLED,GCC1MODE=DISABLED,,,
ALMHO=0,,OSCMODE=Disabled,ALMCORR=ON,BAYFICINAO=True,,,,,,,,,AINSTIMEOUT=24-
00,,,,,,,,,,,,,AUTOROUTEDEF=DISABLE,,ENHEQPTMGMT=ENABLED,ALARMINFO=CRDTYP&WVLNGTH&F
IC&SBNTNM&PHYSSHLF&BYNMBR&CLFI,,,DOCAUTODELLOS=YES,TCASUPPRESSION=Yes,,AUTOPROVFAC=
ON,AUTOPROVCRS=ON,ETH10GMAPPING=GFPMACOSTR,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IP:MALTON----1472583690:SHELF-
0:1::192.0.0.1:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-AUTOEQUIP:MALTON----1472583690:SLOT-0-
ALL:1:::MODE=DISABLED;"
},
{
"commandType": "tl1",
"command": "ED-TELNET:MALTON----1472583690:SHELF-
0:1:::MAXSESSIONS=3,IDLETIMEOUT=30,SERVER=ENABLED;"
},
{
"commandType": "macro",
"command": "\\\"Delay Time (seconds)= 5\"\\;"
},
{
"commandType": "tl1",
"command": "ED-SSH:MALTON----1472583690:SHELF-
0:1:::MAXSESSIONS=18,,SERVER=ENABLED,,;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 234
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "ED-HTTP:MALTON----1472583690:SHELF-
0:1:::HTTP=OFF,,REST=OFF,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:SP-0-
16:1::NTK555FA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:MALTON----1472583690:SP-0-16:1;"
},
{
"commandType": "tl1",
"command": "ENT-FFP-EQPT:MALTON----1472583690:SP-0-15,SP-0-
16:1:::PS=1PLUS1,,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:XLA-0-
14:1::NTK552KA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:MALTON----1472583690:XLA-0-14:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:SAM-0-
13:1::NTK552JN:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:MALTON----1472583690:SAM-0-13:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:P155M-0-13-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:MALTON----1472583690:P155M-0-13-2:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:SAM-0-
4:1::NTK552JN:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ:MALTON----1472583690:ADJ-0-4-
5:1:::PROVFEADDR=\"OTTAWA----9876543210-11-1-8\",,ADJTYPE=LINE,,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ-LINE:MALTON----1472583690:ADJ-0-4-
5:1:::FIBERTYPE=NDSF,TARGSPANLOSS=19.0,,SPANLOSSMARGIN=1.0,;"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 235
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:P155M-0-4-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:XLA-0-
2:1::NTK552KA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:MALTON----1472583690:AMP-0-2-8:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:MALTON----1472583690:AMP-0-2-
8:1:::,GAINMODE=High,,,,TARGPKPOW=2.3,TARGGAINTILT=-0.4,,,,,,,,TOPOFFSET=-0.9,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:MALTON----1472583690:AMP-0-2-8:1:;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:MALTON----1472583690:AMP-0-2-6:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:MALTON----1472583690:AMP-0-2-
6:1:::,GAINMODE=High,,,,TARGPKPOW=2.3,TARGGAINTILT=-0.4,,,,,,,,TOPOFFSET=-0.9,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:MALTON----1472583690:AMP-0-2-6:1:;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:SAM-0-
1:1::NTK552JN:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ:MALTON----1472583690:ADJ-0-1-
5:1:::PROVFEADDR=\"DALLAS----0123456789-11-1-8\",,ADJTYPE=LINE,,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ-LINE:MALTON----1472583690:ADJ-0-1-
5:1:::FIBERTYPE=NDSF,TARGSPANLOSS=19.0,,SPANLOSSMARGIN=1.0,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:MALTON----1472583690:P155M-0-1-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-ROUTER:MALTON----1472583690:SHELF-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 236
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
0:1:::ROUTERID=192.0.0.1,,ASBR=ON,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:MALTON----1472583690:SHELF-
0:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:MALTON----1472583690:OSC-0-4-
2:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:MALTON----1472583690:OSC-0-1-
2:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OTS:MALTON----1472583690:OTS-0-
1:1:::OSID=\"E2A9EVHF\",TXPATH=2,DOCIND=N,,CFGTYPE=AMP,SUBTYPE=AMP,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,AMPMATE=OTS-0-2,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:MALTON----1472583690:SLOTSEQ-0-2-
1:1:::ADDSEQ=0-4,DROPSEQ=0-4,,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:MALTON----1472583690:SLOTSEQ-0-1-
1:1:::ADDSEQ=0-2&0-1,DROPSEQ=0-1&0-2,,;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:MALTON----1472583690:SHELF-
0:1::PRIMARY,,:STATE=ENABLE,RADIUS=20.0.0.1,PORT=1812,TO=30,GENSECRET=Y,;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:MALTON----1472583690:SHELF-
0:1::SECONDARY,,:STATE=ENABLE,RADIUS=20.0.4.1,PORT=1812,TO=30,GENSECRET=Y,;"
},
{
"commandType": "tl1",
"command": "SET-REMAUTH-ALTERNATE:MALTON----1472583690:SHELF-
0:1::LOCAL;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-CSA:MALTON----1472583690:SHELF-
0:1:::AUTHSTATE=DISABLE,QUERYMODE=ROUND_ROBIN,;"
},
{
"commandType": "tl1",
"command": "ED-IP:MALTON----1472583690:LAN-0-
16:1::11.0.0.13:NETMASK=255.255.255.252,,HOSTONLY=OFF,,,;"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 237
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:MALTON----1472583690:LAN-0-
16:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,PASSIVE=ON,,,,,;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= The remaining operation in script 1 is
changing the craft port IP address. The session to the craft port will likely drop
due to the IP address change before a response is received. After clicking \"Ok\"
please wait 30 seconds for the ED-IP command to execute then close the TL1 Command
Builder application and disconnect Site Manager. If this is the last shelf specific
script 1 for this TIDc, please connect your computer to the craft port of the
primary. Reset/renew the IP address on your computer and log back into the primary
and execute the Shelf All script.\"\\;"
},
{
"commandType": "tl1",
"command": "ED-IP:MALTON----1472583690:LAN-0-
15:1::11.0.0.9:NETMASK=255.255.255.252,,HOSTONLY=OFF,,,;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Successfully completed script 1. Please
reset/renew the IP address on your computer and log back into the primary and
execute the Shelf All script.\"\\;"
}
],
"deviceType": "6500",
"scriptId": "6500_MALTON----1472583690-SHELF-0_1.bch"
}
]
},
{
"shelfId": "ALL",
"scripts": [
{
"release": "11.5",
"sequenceId": "1",
"commands": [
{
"commandType": "macro",
"command": "\\\"PROMPT= This is the Shelf: All script for node:
MALTON----1472583690. You must be connected to the Primary shelf craft port or via
a DCN port to execute this script. Please confirm script 1 has been executed for
all shelves in this TID. All shelves must have their ILAN cables connected, be
visible and alarm free before executing this script.\"\\;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:MALTON----1472583690:LAN-0-
15:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,PASSIVE=ON,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-TL1GW:MALTON----1472583690:SHELF-
0:1:::GNE=ENABLED,RNE=ENABLED;"
},
{
"commandType": "macro",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 238
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 239
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"commandType": "tl1",
"command": "SET-NODE-TYPE:DALLAS----0123456789::1::OADM;"
},
{
"commandType": "tl1",
"command": "ED-SYS:DALLAS----0123456789:SHELF-
11:1:::NEMODE=SONET,,,,,,,,PROVCURRENT=3x60,,,,,GCC0MODE=DISABLED,GCC1MODE=DISABLED
,,,ALMHO=0,,OSCMODE=Disabled,ALMCORR=ON,BAYFICINAO=True,,,,,,,,,AINSTIMEOUT=24-
00,,,,,,,,,,,,,AUTOROUTEDEF=DISABLE,,ENHEQPTMGMT=ENABLED,ALARMINFO=CRDTYP&WVLNGTH&F
IC&SBNTNM&PHYSSHLF&BYNMBR&CLFI,,,DOCAUTODELLOS=YES,TCASUPPRESSION=Yes,,AUTOPROVFAC=
ON,AUTOPROVCRS=ON,ETH10GMAPPING=GFPMACOSTR,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IP:DALLAS----0123456789:SHELF-
11:1::20.0.4.1:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-AUTOEQUIP:DALLAS----0123456789:SLOT-11-
ALL:1:::MODE=DISABLED;"
},
{
"commandType": "tl1",
"command": "ED-TELNET:DALLAS----0123456789:SHELF-
11:1:::MAXSESSIONS=3,IDLETIMEOUT=30,SERVER=ENABLED;"
},
{
"commandType": "macro",
"command": "\\\"Delay Time (seconds)= 5\"\\;"
},
{
"commandType": "tl1",
"command": "ED-SSH:DALLAS----0123456789:SHELF-
11:1:::MAXSESSIONS=18,,SERVER=ENABLED,,;"
},
{
"commandType": "tl1",
"command": "ED-HTTP:DALLAS----0123456789:SHELF-
11:1:::HTTP=OFF,,REST=OFF,;"
},
{
"commandType": "tl1",
"command": "ED-SLDD:DALLAS----0123456789:SHELF-
11:1:::ADMINSTATE=ON,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:SP-11-
42:1::NTK555FA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:DALLAS----0123456789:SP-11-42:1;"
},
{
"commandType": "tl1",
"command": "ENT-FFP-EQPT:DALLAS----0123456789:SP-11-41,SP-11-
42:1:::PS=1PLUS1,,,;"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 240
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:CCMD12-11-
31:1::NTK508FA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:DALLAS----0123456789:CCMD12-11-31:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:CCMD12-11-
21:1::NTK508FA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:DALLAS----0123456789:AMP-11-21-25:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:DALLAS----0123456789:AMP-11-21-
25:1:::AMPMODE=Gain,,,TARGGAIN=20,,,,,,,,,,,,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:DALLAS----0123456789:AMP-11-21-25:1:;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:SMD-11-
17:1::NTK553GB:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:DALLAS----0123456789:SMD-11-17:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:XLA-11-
16:1::NTK552KA:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:DALLAS----0123456789:XLA-11-16:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:SMD-11-
14:1::NTK553GB:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ:DALLAS----0123456789:ADJ-11-14-
10:1:::PROVFEADDR=\"DALLAS----0123456789-11-13-8\",,ADJTYPE=LIM,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:XLA-11-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 241
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
13:1::NTK552KA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ:DALLAS----0123456789:ADJ-11-13-
5:1:::PROVFEADDR=\"DALLAS----0123456789-11-14-9\",,ADJTYPE=SMD,,;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:DALLAS----0123456789:AMP-11-13-8:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:DALLAS----0123456789:AMP-11-13-
8:1:::,GAINMODE=Low,,TARGGAIN=15.0,,,TARGGAINTILT=0.0,,,,,,,,TOPOFFSET=0.0,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:DALLAS----0123456789:AMP-11-13-8:1:;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:DALLAS----0123456789:AMP-11-13-6:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:DALLAS----0123456789:AMP-11-13-
6:1:::,GAINMODE=High,,TARGGAIN=20.0,,,TARGGAINTILT=0.0,,,,,,,,TOPOFFSET=-4.0,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:DALLAS----0123456789:AMP-11-13-6:1:;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:WSSOPM-11-
11:1::NTK553LB:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ:DALLAS----0123456789:ADJ-11-11-
4:1:::PROVFEADDR=\"DALLAS----0123456789-11-4-19\",,ADJTYPE=WSS,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:WSSOPM-11-
7:1::NTK553LB:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:DALLAS----0123456789:WSSOPM-11-7:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:SAM-11-
6:1::NTK552JN:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 242
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "RST-EQPT:DALLAS----0123456789:SAM-11-6:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:P155M-11-6-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:OOS-MA,;"
},
{
"commandType": "tl1",
"command": "RST-EQPT:DALLAS----0123456789:P155M-11-6-2:1;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:WSSOPM-11-
4:1::NTK553LB:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ:DALLAS----0123456789:ADJ-11-4-
20:1:::PROVFEADDR=\"DALLAS----0123456789-11-11-3\",,ADJTYPE=WSS,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:XLA-11-
2:1::NTK552KA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:DALLAS----0123456789:AMP-11-2-8:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:DALLAS----0123456789:AMP-11-2-
8:1:::,GAINMODE=High,,,,TARGPKPOW=2.6,TARGGAINTILT=-0.4,,,,,,,,TOPOFFSET=-0.6,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:DALLAS----0123456789:AMP-11-2-8:1:;"
},
{
"commandType": "tl1",
"command": "RMV-AMP:DALLAS----0123456789:AMP-11-2-6:1::::,;"
},
{
"commandType": "tl1",
"command": "ED-AMP:DALLAS----0123456789:AMP-11-2-
6:1:::,GAINMODE=High,,,,TARGPKPOW=2.3,TARGGAINTILT=-0.4,,,,,,,,TOPOFFSET=-0.9,,:,;"
},
{
"commandType": "tl1",
"command": "RST-AMP:DALLAS----0123456789:AMP-11-2-6:1:;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:SAM-11-
1:1::NTK552JN:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 243
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "ED-ADJ:DALLAS----0123456789:ADJ-11-1-
5:1:::PROVFEADDR=\"MALTON----1472583690-0-1-8\",,ADJTYPE=LINE,,;"
},
{
"commandType": "tl1",
"command": "ED-ADJ-LINE:DALLAS----0123456789:ADJ-11-1-
5:1:::FIBERTYPE=NDSF,TARGSPANLOSS=19.0,,SPANLOSSMARGIN=1.0,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:P155M-11-1-
2:1::NTK592NG:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-ROUTER:DALLAS----0123456789:SHELF-
11:1:::ROUTERID=20.0.4.1,,ASBR=ON,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:DALLAS----0123456789:SHELF-
11:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:DALLAS----0123456789:OSC-11-1-
2:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:DALLAS----0123456789:COLAN-11-X:1:::;"
},
{
"commandType": "tl1",
"command": "ENT-IP:DALLAS----0123456789:COLAN-11-
X:1::47.134.24.180:NETMASK=255.255.252.0,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IPSTATICRT:DALLAS----0123456789:SHELF-
11:1:::IPADDR=0.0.0.0,NETMASK=0.0.0.0,CIRCUIT=COLAN-11-
X,,NEXTHOP=47.134.24.1,COST=5,;"
},
{
"commandType": "tl1",
"command": "ENT-GNE:DALLAS----0123456789:Shelf-
11:1::REDUNDANT,PRIVATEIP:,,SUBNETNAME=\"DCN-1234-DLLS-OTWA\",;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-ROUTER:DALLAS----0123456789:SHELF-
11:1:::,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:DALLAS----0123456789:ILAN-11-IN:1:::;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 244
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "ENT-IP:DALLAS----0123456789:ILAN-11-
IN:1::0.0.0.0:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:ILAN-11-
IN:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:DALLAS----0123456789:ILAN-11-OUT:1:::;"
},
{
"commandType": "tl1",
"command": "ENT-IP:DALLAS----0123456789:ILAN-11-
OUT:1::0.0.0.0:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:ILAN-11-
OUT:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:SHELF-
11:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-RDENTRY:DALLAS----0123456789:SHELF-
11:1:::IPADDR=20.0.4.0,NETMASK=255.255.255.255,METRIC=500,METRICTYPE=INTERNAL,LEAKL
ISTID=ISISRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-RDENTRY:DALLAS----0123456789:SHELF-
11:1:::IPADDR=20.0.0.0,NETMASK=255.255.255.255,METRIC=50,METRICTYPE=EXTERNAL,LEAKLI
STID=OSPFRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-RDENTRY:DALLAS----0123456789:SHELF-
11:1:::IPADDR=0.0.0.0,NETMASK=0.0.0.0,METRIC=500,METRICTYPE=INTERNAL,LEAKLISTID=STA
TICRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-RDENTRY:DALLAS----0123456789:SHELF-
11:1:::IPADDR=0.0.0.0,NETMASK=0.0.0.0,METRIC=50,METRICTYPE=EXTERNAL,LEAKLISTID=STAT
ICRDLIST;"
},
{
"commandType": "tl1",
"command": "ENT-OTS:DALLAS----0123456789:OTS-11-
2:1:::,TXPATH=254,DOCIND=N,,CFGTYPE=CHA,SUBTYPE=DIOADM,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 245
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"command": "ENT-OTS:DALLAS----0123456789:OTS-11-
3:1:::,TXPATH=252,DOCIND=N,,CFGTYPE=CHA,SUBTYPE=COADM,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OTS:DALLAS----0123456789:OTS-11-
1:1:::OSID=\"E2A9EVHF\",TXPATH=1,DOCIND=Y,,CFGTYPE=CHA,SUBTYPE=ROADM,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:DALLAS----0123456789:SLOTSEQ-11-2-
1:1:::ADDSEQ=11-13&11-11,DROPSEQ=11-11&11-13,,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:DALLAS----0123456789:SLOTSEQ-11-3-
1:1:::ADDSEQ=11-14,DROPSEQ=11-14,,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:DALLAS----0123456789:SLOTSEQ-11-3-
2:1:::ADDSEQ=11-21,DROPSEQ=11-21,,;"
},
{
"commandType": "tl1",
"command": "ED-TOPO-SLOTSEQ:DALLAS----0123456789:SLOTSEQ-11-1-
1:1:::ADDSEQ=11-4&11-2&11-1,DROPSEQ=11-1&11-2&11-4,,;"
},
{
"commandType": "tl1",
"command": "ENT-NE-LIST:DALLAS----0123456789:SHELF-
11:1:::RNETID=\"MALTON----1472583690\",,;"
},
{
"commandType": "tl1",
"command": "ENT-NE-LIST:DALLAS----0123456789:SHELF-
11:1:::RNETID=\"OTTAWA----9876543210\",GNE=Yes,GNEIPADDR=47.134.24.168;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:DALLAS----0123456789:SHELF-
11:1::PRIMARY,,:STATE=ENABLE,RADIUS=10.10.100.1,PORT=1812,TO=15,GENSECRET=N,;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-REMAUTH:DALLAS----0123456789:SHELF-
11:1::SECONDARY,,:STATE=ENABLE,RADIUS=10.20.200.2,PORT=1812,TO=15,GENSECRET=N,;"
},
{
"commandType": "tl1",
"command": "SET-REMAUTH-ALTERNATE:DALLAS----0123456789:SHELF-
11:1::LOCAL;"
},
{
"commandType": "tl1",
"command": "SET-ATTR-CSA:DALLAS----0123456789:SHELF-
11:1:::AUTHSTATE=DISABLE,QUERYMODE=ROUND_ROBIN,;"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 246
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
},
{
"commandType": "tl1",
"command": "ED-IP:DALLAS----0123456789:LAN-11-
42:1::11.0.0.17:NETMASK=255.255.255.252,,HOSTONLY=OFF,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:LAN-11-
42:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:DALLAS----0123456789:LAN-11-
42:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,PASSIVE=ON,,,,,;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= The remaining operation in script 1 is
changing the craft port IP address. The session to the craft port will likely drop
due to the IP address change before a response is received. After clicking \"Ok\"
please wait 30 seconds for the ED-IP command to execute then close the TL1 Command
Builder application and disconnect Site Manager. If this is the last shelf specific
script 1 for this TIDc, please connect your computer to the craft port of the
primary. Reset/renew the IP address on your computer and log back into the primary
and execute the Shelf All script.\"\\;"
},
{
"commandType": "tl1",
"command": "ED-IP:DALLAS----0123456789:LAN-11-
41:1::11.0.0.21:NETMASK=255.255.255.252,,HOSTONLY=OFF,,,;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Successfully completed script 1. Please
connect to the primary shelf in the TID and execute the Shelf: All script.\"\\;"
}
],
"deviceType": "6500",
"scriptId": "6500_DALLAS----0123456789-SHELF-11_1.bch"
}
]
},
{
"shelfId": "12",
"primary": "Disable",
"scripts": [
{
"release": "11.5",
"sequenceId": "1",
"commands": [
{
"commandType": "comment",
"command": "\\\"This TL1 Script was created with Commissioning
MicroService for: { \"DeviceType\":\"6500\", \"NodeType\":\"OADM\",
\"TID\":\"DALLAS----0123456789\", \"Shelf\": \"12\", \"FIC\": \"OMED_2176\",
\"Primary\": \"Disable\", \"Release\":\"11.5\", \"Timestamp\":\"2017-11-29_12-30-
13-125000\", \"FileName\":\"6500_DALLAS----0123456789-SHELF-12_1.bch\",
\"relatedProjects\":\"\"} \"\\;"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 247
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Please confirm configuring node:
DALLAS----0123456789, Bay: 1, Shelf: 2, FIC: OMED_2176 and Release: 11.5\"\\;"
},
{
"commandType": "tl1",
"command": "SET-SID:GenTID1:SHELF-0:1::\"\"DALLAS----
0123456789\"\";"
},
{
"commandType": "tl1",
"command": "ENT-SHELF:DALLAS----0123456789:SHELF-
12:1:::SITEID=37329,SITENAME=\"DLLSTXRNDS11\",,FIC=\"OMED_2176\",BAYNUM=1,PHYSSHELF
=2,LOCATION=\"-94.0333333, 36.8203525\",SUBNETNAME=\"DCN-1234-DLLS-
OTWA\",,,PRIMARY=Disable,TIDC=Enable,EXTENDEDSHELF=ENABLE,,;"
},
{
"commandType": "macro",
"command": "\\\"Set Current Date and Time\"\\;"
},
{
"commandType": "tl1",
"command": "SET-NODE-TYPE:DALLAS----0123456789::1::OADM;"
},
{
"commandType": "tl1",
"command": "ED-SYS:DALLAS----0123456789:SHELF-
12:1:::NEMODE=SONET,,,,,,,,PROVCURRENT=4x60,,,,,GCC0MODE=DISABLED,GCC1MODE=DISABLED
,,,ALMHO=0,,OSCMODE=Disabled,ALMCORR=ON,BAYFICINAO=True,,,,,,,,,AINSTIMEOUT=24-
00,,,,,,,,,,,,,AUTOROUTEDEF=DISABLE,,ENHEQPTMGMT=ENABLED,ALARMINFO=CRDTYP&WVLNGTH&F
IC&SBNTNM&PHYSSHLF&BYNMBR&CLFI,,,DOCAUTODELLOS=YES,TCASUPPRESSION=Yes,,AUTOPROVFAC=
ON,AUTOPROVCRS=ON,ETH10GMAPPING=GFPMACOSTR,,,,,,,,,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IP:DALLAS----0123456789:SHELF-
12:1::20.0.4.2:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-AUTOEQUIP:DALLAS----0123456789:SLOT-12-
ALL:1:::MODE=DISABLED;"
},
{
"commandType": "tl1",
"command": "ED-TELNET:DALLAS----0123456789:SHELF-
12:1:::MAXSESSIONS=3,IDLETIMEOUT=30,SERVER=ENABLED;"
},
{
"commandType": "macro",
"command": "\\\"Delay Time (seconds)= 5\"\\;"
},
{
"commandType": "tl1",
"command": "ED-SSH:DALLAS----0123456789:SHELF-
12:1:::MAXSESSIONS=18,,SERVER=ENABLED,,;"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 248
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"commandType": "tl1",
"command": "ED-HTTP:DALLAS----0123456789:SHELF-
12:1:::HTTP=OFF,,REST=OFF,;"
},
{
"commandType": "tl1",
"command": "ED-SLDD:DALLAS----0123456789:SHELF-
12:1:::ADMINSTATE=ON,,;"
},
{
"commandType": "tl1",
"command": "ENT-EQPT:DALLAS----0123456789:SP-12-
42:1::NTK555FA:,,,,,,,,,,,,,,,,,:IS,;"
},
{
"commandType": "tl1",
"command": "ENT-FFP-EQPT:DALLAS----0123456789:SP-12-41,SP-12-
42:1:::PS=1PLUS1,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-ROUTER:DALLAS----0123456789:SHELF-
12:1:::,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:DALLAS----0123456789:ILAN-12-IN:1:::;"
},
{
"commandType": "tl1",
"command": "ENT-IP:DALLAS----0123456789:ILAN-12-
IN:1::0.0.0.0:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:ILAN-12-
IN:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-LAN:DALLAS----0123456789:ILAN-12-OUT:1:::;"
},
{
"commandType": "tl1",
"command": "ENT-IP:DALLAS----0123456789:ILAN-12-
OUT:1::0.0.0.0:NETMASK=255.255.255.255,,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:ILAN-12-
OUT:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:SHELF-
12:1:::,,,,;"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 249
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"commandType": "tl1",
"command": "ED-TL1GW:DALLAS----0123456789:SHELF-
12:1:::GNE=ENABLED,RNE=ENABLED;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Successfully completed script 1. Please
execute script 1 for all remaining shelves in this TID. When script 1 has been
executed for all shelves in the TID connect to the primary shelf in the TID and
execute the Shelf: All script.\"\\;"
}
],
"deviceType": "6500",
"scriptId": "6500_DALLAS----0123456789-SHELF-12_1.bch"
}
]
},
{
"shelfId": "ALL",
"scripts": [
{
"release": "11.5",
"sequenceId": "1",
"commands": [
{
"commandType": "macro",
"command": "\\\"PROMPT= This is the Shelf: All script for node:
DALLAS----0123456789. You must be connected to the Primary shelf craft port or via
a DCN port to execute this script. Please confirm script 1 has been executed for
all shelves in this TID. All shelves must have their ILAN cables connected, be
visible and alarm free before executing this script.\"\\;"
},
{
"commandType": "tl1",
"command": "ENT-IISIS-CIRCUIT:DALLAS----0123456789:LAN-11-
41:1:::,,,,;"
},
{
"commandType": "tl1",
"command": "ENT-OSPF-CIRCUIT:DALLAS----0123456789:LAN-11-
41:1:::NETAREA=92.0.0.0,,,,,,,,,,,,,,PASSIVE=ON,,,,,;"
},
{
"commandType": "tl1",
"command": "ED-TL1GW:DALLAS----0123456789:SHELF-
11:1:::GNE=ENABLED,RNE=ENABLED;"
},
{
"commandType": "macro",
"command": "\\\"PROMPT= Successfully completed
commissioning.\"\\;"
}
],
"deviceType": "6500",
"scriptId": "6500_DALLAS----0123456789-SHELF-ALL_1.bch"
}
]
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 250
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
}
],
"relatedProjects": [],
"projectName": "AddFbRFDILANTB1"
}
}
Copy the contents of the response and save it to a text file with the extension .json.
Note: To apply a commissioning script to a network element, see "Commissioning via a script" in 6500
Packet Optical Platform Commissioning and Testing, 323-1851-221, Issue 3 or later.
Requirements
• Before you retrieve the commissioning scripts, ensure that you Generate commissioning scripts for a
homogeneous project only consisting of Waveserver nodes.
• A commissioning script provided for a node consists of CLI commands required to commission a
Waveserver node.
• Save this script in a file and execute it on a Waveserver at the CLI prompt.
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/scripts/
• Provide the value of the projectname parameter in the text box. The value specifies the project name
of the planned network in RPT.
• Provide the value of the devicetype as Waveserver in the text box.
• Provide the value of the nodename in the text box.
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 251
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Save the response in a file and execute the commands at the CLI prompt of a Waveserver node.
Requirements
Before you retrieve the commissioning scripts, ensure that you Generate commissioning scripts for a
heterogeneous project consisting of 6500 nodes and Waveserver nodes.
Note: You can also retrieve scripts using links provided for each node in the response from Generate
commissioning scripts for a heterogeneous project consisting of 6500 nodes and Waveserver nodes.
Sample request
GET {{MCP_SERVER}}/commissioning/api/v1/scripts/
• Provide the value of the projectname parameter in the text box. The value specifies the project name
of the planned network in RPT.
• Provide the value of the devicetype as Waveserver in the text box.
• Provide the value of the nodename in the text box.
Refer sample response in Retrieve commissioning scripts for a homogeneous project only consisting of
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 252
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
6500 nodes.
Refer sample response from Retrieve commissioning scripts for a homogeneous project only consisting
of Waveserver nodes.
1. Pre-commission
2. Create a connection profile
3. Enroll a device
Requirements
Pre-commission
Complete the following tasks to pre-commission the device.
• Enable SNMP: navigate to Security-Security Settings, set "SNMP Agent" field to Enable
• 6200 lldp: enable lldp and TLV for links. Ensure sysName as part of LLDP, as currently needed for
linking stitching in MCP
• Pre-commission the device with a default level 3 Maintenance Domain (MD) in the tunnel and
pseudowire space for tunnel and pseudowire provisioning
• Manually create the MD on the device to be used as the default MD for provisioning (during
provisioning, the 6200 RA looks in the MIB table for a default level 3 MD and uses it for provisioning)
• For 6200 BFD, there is no need to create profiles separately because they are configured as part of
tunnel creation
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 253
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
To create the profile, use the Network element connection profiles API.
Requirements
To create a 6200 device profile, two protocol endpoints must be added: "snmp" and "http_rest". The
SNMP protocol allows the 6200 resource adapter (RA) to query device parameters using SNMP, and the
HTTP_REST protocol allows the 6200 RA to submit HTML requests to the device.
• [NAME] - (string) - a unique identifier that describes the profile (such as "6200_NE_Profile")
• [DESCRIPTION] - (string) - a description for the profile (such as "6200 multi-protocol profile")
• [SNMP_PORT] - (integer) - SNMP port used to perform SNMP queries on the device (usually "161")
• [COMMUNITY_STRING] - (string) - community string for SNMP protocol (such as "public")
• [SNMP_VERSION] - (string) - protocol version to communicate via SNMP (such as "v2c")
• [HTTP_PORT] - (integer) - HTTP port used to communicate to the device via HTML (usually "20080")
• [USERNAME] - (string) - username used to login to the device’s node manager (HTML interface)
• [PASSWORD] - (string) - password used to login to the device’s node manager (HTML interface)
Once you create a profile for the device, you receive a response that contains information about the
profile created. To enroll a device, you need the profile ID that is returned in this response.
Sample request
POST {{MCP_SERVER}}/discovery/api/v1/neprofiles
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 254
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "neConnectionProfile",
"attributes": {
"name":
"[NAME]",
"profileDescription": "[DESCRIPTION]",
"typeGroup": "/typeGroups/Ciena6200",
"isDefault": true,
"isEnabled": true,
"protocolEndpoints": {
"snmp": {
"connection": {
"hostport": [SNMP_PORT]
},
"authentication": {
"community": "[COMMUNITY_STRING]",
"version": "[SNMP_VERSION]"
}
},
"http_rest": {
"connection": {
"hostport": [HTTP_PORT]
},
"authentication": {
"scheme":
"http", "auth":
{
"username": "[USERNAME]",
"password": "[PASSWORD]"
}
}
}
}
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 255
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"id": "84a03f76-ca10-4144-870e-df4db582f931",
"type": "neConnectionProfile",
"attributes": {
"name": "6200_NE_Profile",
"profileDescription": "6200 multi-protocol profile",
"typeGroup": "/typeGroups/Ciena6200",
"isDefault": true,
"isEnabled": true,
"protocolEndpoints":
{
"snmp": {
"connection": {
"hostport": 161
},
"authentication": {
"community": "public",
"version": "v2c"
}
},
"http_rest": {
"connection": {
"hostport": 20080
},
"authentication"
: { "scheme":
"http",
"auth": {
"username": "USERNAME",
"password": "PASSWORD"
}
}
}
}
}
}
}
The response stores the profile ID in the data.id attribute (that is, "84a03f76-ca10-4144-870e-
df4db582f931").
To retrieve the profile ID after creating the connection profile, issue the GET
{{MCP_SERVER}}/discovery/api/v1/neprofiles request on the same URL as used for the POST request.
You receive a list of all profiles on the host machine. Ciena recommends you find the profile with the
same name as used for the POST request and note it down for use in the enrollment request.
Enroll a device
Once a connection profile is created, you can enroll a 6200 device. To enroll the device, use the Network
element enrollment (management sessions) API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 256
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
• [6200_IP] - (string) - IP address of the 6200 device (such as "10.11.12.13") (Currently only IPv4 is
supported.)
• [6200_PROFILE_ID] - the ID of the 6200 profile created in Create a connection profile.
Sample request
POST {{MCP_SERVER}}/discovery/api/v3/managementSessions
{
"data": {
"type": "managementSessions",
"attributes": {
"ipAddress": "[6200_IP]",
"typeGroup": "/typeGroups/Ciena6200",
"discoveryState": "CONNECTING",
"profile": "[6200_PROFILE_ID]"
}
}
}
After this request is performed, MCP triggers enrollment and synchronization of the device. The device
then becomes inventoried and viewable in the MCP UI. Note the "discoveryState" of "CONNECTING"
triggers the device enrollment.
This section provides an example of how to manually view 6200 inventory. Tasks include:
Once enrollment for a 6200 device starts, MCP communicates with the 6200 resource adapter (RA) and
triggers shallow and deep discovery for the device. Note that shallow discovery is named "session-
discovery" in the API. Shallow and deep discovery finds the following categories of attributes on the
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 257
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
device:
Note: The following request examples use a sample Network Construct ID of "2fd1c4a7-630f-30fa-b48f-
18beb7c40c1d". This unique ID is also called networkConstruct.id (previously NCID). Many queries
require this ID.
Sample request
GET {{MCP_SERVER}}/nsi/api/networkConstructs?limit=20
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 258
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": [
{
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d",
"type": "networkConstructs",
"attributes": {
"ipAddress": "10.11.12.13",
"typeGroup": "Ciena6200",
"resourceType": "6200",
"associationState": "GOA",
"deviceType": "6200",
"softwareVersion": "02105601",
"accessIdentifier": "SHELF-1",
"macAddress": "0x0004950DD992",
"name": "MY_6200",
"geoLocation": {
"zone": "SJ",
"longitude": "",
"latitude": ""
},
"serialNumber": "M8112480",
"deviceVersion": "CIENA,6200,ADM,02105601",
"additionalAttributes": {},
"capabilitySpecRef": "6200.json",
"networkConstructType": "networkElement",
"l2Data": [
{
"shelf": "1",
"loopbackAddresses": [
"10.11.12.13"
],
"staticTunnelLabelRange": {
"minValue": 16,
"maxValue": 4095
},
"dynamicLabelRange": {
"minValue": 0,
"maxValue": 0
},
"staticVcLabelRange": {
"minValue": 4096,
"maxValue": 8191
}
}
]
},
"relationships": {
"managementSession": {
"data": {
"type": "managementSessions",
"id": "ef568f94-9049-4e91-9408-757e6aff898e"
}
}
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 259
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request
GET {{MCP_SERVER}}/nsi/api/equipment?networkConstruct.id=2fd1c4a7-630f-30fa-b48f-
18beb7c40c1d&limit=ALL
Sample response
{
"data": [
{
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::EQPT_10",
"type": "equipment",
"attributes": {
"locations": [
{
"managementType": "saos",
"slot": "10"
}
],
"category": "shelf",
"nativeName": "Fan+OAM-10",
"provisionedSpec": {
"serialNumber": ""
},
"installedSpec": {
"serialNumber": ""
},
"state": "OOS",
"cardType": "Fan",
"maintenanceMode": false
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d"
}
}
}
},
{
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::EQPT_1_2_1",
"type": "equipment",
"attributes": {
"locations": [
{
"managementType": "saos",
"shelf": "1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 260
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"slot": "2",
"port": "1"
}
],
"category": "pluggable",
"nativeName": "PGEFC-1-2-1",
"provisionedSpec": {
"serialNumber": "08FY07002588 ",
"type": "PGEFC-1-2-1",
"partNumber": "XCVR-010M31 ",
"additionalAttributes": {
"eqpWidth": "1"
}
},
"installedSpec": {
"serialNumber": "08FY07002588 ",
"type": "PGEFC-1-2-1",
"partNumber": "XCVR-010M31 ",
"additionalAttributes": {
"eqpWidth": "1"
}
},
"state": "IS",
"cardType": "PGEFC-1-2-1",
"maintenanceMode": false
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d"
}
},
"equipmentHolder": {
"data": {
"type": "equipmentHolders",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::EQPTHLD_1_2_1"
}
}
}
}
]
}
Sample request
GET {{MCP_SERVER}}/nsa/api/v1/alarms?status=active&fields=all&limit=30
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 261
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample response
{
"data": [
{
"type": "alarm",
"id": "-1299290880639205018",
"attributes": {
"id": "-1299290880639205018",
"resource": "MEP-MCP-Prot62006x_Protect",
"ra-alarm-id": "3989",
"node-id": "7f39766f-4a52-448e-9e68-cf07bcf3b3fa",
"node-type": "6200",
"native-condition-type": "LOCC",
"native-condition-type-qualifier": "658",
"condition-severity": "CRITICAL",
"service-affecting": "SERVICE_AFFECTING",
"condition-source": "NETWORK",
"condition-state": "ACTIVE",
"manual-clearable": false,
"additional-text": "Connectivity Check Failed",
"first-raise-time": "2017-03-06T10:52:07.000+0000",
"last-raise-time": "2017-03-06T10:52:07.000+0000",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-attrs": {
"source": "6200:MplsTpMEP-0-0-1-1-2-2"
}
}
},
{
"type": "alarm",
"id": "-1501069848203798886",
"attributes": {
"id": "-1501069848203798886",
"resource": "MEP-Demo_159-200_Pr_23-27_Work",
"ra-alarm-id": "3990",
"node-id": "7f39766f-4a52-448e-9e68-cf07bcf3b3fa",
"node-type": "6200",
"native-condition-type": "LOCC",
"native-condition-type-qualifier": "658",
"condition-severity": "CRITICAL",
"service-affecting": "SERVICE_AFFECTING",
"condition-source": "NETWORK",
"condition-state": "ACTIVE",
"manual-clearable": false,
"additional-text": "Connectivity Check Failed",
"first-raise-time": "2017-03-06T10:52:12.000+0000",
"last-raise-time": "2017-03-06T10:52:12.000+0000",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-attrs": {
"source": "6200:MplsTpMEP-0-0-1-1-3-3"
}
}
},
{
"type": "alarm",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 262
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"id": "-1651645470242266090",
"attributes": {
"id": "-1651645470242266090",
"resource": "P10GETH-1-2-3",
"ra-alarm-id": "3448",
"node-id": "7f39766f-4a52-448e-9e68-cf07bcf3b3fa",
"node-type": "6200",
"native-condition-type": "EQPT_MISMATCH",
"native-condition-type-qualifier": "360",
"condition-severity": "CRITICAL",
"service-affecting": "SERVICE_AFFECTING",
"condition-source": "NETWORK",
"condition-state": "ACTIVE",
"manual-clearable": false,
"additional-text": "SFP Auto Provision Mismatch",
"first-raise-time": "2016-02-16T15:16:34.000+0000",
"last-raise-time": "2016-02-16T15:16:34.000+0000",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-attrs": {
"source": "6200:SFP-1-2-3"
}
}
},
],
"links": {
"next": {
"href":
"https://2.3.4.5/api/nsa/api/v1/alarms?offset=0028001000000020001335373231363835363
93833323631373832313900000776657273696f6e007fffffe1a656d6c330effe4911c46176a334601b
0003:7f39766f-4a52-448e-9e68-cf07bcf3b3fa&limit=30",
"meta": {
"nextOffset":
"002800100000002000133537323136383536393833323631373832313900000776657273696f6e007f
ffffe1a656d6c330effe4911c46176a334601b0003:7f39766f-4a52-448e-9e68-cf07bcf3b3fa"
}
}
},
"meta": {}
}
The port inventory (TPEs) request returns port information, as well as tunnel and service information, at
the physical port level.
Sample request
GET {{MCP_SERVER}}/nsi/api/tpes?networkConstruct.id=2fd1c4a7-630f-30fa-b48f-
18beb7c40c1d&content=detail&limit=500
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 263
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample response
{
"links": {},
"data": [
{
"id": "2fd1c4a7-630f-30fa-b48f-
18beb7c40c1d::TPE_1_2_1_CTPServerToClient_VLAN_4096",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"locations": [
{
"managementType": "saos",
"port": "Port_Eth-1000-1-2-1",
"vlan": "4096"
}
],
"layerTerminations": [
{
"layerRate": "ETHERNET",
"structureType": "exposed lone cp",
"terminationState": "layer termination cannot terminate",
"active": true,
"signalIndex": {
"mappingTable": [
{
"direction": "RXTX",
"label": "4096"
}
]
},
"additionalAttributes": {
"interfaceType": "INNI",
"egressAction.etherType": "",
"egressAction.label": "4096",
"signalContentType": "VLAN"
}
}
],
"stackDirection": "bidirectional",
"displayAlias": "ETH-1-2-1-4096",
"identifiers": [
{
"networkConstructId": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d",
"nodalId": "2fd1c4a7-630f-30fa-b48f-
18beb7c40c1d::TPE_1_2_1_CTPServerToClient_VLAN_4096"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d"
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 264
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"owningServerTpe": {
"data": {
"type": "tpes",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::TPE_1_2_1_PTP"
}
}
}
},
{
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::TPE_1_2_1_PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"nativeName": "Port_Eth-1000-1-2-1",
"userLabel": "Port_Eth-1000-1-2-1",
"locations": [
{
"managementType": "saos",
"shelf": "1",
"slot": "2",
"port": "1"
}
],
"layerTerminations": [
{
"layerRate": "ETHERNET",
"structureType": "lone adapter",
"terminationState": "layer termination cannot terminate",
"active": true,
"adjacencyPackage": {
"adjacencyType": "TXRX",
"localTag": "SJ_6200_220-0a6f32dc-Port_Eth-1000-1-2-1",
"provisionedRemoteTag": "SJ_6200_159-0a6f329f-Port_Eth-1000-1-2-2",
"remoteTag": "SJ_6200_159-0a6f329f-Port_Eth-1000-1-2-2",
"topologySourceTag": "DISCOVERED"
},
"additionalAttributes": {
"macAddress": "00:04:95:0f:04:78",
"acceptableFrameType": "all",
"signalContentType": "mac_transport",
"stp": "disabled",
"mtu": "9616",
"floodContainment": "disabled"
}
},
{
"layerRate": "DSR_ETHERNET",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently terminated",
"active": true,
"additionalAttributes": {
"adminSpeed": "1 Gbps",
"autoNegotiation": "enable",
"dsrType": "UNKNOWN",
"adminFlowControl": "manualDisable",
"operSpeed": "1 Gbps",
"adminDuplex": "full"
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 265
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"layerRate": "OS",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently terminated",
"active": true
},
{
"layerRate": "PHY",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently terminated",
"active": true
}
],
"stackDirection": "bidirectional",
"displayAlias": "ETH-1-2-1",
"fgiSpecificationRefList": [
"Packet_6x_Common_FG:1:1"
],
"totalCapacity": [
{
"layer": "ETHERNET",
"capacity": 4094,
"capacitySize": {
"size": [
"0-4094"
],
"pattern": {
"type": "RANGE"
},
"unit": "SVID"
}
},
{
"layer": "ETHERNET",
"capacity": 4094,
"capacitySize": {
"size": [
"0-4094"
],
"pattern": {
"type": "RANGE"
},
"unit": "CVID"
}
}
],
"usedCapacity": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"4096"
],
"pattern": {
"type": "RANGE"
},
"unit": "SVID"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 266
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
}
],
"identifiers": [
{
"networkConstructId": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d",
"nodalId": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::TPE_1_2_1_PTP"
}
],
"additionalAttributes": {
"portType": "ethernet"
}
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d"
}
},
"clientTpes": {
"data": [
{
"type": "tpes",
"id": "2fd1c4a7-630f-30fa-b48f-
18beb7c40c1d::TPE_1_2_1_CTPServerToClient_VLAN_4096"
}
]
}
}
}
]
}
The service inventory (FREs) request returns tunnel and service information at the service level.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres?networkConstruct.id=2fd1c4a7-630f-30fa-b48f-
18beb7c40c1d&limit=30
Sample response
{
"links": {},
"data": [
{
"id": "-3520365371114410288",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 267
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"signalContentType": "IP",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-3520365371114410288:1"
},
{
"type": "endPoints",
"id": "-3520365371114410288:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::FRE_IP_ETH-1-2-2"
},
{
"type": "fres",
"id": "7006946602095382927"
},
{
"type": "fres",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::FRE_IP_ETH-1-2-2"
}
]
}
}
},
{
"id": "-4540001329902763454",
"type": "fres",
"attributes": {
"userLabel": "Jane_159-171_PE_16-58_B",
"mgmtName": "",
"nativeName": "",
"layerRate": "MPLS",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 268
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
],
"signalContentType": "LSP",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-4540001329902763454:1"
},
{
"type": "endPoints",
"id": "-4540001329902763454:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::FRE_MPLS_Jane_159-
171_PE_16-58_B_transit"
},
{
"type": "fres",
"id": "-3520365371114410288"
}
]
}
}
},
{
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::FRE_IP_ETH-1-2-2",
"type": "fres",
"attributes": {
"mgmtName": "",
"layerRate": "ETHERNET",
"multiHighestStackLayerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"operationState": "fully operating",
"deploymentState": "complete in network",
"signalContentType": "IP",
"identifiers": [
{
"networkConstructId": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d",
"nodalId": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::FRE_IP_ETH-1-2-2"
}
],
"additionalAttributes": {
"isActual": "true"
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 269
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::FRE_IP_ETH-1-2-2::EP0"
},
{
"type": "endPoints",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d::FRE_IP_ETH-1-2-2::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2fd1c4a7-630f-30fa-b48f-18beb7c40c1d"
}
}
}
}
]
}
Tasks include:
Requirements
• If required, set the trap destination in the commissioning SNMP policy data.
• If required, you have configured the SNMP defaults in the commissioning SNMP policy defaults.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 270
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Requirements
Provide the value of the session_id parameter in the text box. This value specifies the management
session_id for the NE. You retrieve the management session_id using the instructions in section Retrieve
management sessions.
Sample request
POST {{MCP_SERVER}}/commissioning/api/v1/services/
Sample input
{
"session_id": "148e227f-1962-4b4d-ba59-dc9b12627ac6"
}
Sample response
Sample request
GET {{MCP_SERVER}}/commissiong/api/v1/services/
Sample response
{
"data": [
{
"device": {
"release": "11.5",
"type": "6500",
"name": "PV0196A"
},
"services": [
{
"operations": [
{
"commands": [
{
"status": "provisioned",
"command": "ED-SNMP::SHELF-
11:1:::SNMPAGENT=ENABLED,VERSION=v3,,,,,,,;",
"type": "tl1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 271
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"id": "SHELF-11"
}
],
"type": "ED-SNMP"
},
{
"commands": [
{
"status": "provisioned",
"command": "ED-TRAP-DEST::DEST-11-1:1::\"1.2.3.4\":,,,,;",
"type": "tl1",
"id": "1.2.3.4"
},
{
"status": "provisioned",
"command": "ED-TRAP-DEST::DEST-11-2:1::\"5.6.7.8\":,,,,;",
"type": "tl1",
"id": "5.6.7.8"
}
],
"type": "ED-TRAP-DEST"
},
{
"commands": [
{
"status": "provisioned",
"command": "ENT-USER-USM::SHELF-
11:1:::UID=\"admin\",AUTH=MD5,AUTHPASSWORD=\"qwertyuiop\",PRIV=DES,PRIVPASSWORD=\"q
wertyuiop\",USERGROUP=\"OM5Kcustomer1Group\",;",
"type": "tl1",
"id": "admin"
}
],
"type": "ENT-USER-USM"
}
],
"name": "SNMP"
}
],
"nc_id": "24483f02-09e9-3b42-9c29-aa122c5f82b2"
}
]
}
Requirements
Provide the value of the network element TID or IP address in the text box.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 272
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
GET {{MCP_SERVER}}/discover/api/managementSessions
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 273
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"meta": {
"total": 1
},
"links": {
"current": "https://onxv0378/api/discovery/api/managementSessions?name=3903-
6&limit=20"
},
"data": [
{
"id": "ff36451b-134a-4fde-9a20-5332f3f251f9",
"type": "managementSessions",
"attributes": {
"displayData": {
"displayState": "CONNECTED"
},
"ipAddress": "10.92.19.223",
"typeGroup": "/typeGroups/CienaPacket",
"name": "3903-6",
"profile": "59c0fc94-a261-4209-b66e-34ec7b7a0783",
"resourceType": "3903x",
"discoveryState": "COMPLETED",
"created": "2017-05-23T18:10:41.269+0000",
"associationState": "GOA",
"managementAddresses": [
"10.92.19.223"
],
"sessionType": "gatewayNE",
"onPreferredGNE": true,
"connectionAddress": "10.92.19.223",
"preferredConnectionAddress": {
"address": "10.92.19.223",
"cost": 0
},
"connectionStates": [
{
"protocolType": "cli",
"connectionState": "CONNECTED"
},
{
"protocolType": "snmp",
"connectionState": "CONNECTED"
}
]
},
"relationships": {
"preferredGateway": {
"data": {
"type": "managementSessions",
"id": "ff36451b-134a-4fde-9a20-5332f3f251f9"
}
}
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 274
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
The network element connection profile contains device credentials and connection ports to the network
element.
The changed profile takes effect the next time the MCP server connects to the network element. Specific
updates include:
Use the management sessions API to change the network element connection profile.
Requirements
Sample request
PATCH {{MCP_SERVER}}/discovery/api/v4/managementSessions/{sessionId}
{
"operations" : [
{
"op": "replace",
"attributes": {
"profile" : "<NE_PROFILE_ID>"
}
}]
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 275
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"id": "32c3c340-d9b8-49a7-b7dd-22dced75985d",
"type": "managementSessions",
"attributes": {
"displayData": {
"displayState": "CONNECTED"
},
"ipAddress": "10.182.191.170",
"typeGroup": "CienaWaveserver",
"name": "US-IL-Midway-WS001",
"profile": "8d65b066-46c9-4da4-8a86-cbf173b2f65a",
. . .
}
}
}
Sample request
POST {{MCP_SERVER}}/configmgmt/api/v1/jobs
◦ Port - portConfig
◦ Port Interface - portInterfaceConfig
◦ Node - nodeConfig
• profileName - profile name
• type - type of job (for example, job)
• action - to specify the type of actions (create, delete) that can be performed on the script (in this
example, it is create)
• neName - network element name
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 276
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portConfig",
"inputs": [
{
"data": [
{
"type": "tpes",
"name": "8700",
"attributes": {
"action": "create",
"locations": [
{
"slot": "1",
"port": "1"
}
],
"layerTerminations": [
{
"layerRate": "ETHERNET",
"additionalAttributes": {
"description": "ciena"
}
}
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 277
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample response
{
"jobId": "6f057d9f-c912-435b-8f0b-47cab0f540b2",
"status": "COMPLETED",
"input": {
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portConfig",
"inputs": [
{
"data": [
{
"type": "tpes",
"name": "8700",
"attributes": {
"action": "create",
"locations": [
{
"slot": "1",
"port": "1"
}
],
"layerTerminations": [
{
"layerRate": "ETHERNET",
"additionalAttributes": {
"description": "test1"
}
}
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 278
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"type": "networkConstructs",
"id": "76a16478-c95f-4f80-b7dd-aa947798ed45"
}
]
}
}
},
"included": [
{
"id": "76a16478-c95f-4f80-b7dd-aa947798ed45",
"type": "networkElement",
"attributes": {
"ncId": "76a16478-c95f-4f80-b7dd-aa947798ed45",
"neName": "87_4333n8",
"ipAddress": "10.182.36.111",
"neType": "8700"
}
}
]
},
"output": {
"data": {
"type": "jobResults",
"attributes": {
"scriptResults": [
{
"scriptName": "portConfig",
"status": "COMPLETED",
"commandResults": [
{
"command": "set-port.json",
"result": {
"result": {
"data": "",
"result": "success"
},
"parameters": {
"data": [
{
"attributes": {
"action": "create",
"layerTerminations": [
{
"additionalAttributes": {
"description": "test1"
},
"layerRate": "ETHERNET"
}
],
"locations": [
{
"slot": "1",
"port": "1"
}
]
},
"type": "tpes",
"name": "8700"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 279
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
]
},
"command": "set-port.json"
}
}
]
}
]
}
}
}
}
Sample request
POST {{MCP_SERVER}}/configmgmt/api/v1/jobs
• Region Id - Describes region component. First 6 bits are allocated for region
• Type: Describes risk type component. Bits 7-10 are allocated for risk type
• Summary Bit : Describes summary bit. Bit 11 is allocated for summary bit.
◦ Summary Bit = 0 - MCP will never automatically overwrite
◦ Summary Bit = 1 - MCP will automatically overwrite once propagation from lower layers is
supported
• Risk value: Describes risk value bits. Lower 21 bits are allocated for risk values
Example
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 280
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
SRLG value bits are configured in RA container. This can be modified by modifying the values in
commissioning_properties.py file.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 281
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483,
"linkCost": 200
"interfaceName": "if",
"resourceColorGroupName": "tdm_color_gr"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 282
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "unset",
"srlg": null,
"linkCost": null,
"resourceColorGroupName": null,
"interfaceName": "if"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 283
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "add",
"interfaceName": "if",
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 284
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "remove",
"interfaceName": "if",
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 285
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
1. To retrieve the current value for the DCN Mode, send the following GET request on the RA:
Sample request
Sample response
{
"data": {
"member-id": "32",
"site-id": "1",
"group-id": "7",
"line-protection": "unprotected",
"encryption": "NOT_SUPPORTED",
"site-name": "",
"line-ports": [
{
"id": "2-1",
"wavelength": "1566.78",
"frequency": "191.342500",
"transmission-mode": "56-400",
"oduk-termination-mode": "passthrough"
},
{
"id": "2-2",
"wavelength": "1566.78",
"frequency": "191.342500",
"transmission-mode": "56-400",
"oduk-termination-mode": "passthrough"
},
{
"id": "3-1",
"wavelength": "1528.71",
"frequency": "196.107500",
"transmission-mode": "56-200",
"oduk-termination-mode": "passthrough"
},
{
"id": "3-2",
"wavelength": "1528.71",
"frequency": "196.107500",
"transmission-mode": "56-200",
"oduk-termination-mode": "passthrough"
}
],
"group-name": "",
"host-name": "WS3012-FPE-REGEN",
"member-name": "First Product Evaluation Shelf",
"comm-interfaces": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 286
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"index": "1",
"name": "ILAN-1",
"operational-state": "down",
"mode": "management",
"admin-state": "enabled",
"type": "ethernet"
},
{
"index": "2",
"name": "ILAN-2",
"operational-state": "down",
"mode": "management",
"admin-state": "enabled",
"type": "ethernet"
},
{
"index": "3",
"name": "DCN",
"operational-state": "up",
"mode": "management",
"admin-state": "enabled",
"type": "ethernet"
},
{
"index": "4",
"name": "CONSOLE",
"operational-state": "up",
"mode": "management",
"admin-state": "enabled",
"type": "serial"
}
]
}
}
2. To edit the current value for the DCN Mode, send the following PATCH request on the RA:
Body
Sample response
Status Code:201 OK
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 287
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
SAOS 8x platforms maintain extensive health tracking records, monitoring almost every single aspect of
the chassis.
• cpu-load-average
• cpu-utilization
• memory-utilization
• temperature
• power
/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 288
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
• Attributes: healthitem
• Type: string
• Values: temperature
• Script Name: HealthDiagnosticShow
The following examples show sample API calls requesting health diagnostics for both 6500 and 8700
nodes.
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "healthDiagnosticShow",
"inputs": [
{
"healthitem": "temperature"
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 289
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Response
[
{
"category": "Temperature",
"origin": "Chassis",
"item": "n/a",
"healthState": "Normal",
"currentValue": "17 C",
"minMaxValue": "17 C / 29 C",
"rangeLimit": "-40 C / 65 C"
}
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 290
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "healthDiagnosticShow",
"inputs": [
{
"healthitem": "CPU"
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 291
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
[
{
"origin": "LM1",
"category": "CPU Usage",
"item": "Utilization (%)",
"minMaxValue": "0 / 16",
"rangeLimit": "0 / 100",
"healthState": "Normal",
"currentValue": "4"
},
{
"origin": "LM2",
"category": "CPU Usage",
"item": "Utilization (%)",
"minMaxValue": "0 / 28",
"rangeLimit": "0 / 100",
"healthState": "Normal",
"currentValue": "1"
}
]
Request to display health diagnostic information for memory usage on a 6500 device:
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 292
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "healthDiagnosticShow",
"inputs": [
{
"shelf":"11",
"group":"9",
"healthitem": "memory-usage"
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 293
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"11-9-LM2RAM (KB)": {
"origin": "LM2",
"category": "Memory Usage",
"healthState": "Normal",
"group": "9",
"shelf": "11",
"currentValue": "483029",
"item": "RAM (KB)",
"rangeLimit": "- / 981934",
"minMaxValue": "- / 483084"
},
"11-9-LM2SAOS (KB)": {
"origin": "LM2",
"category": "Memory Usage",
"healthState": "Normal",
"group": "9",
"shelf": "11",
"currentValue": "483029",
"item": "SAOS (KB)",
"rangeLimit": "- / 981934",
"minMaxValue": "- / 483084"
}
}
/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 294
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "controlPlaneProtocolShow",
"inputs": [
{
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Response
{
"81-7-ldp_timers": {
"ldpGrMaxPeerReconnect(sec)": 180,
"ldpGrMaxPeerRecovery(sec)": 240,
"group": "7",
"ldpHelloHoldTime(sec)": 180,
"shelf": "81",
"ldpGrReconnectTime(sec)": 90,
"ldpGrRecoveryTime(sec)": 180,
"ldpKeepaliveHoldTime(sec)": 180
},
"81-7-rsvp-te-protocol-parameters": {
"rsvpteFrrCapability": 3,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 295
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"rsvpteRsvpGrMode": "n/a",
"group": "7",
"rsvpteRefreshInterval(sec)": 30,
"rsvpteRsvpAdminStatus": "up",
"rsvpteLspSetupPriority": 7,
"rsvpteRsvpOperStatus": "up",
"rsvpteUseHopbyHop": "true",
"rsvpteRsvpGrAdminStatus": "false",
"shelf": "81",
"rsvpteLspHoldingPriority": 0,
"rsvpteBlockadeMultiple": 2,
"rsvpteRowStatus": "active",
"rsvpteRsvpExtention": 1,
"rsvpteRefresh Multiple": 3
},
"81-7-rsvp-te_global_state_timers": {
"rsvpteRsvpResvTearConfRx": 0,
"rsvpteRsvpPathRx": 0,
"rsvpteRsvpUnknownTx": 0,
"rsvpteRsvpPathErrorTx": 0,
"rsvpteRetryInterval(sec)": 3,
"rsvpteRestartTime(sec)": 60,
"rsvpteRsvpResvConfTx": 0,
"rsvpteRsvpHelloACKTx": 0,
"rsvpteRsvpResvConfRx": 0,
"rsvptePWRecoveryTime(sec)": 180,
"rsvpteRsvpResvTx": 0,
"rsvpteRsvpResvTearRx": 0,
"rsvpteRsvpResvRx": 2824,
"rsvpteRsvpHelloRx": 0,
"group": "7",
"rsvpteRetryMaxDefaul": 10,
"rsvpteRsvpDiscardedRx": 0,
"rsvpteTunnelRecoveryTime(sec)": 120,
"rsvpteRsvpHelloTx": 0,
"rsvpteTotalActivationPeriod(sec)": "infinite",
"rsvpteRsvpPathTearTx": 0,
"rsvpteRsvpUnknownRx": 0,
"rsvpteRsvpResvErrorRx": 0,
"rsvpteRetryInfiniteState": "on",
"rsvpteRsvpResvErrorTx": 0,
"rsvpteRsvpHelloACKRx": 0,
"rsvptePseudowireStatus": "on",
"rsvpteRsvpPathTearRx": 0,
"rsvpteRsvpResvTearConfTx": 0,
"rsvpteRsvpCorruptPktDrop": 0,
"rsvpteRsvpSRefreshRx": 0,
"rsvpteRsvpPathTx": 2795,
"rsvpteRsvpPathErrorRx": 0,
"shelf": "81",
"rsvpteRsvpSRefreshTx": 0,
"rsvptePseudowireCapability": "on",
"rsvpteActivationInterval(sec)": 300,
"rsvpteRsvpTearTx": 0
},
"81-7-ldp_global_settings": {
"grMode": "n/a",
"group": "7",
"ldpAdminState": "enabled",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 296
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"ldpOperState": "enabled",
"shelf": "81",
"ldpGrAdminState": "disabled"
},
"81-7-isis_instance_details": {
"isis#ofInterfaceAttachments": 3,
"isisArea": "49.0001",
"isisLspMaxLifetime(secs)": 1200,
"shelf": "81",
"isisGRMaxL1DbSyncTime": 60,
"isisGRMaxRecoveryTime": 65535,
"isisSystemId(fromLoopbackIp)": "0010:0117:0081",
"isisTEState": "enable",
"grMode": "helper",
"isisAreaInstanceName": "ce_03",
"isisAreaAuthenticationType": "none",
"isisGRMaxRestartTime": 10,
"isisDBMergedUpdates": 0,
"isisAreaPassword": "not-set",
"isisDBPendingUpdates": 0,
"isisTERouterId": "1.1.170.81",
"isisSpfThresholdRestartLimit": 7,
"isisDomainName": "",
"group": "7",
"isisSpfMaxDelay": 1200,
"isisAreaISSnpAuthentication": "yes",
"isisSpfThresholdUpdateStart": 20,
"isisHostName": "\"65PTS-0581-A23\"",
"isisLevel": "l1",
"isisIndex": 3,
"isisDCSysInstance(internal)": 3,
"isisSpfThresholdUpdateRestart": 20,
"isisAdminState": "enable",
"isisAreaObjectIndex": 3,
"isisLspRefreshInterval(secs)": 900,
"isisAreaISSendOnly": "no"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 297
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "controlPlaneProtocolShow",
"inputs": [
{
"data":[
{
"attributes":{
"protocols":[
"ldp"
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 298
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"ldp_global_settings": {
"grMode": "n/a",
"ldpGrAdminState": "disabled",
"ldpAdminState": "enabled",
"ldpOperState": "enabled"
},
"ldp_timers": {
"ldpGrMaxPeerReconnect(sec)": 180,
"ldpGrMaxPeerRecovery(sec)": 240,
"ldpHelloHoldTime(sec)": 180,
"ldpGrReconnectTime(sec)": 0,
"ldpGrRecoveryTime(sec)": 0,
"ldpKeepaliveHoldTime(sec)": 180
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 299
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "controlPlaneProtocolShow",
"inputs": [
{
"shelf":"81",
"group":"7",
"data":[
{
"attributes":{
"protocols":[
"ldp"
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 300
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"81-7-ldp_timers": {
"ldpGrMaxPeerReconnect(sec)": 180,
"ldpGrMaxPeerRecovery(sec)": 240,
"group": "7",
"ldpHelloHoldTime(sec)": 180,
"shelf": "81",
"ldpGrReconnectTime(sec)": 90,
"ldpGrRecoveryTime(sec)": 180,
"ldpKeepaliveHoldTime(sec)": 180
},
"81-7-ldp_global_settings": {
"grMode": "n/a",
"group": "7",
"ldpAdminState": "enabled",
"ldpOperState": "enabled",
"shelf": "81",
"ldpGrAdminState": "disabled"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 301
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Attributes:
ACTION ATTRIBUTES TYPE VALUES DESCRIPTION
create
profileName string
setupHoldPriorityVal 0-7
ue
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 302
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
colourGroupIncludeA string
ny
colourGroupIncludeA string
ll
colourGroupExclude string
Any
/configmgmt/api/v1/jobs
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 303
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"data": [
{
"attributes":{
"action": "create",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":50,
"linkPreference":"no",
"affinitySource":"user",
"colourGroupIncludeAny":"FB_BLUE",
"colourGroupIncludeAll":"FB_RED",
"affinityDisjoint":"no",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 304
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request:
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"shelf":"81",
"group":"7",
"data": [
{
"attributes":{
"action": "create",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":50,
"linkPreference":"no",
"affinitySource":"user",
"colourGroupIncludeAny":"FB_BLUE",
"colourGroupIncludeAll":"FB_RED",
"affinityDisjoint":"no",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 305
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Users can provide an optional property of remoteNode to allow MCP to automatically set the
linkBypassSRLG based on that information.
To create FB profile with SRLG values on the Network element, execute the CLI command:
To unset the fb profile with SRLG values on the Network element, execute the CLI command:
Attributes:
Create FB profile
Action: Create
Attributes: remoteNEName, shareSrlgNode, shareSrlgLink
Type: string, list, list
Values: none, none, none
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 306
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Description: none, List contains node SRLG values, List contains link SRLG values
Update/Set FB profile
Action: Set
Attributes: remoteNEName, shareSrlgNode, shareSrlgLink
Type: string, list, list
Values: none, none, none
Description: none, List contains node SRLG values, List contains link SRLG values
Unset FB profile
Action: Set
Attributes: shareSrlgNode, shareSrlgLink
Type: none, none
Values: none, none
Description: List contains node SRLG values, List contains link SRLG values
/configmgmt/api/v1/jobs
Sample request:
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"data": [
{
"attributes":{
"action": "create",
"profileName":"fb_profile",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":50,
"linkPreference":"no",
"affinitySource":"user",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 307
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"affinityDisjoint":"no",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal",
"shareSrlgNode": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 484
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 485
}
],
"shareSrlgLink": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 486
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 487
}
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 308
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"shelf": "11",
"group": "9"
"data": [
{
"attributes":{
"action": "create",
"profileName":"fb_profile",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":50,
"linkPreference":"no",
"affinitySource":"user",
"affinityDisjoint":"no",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal",
"shareSrlgNode": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 484
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 309
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"srlgRiskSummary": 1,
"srlgRiskValue": 485
}
],
"shareSrlgLink": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 486
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 487
}
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 310
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"data": [
{
"attributes":{
"action": "update",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":55,
"linkPreference":"yes",
"affinitySource":"user",
"affinityDisjoint":"yes",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal",
"shareSrlgNode": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 484
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 485
}
],
"shareSrlgLink": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 486
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 487
}
]
}
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 311
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"shelf": "11",
"group": "9",
"data": [
{
"attributes":{
"action": "update",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":55,
"linkPreference":"yes",
"affinitySource":"user",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 312
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"affinityDisjoint":"yes",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal",
"shareSrlgNode": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 484
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 485
}
],
"shareSrlgLink": [
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 486
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 487
}
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 313
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 314
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"data": [
{
"attributes":{
"action": "unset",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":null,
"bandwidthPercentageValue":null,
"linkPreference":null,
"affinitySource":null,
"affinityDisjoint":null,
"setupHoldPrioritySource":null,
"srlgMode":null,
"shareSrlgLink":null,
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 315
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 316
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"shelf": "11",
"group": "9",
"data": [
{
"attributes":{
"action": "create",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":55,
"linkPreference":"yes",
"affinitySource":"user",
"affinityDisjoint":"yes",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 317
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
[force-apply]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 318
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
[bandwidth-percentage-source
bandwidth-percentage-value
[setup-hold-priority-source
setup-hold-priority-value]
[affinity-source
< color-group-include-all |
color-group-include-any |
color-group-exclude-any> ]
[srlg-mode]
[link-preference]
Attributes:
ACTION ATTRIBUTES TYPE VALUES DESCRIPTION
update
profileName string
setupHoldPriorityVal 0-7
ue
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 319
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
colourGroupIncludeA string
ny
colourGroupIncludeA string
ll
colourGroupExclude string
Any
update
profileName
bandwidthPercentag
eSource
bandwidthPercentag
eValue
linkPreference
affinitySource
affinityDisjoint
setupHoldPrioritySou
rce
setupHoldPriorityVal
ue
srlgMode
colourGroupIncludeA
ny
colourGroupIncludeA
ll
colourGroupExclude
Any
/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 320
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request:
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"data": [
{
"attributes":{
"action": "update",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":100,
"linkPreference":"yes",
"affinitySource":"user",
"affinityDisjoint":"yes",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 321
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 322
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"shelf":"81",
"group":"7",
"data": [
{
"attributes":{
"action": "update",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":"user",
"bandwidthPercentageValue":100,
"linkPreference":"yes",
"affinitySource":"user",
"affinityDisjoint":"yes",
"setupHoldPrioritySource":"user",
"srlgMode":"maximal"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 323
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 324
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"data": [
{
"attributes":{
"action": "unset",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":null,
"bandwidthPercentageValue":null,
"linkPreference":null,
"affinitySource":null,
"affinityDisjoint":null,
"setupHoldPrioritySource":null,
"srlgMode":null
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 325
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 326
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"shelf":"81",
"group":"7",
"data": [
{
"attributes":{
"action": "unset",
"profileName":"fb_test_affinity",
"bandwidthPercentageSource":null,
"bandwidthPercentageValue":null,
"linkPreference":null,
"affinitySource":null,
"affinityDisjoint":null,
"setupHoldPrioritySource":null,
"srlgMode":null
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 327
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
Attributes:
Action: deleted
Attributes: profileName
Type: string
Values: none
Description: none
/configmgmt/api/v1/jobs
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 328
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"data": [
{
"attributes":{
"action": "delete",
"profileName": "fb_profile"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 329
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileConfig",
"inputs": [
{
"shelf":"81",
"group":"7",
"data": [
{
"attributes":{
"action": "delete",
"profileName": "fb_profile"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 330
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
To display all Auto FB Profiles on the Network element, execute the CLI command:
To display specific Auto FB Profile on the Network element, execute the CLI command:
Attributes:
Action: deleted
Attributes: profileName
Type: string
Values: none
Description: none
/configmgmt/api/v1/jobs
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 331
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileShow",
"inputs": [
{
"data": [
{
"attributes":{
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample response:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 332
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"11-9-DefaultAutoFbProfile": {
"profileName": "DefaultAutoFbProfile",
"userCount": 4,
"fbProfileIndex": 1,
"group": "9",
"shelf": "11"
},
"11-9-test_fb1": {
"profileName": "test_fb1",
"userCount": 0,
"fbProfileIndex": 2,
"group": "9",
"shelf": "11"
}
}
Sample response:
{
"11-9-DefaultAutoFbProfile": {
"profileName": "DefaultAutoFbProfile",
"userCount": 4,
"fbProfileIndex": 1,
"group": "9",
"shelf": "11"
},
"11-9-test_fb1": {
"profileName": "test_fb1",
"userCount": 0,
"fbProfileIndex": 2,
"group": "9",
"shelf": "11"
}
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 333
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "fbProfileShow",
"inputs": [
{
"shelf":"81",
"group":"7",
"data": [
{
"attributes":{
"profileName":"fb_test_affinity"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample response:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 334
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
[
{
"linkPreference": "no",
"setupHoldPrioritySource": "user",
"setupHoldPriority": 0,
"bandwidthPercentageSource": "user",
"affinityDisjoint": "no",
"colourGroupIncludeAll": "-",
"affinitySource": "fast_reroute object",
"protectedInterface": "ipCtrl_1, ipCtrl_5, ipCtrl_6, ipCtrl_3",
"fbProfileIndex": 1,
"bandwidthPercentageValue": 0,
"profileName": "fb_test_affinity",
"colourGroupIncludeAny": "-",
"srlgMode": "none",
"colourGroupExcludeAny": "-",
"userCount": 4
}
]
Sample response:
{
"11-9-DefaultAutoFbProfile": {
"linkPreference": "no",
"setupHoldPrioritySource": "user",
"setupHoldPriority": 0,
"bandwidthPercentageSource": "user",
"affinityDisjoint": "no",
"colourGroupIncludeAll": "-",
"affinitySource": "fast_reroute object",
"protectedInterface": "ipCtrl_1, ipCtrl_5, ipCtrl_6, ipCtrl_3",
"fbProfileIndex": 1,
"bandwidthPercentageValue": 0,
"profileName": "fb_test_affinity",
"colourGroupIncludeAny": "-",
"srlgMode": "none",
"colourGroupExcludeAny": "-",
"userCount": 4,
"group": "9",
"shelf": "11"
}
}
To display all FRR Profiles on the network element, execute the CLI command:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 335
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
To display specific FRR Profile on the network element, execute the CLI command:
Attributes:
Action: none
Attributes: profileName
Type: string
Values: none
Description: none
/configmgmt/api/v1/jobs
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 336
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "frrProfileShow",
"inputs": [
{
"data": [
{
"attributes":{
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample response:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 337
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
[
{
"bwProtection": "no",
"nodeProtection": "no",
"protectionMethod": "facility",
"profileName": "DefaultFrrProfile",
"userCount": 0
},
{
"bwProtection": "no",
"nodeProtection": "no",
"protectionMethod": "detour",
"profileName": "frr_profile",
"userCount": 0
},
{
"bwProtection": "no",
"nodeProtection": "no",
"protectionMethod": "facility",
"profileName": "frr_prof",
"userCount": 0
}
]
Sample response:
{
"11-9-DefaultFrrProfile": {
"bwProtection": "no",
"nodeProtection": "no",
"group": "9",
"shelf": "11",
"profileName": "DefaultFrrProfile",
"protectionMethod": "facility",
"userCount": 0
},
"11-9-frr_prof": {
"bwProtection": "no",
"nodeProtection": "no",
"group": "9",
"shelf": "11",
"profileName": "frr_prof",
"protectionMethod": "facility",
"userCount": 0
}
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 338
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "frrProfileShow",
"inputs": [
{
"shelf":"81",
"group":"7",
"data": [
{
"attributes":{
"profileName":"frr_profile"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample response:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 339
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
[
{
"bwProtection": "no",
"frrProfileIndex": 2,
"setupPriority": 0,
"hopLimit": 255,
"colourGroupIncludeAll": "0",
"protectionMethod": "facility",
"bandwidth": 1000,
"nodeProtection": "no",
"holdPriority": 0,
"colourGroupIncludeAny": "0",
"colourGroupExcludeAny": "0",
"profileName": "frr_profile",
"userCount": "0"
}
]
Sample response:
{
"11-9-DefaultFrrProfile space": {
"bwProtection": "no",
"frrProfileIndex": 1,
"setupPriority": 0,
"hopLimit": 255,
"colourGroupIncludeAll": "-",
"protectionMethod": "facility",
"group": "9",
"bandwidth": 1000,
"nodeProtection": "yes",
"holdPriority": 0,
"shelf": "11",
"profileName": "frr_profile",
"colourGroupIncludeAny": "-",
"colourGroupExcludeAny": "-",
"userCount": "0"
}
}
To set facility bypass profile to an ip interface on the Network element, execute the CLI command:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 340
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
To unset facility bypass profile to an ip interface on the Network element, execute the CLI command:
Attributes:
Action: update
Attributes: interfaceName, frrAutoFbProfile
Type: string. string
Values: none, none
Description: none, none
Action: Unset
Attributes: interfaceName
Type: string
Values: none
Description: none
/configmgmt/api/v1/jobs
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 341
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"data": [
"type": "ipInterfaces",
"attributes": {
"action": "update",
"interfaceName": "ip_Ctrl2",
"frrAutoFbProfile": "fb_profile"
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 342
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"shelf": "11",
"group": "9",
"data": [
"type": "ipInterfaces",
"attributes": {
"action": "update",
"interfaceName": "ip_Ctrl2",
"frrAutoFbProfile": "fb_profile"
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 343
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"data": [
"type": "ipInterfaces",
"attributes": {
"action": "unset",
"interfaceName": "ip_Ctrl2",
"frrAutoFbProfile": null
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 344
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "portInterfaceConfig",
"inputs": [
{
"shelf": "11",
"group": "9",
"data": [
"type": "ipInterfaces",
"attributes": {
"action": "unset",
"interfaceName": "ip_Ctrl2",
"frrAutoFbProfile": "fb_profile"
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 345
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
when using strict SRLG routing of dynamic MPLS corouted tunnels and unidirectional Facility Bypass (FB)
tunnels.
The list of SRLG values is optional and is entered to allow MCP to automatically identify SRLG values that
are permitted to be shared when creating co-routed tunnels, FB profiles, or FB tunnels. This shareable
SRLG is not propagated/stored to the node level and is stored only at MCP level.
For example, the shareable SRLG value can allow you to identify the ROADM risk that has has to be
shared between primary and backup even during strict SRLG diversity.
MCP will automatically detect the SRLG values being used if they are configured on the node, and will use
these for any protected, dynamic corouted MPLS tunnel with strict/mandatory diversity constraints.
Note: The SRLG value will follow the 32-bit-based mapping the operator defines instead of being a flat 32
bit integer value.
The set of shareable or permitted SRLG values is managed as a list, and so the MCP REST API allows you
to:
You can also use the API to query a node and retrieve the data presently contained in the list.
GET
{BP_SERVER}/bpocore/market/api/v1/resources?exactTypeId=ifd.v2.resourceTypes.MplsOperationConta
iner
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 346
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"items": [
{
"id": "5ad8c359-63a0-4d51-85d3-790bcd500a89",
"label": "Resource for ifd.v5.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v5.resourceTypes.MplsOperationContainer",
"productId": "5ad8c341-3dd4-4b8b-86c9-951c969a8884",
"tenantId": "78bb407f-1023-4b89-a615-a4b569a00b77",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-04-19T16:27:05.982Z",
"createdAt": "2018-04-19T16:27:05.766Z",
"autoClean": false
},
...
You can then use this ID to issue a REST API query to start any of the SRLG operations. This is done with
a call resembling:
POST {BP_SERVER}/bpocore/market/api/v1/resources/{RID}/operations/
The call will include a JSON body particular to each type of operation, as described later.
All SRLG operations are Asynchronous. To verify whether the ongoing operation is complete, and whether
it was successful or not, you must issue GET requests using the operation ID returned by the starting
request:
GET {BP_SERVER}/bpocore/market/api/v1/resources/{RID}/operations/{OID}
where RID is the OperationContainer resource ID and OID is the Operations ID returned by the operation
request.
The 'state' field of that reply indicates if the operation is complete and 'successful' or 'failed'. If supported,
the response will also provide the replied data (e.g. SRLG value list) in the 'outputs' field (as indicated
below)
GET {BP_SERVER}/bpocore/market/api/v1/resources/5ad8c359-63a0-4d51-85d3-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 347
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
790bcd500a89/operations/5ad8c3a8-0be1-469b-968a-e19925887f0a
{
"id": "5ad8c3a8-0be1-469b-968a-e19925887f0a",
"resourceId": "5ad8c359-63a0-4d51-85d3-790bcd500a89",
"interface": "getPermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
}
},
"outputs": {
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgValue": "0x04400017",
"srlgRegionId": 1,
"srlgRiskValue": 23,
"srlgRiskType": "ROADM Node"
}
]
},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T16:28:24.547Z",
"updatedAt": "2018-04-19T16:28:25.041Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
• "srlgValues": [
◦ signifies the beginning of the SRLG values associated with the target node, in object format
• "srlgValue": "0x04400017"
◦ the full numerical value is provided along with the broken down fields
• "srlgRiskType": "ROADM Node"
◦ note the enum-name translation of the numerical value
• "state": "successful",
◦ must ensure the state is successfull, if executing, must poll anew
When initiating an IFD Operation, a JSON-structured body is given with two fields;
'interface' names the operation to be performed, and 'inputs' is a structure whose fields provide the
parameters to the operation.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 348
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
The provided 'inputs' has one field, 'networkElement', with one sub-field 'name' idenfying the target node.
The successful reply ('outputs') also contains one field, 'srlgValues', which is a list of SRLG objects as
shown in earlier examples (for example [ {'srlgRiskType': 'ROADM Node', …}, … ] ). If no SRLG values are
present, or if the values cannot be retrieved for any reason, an empty list is returned. If values are present,
note that the individual elements of the list will provide all the fields interpreted from the SRLG value by
the schema, as well as the 'srlgValue' field with the numerical form of the value.
For example, a call to retrieve the current set of SRLG values stored on a node would resemble the
following:
POST {BP_SERVER}/bpocore/market/api/v1/resources/5ad8c359-63a0-4d51-85d3-
790bcd500a89/operations
{
"interface": "getPermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 349
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"id": "5ad8c6aa-803e-42bf-a8aa-fedb6e5a8ec1",
"resourceId": "5ad8c359-63a0-4d51-85d3-790bcd500a89",
"interface": "getNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
}
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T16:41:14.288Z",
"updatedAt": "2018-04-19T16:41:14.288Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
For the 'replace' action, the list of given SRLG values included in the call will replace the list of SRLG
values current stored on the target node. If the list on the node contains no values, then these values
simply populate the list.
For example:
POST {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 350
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "replace",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
}
]
}
}
{
"id": "5ad8e3d2-d779-41ab-be35-dc44f4e53eb8",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "replace",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:45:39.017Z",
"updatedAt": "2018-04-19T18:45:39.017Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
GET {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations/5ad8e3d2-d779-41ab-be35-dc44f4e53eb8
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 351
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"id": "5ad8e3d2-d779-41ab-be35-dc44f4e53eb8",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "replace",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
}
]
},
"outputs": {
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgValue": "0x044000ff",
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
}
]
},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:45:39.017Z",
"updatedAt": "2018-04-19T18:45:39.518Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
POST {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 352
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "add",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 22,
"srlgRiskType": "Card"
}
]
}
}
{
"id": "5ad8e496-22c0-4ad3-aa4d-001161ed5378",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "add",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 22,
"srlgRiskType": "Card"
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:48:54.127Z",
"updatedAt": "2018-04-19T18:48:54.127Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
GET {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations/5ad8e496-22c0-4ad3-aa4d-001161ed5378
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 353
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"id": "5ad8e496-22c0-4ad3-aa4d-001161ed5378",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "add",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 22,
"srlgRiskType": "Card"
}
]
},
"outputs": {
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgValue": "0x044000ff",
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
},
{
"srlgRiskSummary": 0,
"srlgValue": "0x05800016",
"srlgRegionId": 1,
"srlgRiskValue": 22,
"srlgRiskType": "Card"
}
]
},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:48:54.127Z",
"updatedAt": "2018-04-19T18:48:54.794Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 354
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
POST {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations
{
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "remove",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 355
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"id": "5ad8e5ec-f970-4934-96e4-2aeb1b437311",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "remove",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:54:36.624Z",
"updatedAt": "2018-04-19T18:54:36.624Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
GET {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations/5ad8e5ec-f970-4934-96e4-2aeb1b437311
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 356
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"id": "5ad8e5ec-f970-4934-96e4-2aeb1b437311",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "remove",
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgRegionId": 1,
"srlgRiskValue": 255,
"srlgRiskType": "ROADM Node"
}
]
},
"outputs": {
"srlgValues": [
{
"srlgRiskSummary": 0,
"srlgValue": "0x05800016",
"srlgRegionId": 1,
"srlgRiskValue": 22,
"srlgRiskType": "Card"
}
]
},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:54:36.624Z",
"updatedAt": "2018-04-19T18:54:37.112Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
POST {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 357
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "delete"
}
}
{
"id": "5ad8e6d6-346b-48ed-ab00-9e451798c2df",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "delete"
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:58:30.504Z",
"updatedAt": "2018-04-19T18:58:30.504Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
GET {BP_SERVER}/bpocore/market/api/v1/resources/5ad8e33d-ca63-4830-b677-
ca7d918bcb2d/operations/5ad8e6d6-346b-48ed-ab00-9e451798c2df
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 358
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"id": "5ad8e6d6-346b-48ed-ab00-9e451798c2df",
"resourceId": "5ad8e33d-ca63-4830-b677-ca7d918bcb2d",
"interface": "updatePermittedNodalSrlg",
"inputs": {
"networkElement": {
"name": "3930_MCP_4"
},
"operation": "delete"
},
"outputs": {
"srlgValues": []
},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-04-19T18:58:30.504Z",
"updatedAt": "2018-04-19T18:58:31.024Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
• SRLG
• Link Cost
• Link Cost
• Affinity values
The MPLS control plane can use these properties when computing optimal network paths.
• SRLG Attributes
• Updating an SRLG value
• Updating multiple SRLG values
• Updating SRLG value ranges
• Un-setting an SRLG value
• Adding an SRLG value
• Removing an SRLG value
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 359
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
SRLG Attributes
When setting SRLG values, the API call uses the following attributes:
update
srlgRegionId integer
srlgRiskType integer
srlgRiskSummary integer
srlgRiskValue integer
linkCost integer
resourceColorGrou string
pName
unset
linkCost integer
resourceColorGrou string
pName
add/remove
srlgRegionId integer
srlgRiskType integer
srlgRiskSummary integer
srlgRiskValue integer
These values in an API call body, together with values for link cost, and affinity, would resemble the
following example:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 360
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"srlgValues":[
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
},
],
"linkCost": 200,
"interfaceName": "if",
"resourceColorGroupName": "tdm_color_gr"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 361
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"srlgValues":[
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
}
],
"linkCost": 200,
"interfaceName": "if",
"resourceColorGroupName": "tdm_color_gr"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{MANAGEMENT_SESSION_ID}"
}
]
}
}
},
"included": [
{
"id": "{MANAGEMENT_SESSION_ID}",
"type": "networkElement",
"attributes": {
"ncId": "{MANAGEMENT_SESSION_ID}",
"neName": "{NE_NAME}",
"ipAddress": "{NE_IP_ADDRESS}",
"neType": "{NE_TYPE}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 362
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"srlgValues":[
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 484
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 485
}
],
"linkCost": 200,
"interfaceName": "if",
"resourceColorGroupName": "tdm_color_gr"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 363
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
"type": "networkConstructs",
"id": "{MANAGEMENT_SESSION_ID}"
}
]
}
}
},
"included": [
{
"id": "{MANAGEMENT_SESSION_ID}",
"type": "networkElement",
"attributes": {
"ncId": "{MANAGEMENT_SESSION_ID}",
"neName": "{NE_NAME}",
"ipAddress": "{NE_IP_ADDRESS}",
"neType": "{NE_TYPE}"
}
}
]
}
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"srlgValues":[
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 485
},
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 490
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 364
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
],
"isSrlgValuesRange": true,
"linkCost": 200,
"interfaceName": "if",
"resourceColorGroupName": "tdm_color_gr"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{MANAGEMENT_SESSION_ID}"
}
]
}
}
},
"included": [
{
"id": "{MANAGEMENT_SESSION_ID}",
"type": "networkElement",
"attributes": {
"ncId": "{MANAGEMENT_SESSION_ID}",
"neName": "{NE_NAME}",
"ipAddress": "{NE_IP_ADDRESS}",
"neType": "{NE_TYPE}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 365
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "unset",
"srlgValues": null,
"linkCost": null,
"resourceColorGroupName": null,
"interfaceName": "if"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{MANAGEMENT_SESSION_ID}"
}
]
}
}
},
"included": [
{
"id": "{MANAGEMENT_SESSION_ID}",
"type": "networkElement",
"attributes": {
"ncId": "{MANAGEMENT_SESSION_ID}",
"neName": "{NE_NAME}",
"ipAddress": "{NE_IP_ADDRESS}",
"neType": "{NE_TYPE}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 366
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 367
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "add",
"interfaceName": "if",
"srlgValues":[
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
}
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{MANAGEMENT_SESSION_ID}"
}
]
}
}
},
"included": [
{
"id": "{MANAGEMENT_SESSION_ID}",
"type": "networkElement",
"attributes": {
"ncId": "{MANAGEMENT_SESSION_ID}",
"neName": "{NE_NAME}",
"ipAddress": "{NE_IP_ADDRESS}",
"neType": "{NE_TYPE}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 368
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 369
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfaceConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "remove",
"interfaceName": "if",
"srlgValues":[
{
"srlgRegionId": 6,
"srlgRiskType": 7,
"srlgRiskSummary": 1,
"srlgRiskValue": 483
}
]
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{MANAGEMENT_SESSION_ID}"
}
]
}
}
},
"included": [
{
"id": "{MANAGEMENT_SESSION_ID}",
"type": "networkElement",
"attributes": {
"ncId": "{MANAGEMENT_SESSION_ID}",
"neName": "{NE_NAME}",
"ipAddress": "{NE_IP_ADDRESS}",
"neType": "{NE_TYPE}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 370
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
There are two related operations that you can invoke with this API call: "inMaintenance" and
"outMaintenance". Each will change the connectivity state of a specific node’s ManagementSession:
GET/discovery/api/v4/managementSessions
The API returns the list of management sessions and their Connection state.
PATCH/discovery/api/v4/managementSessions/{sessionId}
In each case, the body of the API call will include an operation specifier resembling the following:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 371
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"operations" : [
{
"op": "{operationName}"
}]
}
For example:
{
"operations" : [
{
"op": "inMaintenance"
}]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 372
Blue Planet MCP API Reference Guide, Release 18.06 Network element management
{
"data": {
"id": "0a13aa66-8d13-449d-8675-29ceb1574a30",
"type": "managementSessions",
"attributes": {
"displayData": {
"displayState": "CONNECTED"
},
"ipAddress": "10.182.129.189",
"typeGroup": "PN6x",
"name": "VAN",
"profile": "6d0419a5-0433-4a97-8708-a8e5f3951661",
"resourceType": "3930",
"discoveryState": "COMPLETED",
"enrollmentTime": "2018-09-06T11:41:57.912+0000",
"created": "2018-09-06T11:41:41.049+0000",
"lastResyncTime": "2018-09-19T09:09:35.579+0000",
"associationState": "GOA",
"pokeCount": 0,
"pokeInterval": 0,
"lastPokeTime": 0,
"failureUpdatedTime": 1537348175579,
"managementAddresses": [
"10.182.129.189",
"4.4.4.4"
],
"sessionType": "gatewayNE",
"onPreferredGNE": true,
"connectionAddress": "10.182.129.189",
"preferredConnectionAddress": {
"address": "10.182.129.189",
"cost": 0
},
"connectionStates": [
{
"protocolType": "cli",
"connectionState": "CONNECTED"
},
{
"protocolType": "snmp",
"connectionState": "CONNECTED"
}
]
},
"relationships": {
"preferredGateway": {
"data": {
"type": "managementSessions",
"id": "0a13aa66-8d13-449d-8675-29ceb1574a30"
}
}
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 373
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
• troubleshoot any aspect of configuration to determine whether a device has been configured correctly
• run a "show" type of command to view the results returned by the network element.
The results may be about a configuration aspect or any run time states (for example, the results of
routing tables).
Tasks include:
Use a custom profile, if you want to use variables with specific values while executing the custom
script.
{
"commands": [
"port set port 1 description ${description}"
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 374
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
description=MCPTest2
Sample request
POST {{MCP_SERVER}}/configmgmt/api/v1/jobs
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": 10,
"scheduleTime": "2016-07-02T15:04:06Z",
"scripts": [
{
"scriptName": "cliCutThrough",
"inputs": [
{
"cmdFile": "createProfileScript1",
"protocolType": "cli"
}
],
"relationships": {
"profile": {
"data": {
"type": "profiles",
"id": "0"
}
},
"userdata": {
"data": {
"type": "userdata",
"id": "0"
}
}
}
}
]
},
"relationships": {
"connectionAttributes": {
"data": [
{
"type": "connectionAttributes",
"id": "G4218-1"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 375
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
}
},
"included": [
{
"id": "G4218-1",
"type": "connectionAttributes",
"attributes": {
"neName": "G4218-1",
"neType": "6500",
"typeGroup": "Ciena6500"
}
},
{
"type": "profiles",
"id": "0",
"attributes": {
"file": "cmdProfile1"
}
},
{
"type": "userdata",
"id": "0",
"attributes": {
"description": "My Test"
}
}
]
}
Sample response
{
"jobId": "bc1328ab-7649-4162-8fac-920061f5f578"
}
Sample request
POST {{MCP_SERVER}}/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 376
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": 10,
"scheduleTime": "1522657184615",
"scripts": [
{
"scriptName": "cliCutThrough",
"inputs": [
{
"cmdFile": "createProfileScript1",
"protocolType": "cli"
}
],
"relationships": {
"userdata": {
"data": {
"type": "userdata",
"id": "0"
}
}
}
}
]
},
"relationships": {
"connectionAttributes": {
"data": [
{
"type": "connectionAttributes",
"id": "65SD_2124"
}
]
}
}
},
"included": [
{
"type": "userdata",
"id": "0",
"attributes": {
"description": "My Test"
}
},
{
"id": "65SD_2124",
"type": "connectionAttributes",
"attributes": {
"neName": "65SD_2124",
"neType": "6500",
"typeGroup": "Ciena6500"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 377
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
Sample response
{
"jobId": "a0efb41c-fd37-446f-9830-bb13d855aa2a"
}
Sample request
GET {{MCP_SERVER}}/configmgmt/api/v1/jobs/{{job_id}}
• troubleshoot any aspect of a configuration (whether supported by MCP or not) to determine whether a
device has been configured correctly, and
• run a "show" type of command to view the results returned by the network element of any run time
states (for example, the results of routing tables).
Use the Network Element Configuration API to perform the following tasks:
You can also update an aging timer to clear the results of custom scripts from the database. Use the
Global Config Service API to perform the following tasks:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 378
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
Sample request
POST {{MCP_SERVER}}/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 379
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
"data": {
"type": "jobs",
"attributes": {
"maxConnections": 10,
"scheduleTime": "2016-07-02T15:04:06Z",
"scripts": [
{
"scriptName": "cliCutThrough",
"inputs": [
{
"cmdFile": "aisShow",
"protocolType": "cli"
}
]
}
]
},
"relationships": {
"connectionAttributes": {
"data": [
{
"type": "connectionAttributes",
"id": "{{NE_NAME0}}"
},
{
"type": "connectionAttributes",
"id": "{{NE_NAME1}}"
}
]
}
}
},
"included": [
{
"id": "{{NE_NAME0}}",
"type": "connectionAttributes",
"attributes": {
"neName": "{{NE_NAME0}}",
"neType": "{{NE_TYPE0}}",
"typeGroup": "{{NE_TYPE_GROUP0}}"
}
},
{
"id": "{{NE_NAME1}}",
"type": "connectionAttributes",
"attributes": {
"neName": "{{NE_NAME1}}",
"neType": "{{NE_TYPE1}}",
"typeGroup": "{{NE_TYPE_GROUP1}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 380
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
Use the following request to get the response of the requested payload. This sample follows from the
previous API call and relates to the execution of a CLI custom script.
Sample request
GET {{MCP_SERVER}}/configmgmt/api/v1/jobs/{{jobId}}
Sample response
{
"jobId": "26ada294-a131-4c64-b02b-fcc4948fba50",
"status": "COMPLETED",
"input": {
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2016-07-02T15:04:06.000+0000",
"scripts": [
{
"scriptName": "cliCutThrough",
"inputs": [
{
"cmdFile": "aisShow",
"protocolType": "cli"
}
]
}
]
},
"relationships": {
"connectionAttributes": {
"data": [
{
"type": "connectionAttributes",
"id": "87_5844n3"
},
{
"type": "connectionAttributes",
"id": "87_5844n2"
}
]
}
}
},
"included": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 381
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
"id": "87_5844n3",
"type": "connectionAttributes",
"attributes": {
"neName": "87_5844n3",
"neType": "8700",
"typeGroup": "PN8x"
}
},
{
"id": "87_5844n2",
"type": "connectionAttributes",
"attributes": {
"neName": "87_5844n2",
"neType": "8700",
"typeGroup": "PN8x"
}
}
]
},
"output": {
"data": {
"type": "jobResults",
"attributes": {
"scriptResults": [
{
"scriptName": "cliCutThrough",
"status": "COMPLETED",
"commandResults": [
{
"command": "cfg-clipush.json",
"result": {
"result": {
"data":
"+------------------------------------------------------------+\n+
AIS GLOBAL PARAMETERS
+\n+------------------------------------------------------------+\n| Admin
State | Enabled |\n+--------------------------
+---------------------------------+",
"result": "success"
},
"parameters": {
"commands": [
"ais show"
]
},
"command": "cfg-clipush.json"
},
"id": "87_5844n2"
},
{
"command": "cfg-clipush.json",
"result": {
"result": {
"data":
"+------------------------------------------------------------+\n+
AIS GLOBAL PARAMETERS
+\n+------------------------------------------------------------+\n| Admin
State | Enabled |\n+--------------------------
+---------------------------------+",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 382
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
"result": "success"
},
"parameters": {
"commands": [
"ais show"
]
},
"command": "cfg-clipush.json"
},
"id": "87_5844n3"
}
]
}
]
}
}
}
}
In the above samples the cmdFile attribute in script input is aisShow. The aisShow is a cli custom script
uploaded into the system with the {{MCP_SERVER}}/configmgmt/api/v1/customScripts API
{
"commands": [
"ais show"
]
}
Use the Global Config Service API to update a property. In the following sample, the property is
'configAsyncJobsAndTasksRetentionDays'.
Sample request
POST {{MCP_SERVER}}/gcs/api/v1/config
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 383
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
[
{
"title": "configAsyncJobsAndTasksRetentionDays",
"name": "configAsyncJobsAndTasksRetentionDays",
"application": "configmgmt",
"partition": "configmgmt",
"value": "2",
"description": "configAsyncJobsAndTasksRetentionDays",
"instance": "-"
}
]
Sample response
[
{
"application": "configmgmt",
"description": "configAsyncJobsAndTasksRetentionDays",
"instance": "-",
"key": "configmgmt/-/configmgmt/configAsyncJobsAndTasksRetentionDays",
"name": "configAsyncJobsAndTasksRetentionDays",
"partition": "configmgmt",
"title": "configAsyncJobsAndTasksRetentionDays",
"value": "2"
}
]
Sample request
PATCH {{MCP_SERVER}}/gcs/api/v1/config
[
{
"title": "configAsyncJobsAndTasksRetentionDays",
"name": "configAsyncJobsAndTasksRetentionDays",
"application": "configmgmt",
"partition": "configmgmt",
"value": "3",
"description": "configAsyncJobsAndTasksRetentionDays",
"instance": "-"
}
]
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 384
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
[
{
"application": "configmgmt",
"description": "configAsyncJobsAndTasksRetentionDays",
"instance": "-",
"key": "configmgmt/-/configmgmt/configAsyncJobsAndTasksRetentionDays",
"name": "configAsyncJobsAndTasksRetentionDays",
"partition": "configmgmt",
"title": "configAsyncJobsAndTasksRetentionDays",
"value": "3"
}
]
Use the Global Config Service API to audit a property. In the following sample, the property is
'auditOperationsRetentionDays'.
Sample request
POST {{MCP_SERVER}}/gcs/api/v1/config
[
{
"title": "auditOperationsRetentionDays",
"name": "auditOperationsRetentionDays",
"application": "configmgmt",
"partition": "configmgmt",
"value": "2",
"description": "auditOperationsRetentionDays",
"instance": "-"
}
]
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 385
Blue Planet MCP API Reference Guide, Release 18.06 Network element scripts
[
{
"application": "configmgmt",
"description": "auditOperationsRetentionDays",
"instance": "-",
"key": "configmgmt/-/configmgmt/auditOperationsRetentionDays",
"name": "auditOperationsRetentionDays",
"partition": "configmgmt",
"title": "auditOperationsRetentionDays",
"value": "2"
}
]
Sample request
PATCH {{MCP_SERVER}}/gcs/api/v1/config
[
{
"title": "auditOperationsRetentionDays",
"name": "auditOperationsRetentionDays",
"application": "configmgmt",
"partition": "configmgmt",
"value": "3",
"description": "auditOperationsRetentionDays",
"instance": "-"
}
]
Sample response
[
{
"application": "configmgmt",
"description": "auditOperationsRetentionDays",
"instance": "-",
"key": "configmgmt/-/configmgmt/auditOperationsRetentionDays",
"name": "auditOperationsRetentionDays",
"partition": "configmgmt",
"title": "auditOperationsRetentionDays",
"value": "3"
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 386
Blue Planet MCP API Reference Guide, Release 18.06 Equipment management
Equipment management
You can manage equipment using MCP REST APIs. The following topics are covered:
Requirements
Sample request
GET {{MCP_SERVER}}/nsi/api/equipment
Sample response
{
"data": [
{
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0::EQPT_1",
"type": "equipment",
"attributes": {
"locations": [
{
"managementType": "tl1",
"shelf": "1"
}
],
"category": "shelf",
"nativeName": "SHELF-1",
"provisionedSpec": {
"hardwareVersion": "1",
"serialNumber": "NNTMHQDP0167",
"manufacturer": "CIENA",
"type": "6500 32-Slot Packet-Optical Shelf Assembly",
"partNumber": "NTK603AA",
"version": "REL1110Z.EY",
"displayLabels": {
"clei": "WOMNH10GRB"
},
"additionalAttributes": {
"eqpWidth": "1"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 387
Blue Planet MCP API Reference Guide, Release 18.06 Equipment management
}
},
"state": "IS",
"cardType": "SHELF",
"siteName": "",
"siteId": "0",
"maintenanceMode": false,
"additionalAttributes": {
"physShelf": "0",
"bayNum": "0",
"rel": " 02 ",
"mdat": "2010-09",
"location": "",
"extendedShelf": "DISABLE",
"subnetName": "",
"primary": "ENABLE"
}
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0"
}
},
"equipmentHolder": {
"data": {
"type": "equipmentHolders",
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0::EQPTHLD_1"
}
}
}
},
{
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0::EQPT_1_10",
"type": "equipment",
"attributes": {
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "10"
}
],
"category": "shelf",
"nativeName": "XC-1-10",
"provisionedSpec": {
"hardwareVersion": "1",
"manufacturer": "CIENA",
"type": "X-Conn 3200G PKT/OTN Type 2",
"partNumber": "NTK616BA",
"additionalAttributes": {
"eqpWidth": "1"
}
},
"state": "OOS",
"secondaryState": "UEQ",
"cardType": "XC",
"maintenanceMode": false,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 388
Blue Planet MCP API Reference Guide, Release 18.06 Equipment management
"additionalAttributes": {
"eqptGroupId": "EQPTGRP-1-9"
}
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0"
}
},
"equipmentHolder": {
"data": {
"type": "equipmentHolders",
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0::EQPTHLD_1_10"
}
}
}
},
...
{
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0::EQPT_1_FAN_46",
"type": "equipment",
"attributes": {
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"subshelf": "FAN",
"slot": "46"
}
],
"category": "shelf",
"nativeName": "",
"installedSpec": {
"hardwareVersion": "1",
"serialNumber": "NNTMPV001PYT",
"manufacturer": "CIENA",
"type": "Fan",
"partNumber": "NTK607AA",
"version": " 01 ",
"displayLabels": {
"clei": "WOCUAMNMAA"
},
"additionalAttributes": {
"eqpWidth": "1"
}
},
"cardType": "FAN",
"maintenanceMode": false
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 389
Blue Planet MCP API Reference Guide, Release 18.06 Equipment management
},
"equipmentHolder": {
"data": {
"type": "equipmentHolders",
"id": "2d7104cc-5add-3497-81f3-2baf742e14a0::EQPTHLD_1_FAN_46"
}
}
}
}
]
}
• Retrieve heat dissipation report for the full network (no parameters):
GET /equipmenttopologyplanning/api/v1/HeatDissipationReport
GET /equipmenttopologyplanning/api/v1/HeatDissipationReport?physicalLocations=CLLI1|Site2
GET /equipmenttopologyplanning/api/v1/HeatDissipationReport?tidNames=NE1|NE2
• Retrieve heat dissipation report for one, or more, bays or racks within a specified TID:
GET /equipmenttopologyplanning/api/v1/HeatDissipationReport?tidNames=NE1&racks=2|3
• Retrieve heat dissipation report for one, or more, nodes by CLLI + NodeId:
GET /equipmenttopologyplanning/api/v1/HeatDissipationReport?nodeIdentities=clli1::1|clli2::2
• Retrieve heat dissipation report for one, or more, bays or racks within a specified CLLI + NodeId:
GET /equipmenttopologyplanning/api/v1/HeatDissipationReport?nodeIdentities=clli1::1&racks=1|2
Note: In All the above REST API filter-sets [i.e combinations of CLLI, Node-ID, TIDs], if you provide
combinations of valid and invalid filter-sets, response would be generated based on valid filter-sets.
However, you would not see the validation error message with respect to any invalid filter-set.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 390
Blue Planet MCP API Reference Guide, Release 18.06 Equipment management
GET /equipmenttopologyplanning/api/v1/HeatDissipationReport
Sample response
{
"sites": [
{
"name": "SITEB2",
"tids": [
{
"nodeIdentity": {
"clli": "SITEB",
"nodeId": 2,
"tid": "SITEB2"
},
"racks": [
{
"rack": {
"mgmtAccess": "TL1_ACCESS",
"address": [
{
"key": "RACK",
"value": "1"
}
]
},
"calculatedHeatDissipationInWatts": 710,
"perShelfHeatDissipation": [
{
"physicalShelf": 1,
"calculatedHeatDissipationInWatts": 710
}
],
"heatDissipationThreshold": {
"warningThreshold": "8000",
"blockingThreshold": "10000"
},
"thresholdType": "Global"
},
{
"rack": {
"mgmtAccess": "TL1_ACCESS",
"address": [
{
"key": "RACK",
"value": "2"
}
]
},
"calculatedHeatDissipationInWatts": 827,
"perShelfHeatDissipation": [
{
"physicalShelf": 1,
"calculatedHeatDissipationInWatts": 514
},
{
"physicalShelf": 2,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 391
Blue Planet MCP API Reference Guide, Release 18.06 Equipment management
"calculatedHeatDissipationInWatts": 313
}
],
"heatDissipationThreshold": {
"warningThreshold": "8000",
"blockingThreshold": "10000"
},
"thresholdType": "Global"
}
]
}
]
},
{
"name": "SITEA1",
"tids": [
{
"nodeIdentity": {
"clli": "SITEA",
"nodeId": 1,
"tid": "SITEA1"
},
"racks": [
{
"rack": {
"mgmtAccess": "TL1_ACCESS",
"address": [
{
"key": "RACK",
"value": "1"
}
]
},
"calculatedHeatDissipationInWatts": 1105,
"perShelfHeatDissipation": [
{
"physicalShelf": 1,
"calculatedHeatDissipationInWatts": 792
},
{
"physicalShelf": 2,
"calculatedHeatDissipationInWatts": 313
}
],
"heatDissipationThresholdCrossed": "blocking",
"heatDissipationThreshold": {
"warningThreshold": "800",
"blockingThreshold": "1080"
},
"thresholdType": "Rack"
}
]
}
]
},
{
"name": "SITEC1",
"tids": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 392
Blue Planet MCP API Reference Guide, Release 18.06 Equipment management
"nodeIdentity": {
"clli": "SITEC",
"nodeId": 1,
"tid": "SITEC1"
},
"racks": [
{
"rack": {
"mgmtAccess": "TL1_ACCESS",
"address": [
{
"key": "RACK",
"value": "1"
}
]
},
"calculatedHeatDissipationInWatts": 1105,
"perShelfHeatDissipation": [
{
"physicalShelf": 1,
"calculatedHeatDissipationInWatts": 792
},
{
"physicalShelf": 2,
"calculatedHeatDissipationInWatts": 313
}
],
"heatDissipationThreshold": {
"warningThreshold": "8000",
"blockingThreshold": "10000"
},
"thresholdType": "Global"
}
]
}
]
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 393
Blue Planet MCP API Reference Guide, Release 18.06 Service Intent Life Cycle Phase and Deployment State
All packet and transport infrastructures and services that are provisioned through Market APIs support
the life cycle phase and deployment state feature.
The following table captures the service use cases and the associated life cycle phase and deployment
states.
Table 13. Service use cases and the associated life cycle phase and deployment states
SERVICE USE CASES SERVICE LIFE CYCLE PHASE SERVICE DEPLOYMENT STATE
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 394
Blue Planet MCP API Reference Guide, Release 18.06 Service Intent Life Cycle Phase and Deployment State
SERVICE USE CASES SERVICE LIFE CYCLE PHASE SERVICE DEPLOYMENT STATE
Note: The IFD API version numbers (for example, “v2” in “ifd.v2.resourceTypes”) that appear in this
chapter do not necessarily reflect the IFD API version numbers associated with this current Blue Planet
MCP release. They are provided only as an example. IFD API version numbers may be higher than those
shown in this chapter. For a list of supported releases and their related version numbers, see the
"Versioning" section in the MCP REST API overview chapter.
The Service intent life cycle phase and deployment state are returned as properties of Market resources
retrieved with Market resource GET APIs for all ifd.v2.resourceTypes.ServiceIntent or a specific
ServiceIntent resource by ID.
Sample request
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?resourceTypeId=ifd.v2.resourceTypes.ServiceInte
nt&offset=0&limit=1000
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 395
Blue Planet MCP API Reference Guide, Release 18.06 Service Intent Life Cycle Phase and Deployment State
• resourceTypeId
{
"items": [
{
"id": "594d6725-7b1d-46c2-aba4-a5345cad9dc3",
"label": "test-mpls-e",
"resourceTypeId": "ifd.v2.resourceTypes.MplsTunnelIntent",
"productId": "594c86cb-b1cb-46e9-9a25-5c7bbafc409e",
"tenantId": "c9806289-b7eb-4809-84e0-46b329abe68d",
"shared": false,
"properties": {
"deploymentState": "COMPLETE_FULLY_READY",
"endPoints": [
"594d6724-fd49-4936-a400-8065b2cb7631",
"594d6724-0797-403a-b768-7333a52bd2b1"
],
"sysgen_turnDownDateTime": "9999-12-31T23:59:59.999999+00:00",
"protectionType": "UNPROTECTED",
"directionality": "bidirectional",
"label": "test-mpls-e-label",
"bandwidth": {
"bookingFactor": 1,
"assignedBandwidth": 1,
"assignedBandwidthUnit": "mbps",
"bandwidthLockout": false
},
"aliasNames": [
{
"aliasType": "MANAGEMENT_NAME",
"name": "test-mpls-e"
}
],
"sysgen_turnUpDateTime": "2017-06-23T19:08:24.122010+0000",
"layerRate": "MPLS_PROTECTION",
"interactive_mode": "true",
"lifeCyclePhase": "ASSURING"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-23T19:10:11.174Z",
"createdAt": "2017-06-23T19:08:21.201Z",
"autoClean": false
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 396
Blue Planet MCP API Reference Guide, Release 18.06 Service Intent Life Cycle Phase and Deployment State
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/594d6725-7b1d-46c2-aba4-
a5345cad9dc3?full=false
Sample response
{
"id": "594d6725-7b1d-46c2-aba4-a5345cad9dc3",
"label": "test-mpls-e",
"resourceTypeId": "ifd.v2.resourceTypes.MplsTunnelIntent",
"productId": "594c86cb-b1cb-46e9-9a25-5c7bbafc409e",
"tenantId": "c9806289-b7eb-4809-84e0-46b329abe68d",
"shared": false,
"properties": {
"deploymentState": "COMPLETE_FULLY_READY",
"endPoints": [
"594d6724-fd49-4936-a400-8065b2cb7631",
"594d6724-0797-403a-b768-7333a52bd2b1"
],
"sysgen_turnDownDateTime": "9999-12-31T23:59:59.999999+00:00",
"protectionType": "UNPROTECTED",
"directionality": "bidirectional",
"label": "test-mpls-e-label",
"bandwidth": {
"bookingFactor": 1,
"assignedBandwidth": 1,
"assignedBandwidthUnit": "mbps",
"bandwidthLockout": false
},
"aliasNames": [
{
"aliasType": "MANAGEMENT_NAME",
"name": "test-mpls-e"
}
],
"sysgen_turnUpDateTime": "2017-06-23T19:08:24.122010+0000",
"layerRate": "MPLS_PROTECTION",
"interactive_mode": "true",
"lifeCyclePhase": "ASSURING"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-23T19:10:11.174Z",
"createdAt": "2017-06-23T19:08:21.201Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 397
Blue Planet MCP API Reference Guide, Release 18.06 Service Intent Life Cycle Phase and Deployment State
Sample request
GET {{MCP_SERVER}}/nsi/api/fres?limit=30&freExpectations.serviceIntent.id=594d6725-7b1d-46c2-
aba4-a5345cad9dc3
• freExpectations.serviceIntent.id
Sample response
Note the intentLifeCyclePhase "assuring" and intentDeploymentState "complete fully ready" as obtained
with the Market GET resource API above.
{
"id": "-4946399755113670964",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "test-mpls-e",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"deploymentState": "complete in network",
"active": true,
"additionalAttributes": {
"protectionRole": "primary",
"isActual": "true"
},
"derivedAttributes": {
"intentLifeCyclePhase": "assuring",
"intentDeploymentState": "complete fully ready"
},
"displayData": {
"intentLifeCyclePhaseString": "Deployed",
"intentDeploymentStateString": "Succeeded"
},
"resourceState": "plannedAndDiscovered"
},
"relationships": {
"endPoints": {
"data": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 398
Blue Planet MCP API Reference Guide, Release 18.06 Service Intent Life Cycle Phase and Deployment State
{
"type": "endPoints",
"id": "-4946399755113670964:1"
},
{
"type": "endPoints",
"id": "-4946399755113670964:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "3e2f7c06-2329-3ab4-9f73-d98015447ccc::FRE_MPLS-
PROTECTION_test-mpls-e_headEnd"
},
{
"type": "fres",
"id": "3416064508099810071"
},
{
"type": "fres",
"id": "fe954a03-2609-3ebe-bb29-5dc73c34280a::FRE_MPLS-
PROTECTION_test-mpls-e_tailEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "-4946399755113670964::594d6725-7b1d-46c2-aba4-a5345cad9dc3"
}
]
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 399
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Release 18.06 extends Layer 2 functionality for Ethernet service and MPLS tunnel discovery, retrieval,
visualization, provisioning, and troubleshooting on the following new device releases:
Note: The IFD API version numbers (for example, “v2” in “ifd.v2.resourceTypes”) that appear in this
chapter do not necessarily reflect the IFD API version numbers associated with this current Blue Planet
MCP release. They are provided only as an example. IFD API version numbers may be higher than those
shown in this chapter. For a list of supported releases and their related version numbers, see the
"Versioning" section in the MCP REST API overview chapter.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 400
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 401
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• Retrieve all discovered / planned Ethernet services including the related TPEs
• Retrieve a discovered / planned Ethernet service by FRE ID, including the related TPEs
• Retrieve a discovered / planned Ethernet service by FRE ID
• Retrieve all discovered / planned Ethernet services for a specific network construct
• Retrieve a discovered / planned Ethernet service by a specific name
• Retrieve L2 service intent façade product ID
• Retrieve MC-LAG service endpoints
• Retrieve configuration resources
• Using the Service Inventory with Packet services management
Note: You can also use this API call for service discovery and inventory of an E-LAN service with one of
the following endpoints: CES SAOS 6.x, 8700 SAOS 8.x, or 6500-S Packet Fabric.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
https://<mcphostname>/nsi/api/fres?layerRate=ETHERNET&type=service&include=tpes
Sample response
{
"links": {},
"data": {
"id": "-4403482275221078930",
"type": "fres",
"attributes": {
"userLabel": "nsiEPL2nodes251",
"mgmtName": "nsiEPL2nodes251",
"nativeName": "",
"layerRate": "ETHERNET",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 402
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"signalContentType": "VCE",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-4403482275221078930:1"
},
{
"type": "endPoints",
"id": "-4403482275221078930:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::FRE_EVC_nsiEPL2nodes251"
},
{
"type": "fres",
"id": "6339825355743757921"
},
{
"type": "fres",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::FRE_EVC_nsiEPL2nodes251"
}
]
}
}
},
"included": [
{
"id": "-4403482275221078930:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-
4be2828ad966::TPE_18_CTPServerToClient_VCE_nsiEPL2nodes251"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 403
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
},
...,
}
}
}
]
}
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
https://<mcp_server>/nsi/api/fres/-1154537279236972192?include=tpes
Sample response
{
"data": {
"id": "-1154537279236972192",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "apMcpLsp",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"protectionRole": "All",
"signaled": "false",
"isActual": "true",
"lspName": "apMcpLsp",
"resiliency": "Normal",
"subType": "TP",
"coRouted": "true"
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 404
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-1154537279236972192:1"
},
{
"type": "endPoints",
"id": "-1154537279236972192:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "8366750368065437314"
}
]
}
}
},
"included": [
{
"id": "-1154537279236972192:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::TPE_FTP_MPLS-
PROTECTION_apMcpLsp_tailEnd"
}
]
}
}
},
...,
{
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::TPE_FTP_MPLS-
PROTECTION_apMcpLsp_headEnd",
"type": "tpes",
"attributes": {
"structureType": "FTP",
"locations": [
{
"managementType": "saos",
"tunnelRole": "headEnd",
"lspName": "apMcpLsp"
}
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 405
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"layerTerminations": [
{
"layerRate": "MPLS_PROTECTION",
"structureType": "exposed tcp",
"terminationState": "layer termination cannot terminate",
"active": true,
"additionalAttributes": {
"tunnelRole": "headEnd",
"tunnelType": "ingress-corouted-static",
"lspName": "apMcpLsp"
}
}
],
"stackDirection": "bidirectional",
"displayAlias": "apMcpLsp",
"fgiSpecificationRefList": [
"Packet_6x_Common_FG:1:1",
"Packet_MPLS_PW_Common_FG:1:1",
"Packet_Must_Not_Connect_ETHERNET_FG:1:1"
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7"
}
},
"clientTpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-
1cd2fcfc29e7::TPE_CTPServerToClient_PW_apMcpMpls_PW_1"
}
]
}
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 406
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
This API call applies to an ELAN service discovery and inventory of a mix of devices and a mix of Static
MPLS with/without QiQ spur(s)
Sample request
GET {{MCP_SERVER}}/nsi/api/fres/<FRE_ID>
Sample response
{
"id": "8325238053737931966",
"type": "fres",
"attributes": {
"userLabel": "elanMix",
"mgmtName": "elanMix",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"internalStructure": "multipoint",
"deploymentState": "discovered",
"signalContentType": "EVC",
"cfmPackages": [
{
"cfmServiceName": "elanMix",
"ccmPriority": "7",
"ccmInterval": "1",
"ccmIntervalUnit": "sec",
"cfmAdminState": "enabled",
"maName": "elanMix",
"mdName": "md4",
"mdLevel": "4",
"megId": "md4elanMix"
}
],
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"intentDeploymentStateString": "Not applicable"
},
"resourceState": "discovered"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 407
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "8325238053737931966:1"
},
{
"type": "endPoints",
"id": "8325238053737931966:2"
},
{
"type": "endPoints",
"id": "8325238053737931966:3"
},
{
"type": "endPoints",
"id": "8325238053737931966:4"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2563070733983653934"
},
{
"type": "fres",
"id": "-2205306370477567000"
},
{
"type": "fres",
"id": "8532712b-e4e3-38a8-b480-c4859b84792f::FRE_EVC_elanMix"
},
{
"type": "fres",
"id": "-1453185902365064204"
},
{
"type": "fres",
"id": "9b846371-3ee8-3de0-96c2-c981249f67ab::FRE_EVC_elanMix"
},
{
"type": "fres",
"id": "1221571713885248970"
},
{
"type": "fres",
"id": "ca650c7d-59a3-3fcd-b202-54a178f42445::FRE_EVC_elanMix"
},
{
"type": "fres",
"id": "305acccd-6b68-3267-b274-42a56435703d::FRE_EVC_elanMix"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 408
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
This API call applies to service discovery and inventory of an ETREE single root over Static MPLS
transport only with
This API call also applies to 6200 (leaf only) - single root config - over Static MPLS.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres/<FRE_ID>
Sample response
Note: The endpoint "role" has a single "root". The "role" of each of the other endpoints is "leaf".
{
"data": {
"id": "1484498907288457250",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered"
},
"resourceState": "discovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "EVC",
"userLabel": "EVP-TREE OneControl",
"mgmtName": "mcpEvTree",
"nativeName": "",
"layerRate": "ETHERNET",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 409
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"internalStructure": "hub_and_spoke",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"adminState": "In Service",
"signalContentType": "EVC",
"cfmPackages": [
{
"cfmServiceName": "mcpEvTree",
"ccmPriority": "7",
"ccmInterval": "1",
"ccmIntervalUnit": "sec",
"cfmAdminState": "enabled",
"maName": "mcpEvTree",
"mdName": "md4",
"mdLevel": "4",
"megId": "md4mcpEvTree"
}
],
...,
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"reliability": "manual"
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "1484498907288457250"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1484498907288457250:1"
},
{
"type": "endPoints",
"id": "1484498907288457250:2"
},
{
"type": "endPoints",
"id": "1484498907288457250:3"
}
]
},
"partitionFres": {
"data": [
...,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 410
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
},
"included": [
{
"id": "1484498907288457250:1",
"type": "endPoints",
"attributes": {
"role": "root",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_11_CTPServerToClient_SUBPORT_1_2_11_mcpEvTree_1"
}
]
}
}
},
{
"id": "1484498907288457250:2",
"type": "endPoints",
"attributes": {
"role": "leaf",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-
4be2828ad966::TPE_6_CTPServerToClient_VCE_mcpEvTree"
}
]
}
}
},
{
"id": "1484498907288457250:3",
"type": "endPoints",
"attributes": {
"role": "leaf",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "7ef3d3b5-89ba-3120-8e14-
820eb004d696::TPE_32_CTPServerToClient_VCE_mcpEvTree"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 411
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
]
}
This API call applies to service discovery and inventory of an ETREE dual root (same node) over Static
MPLS (SS-PW / MS-PW) (6.x (leaf), 8700 (leaf or root), 6500 PF (leaf or root).
This API call also applies to 6200 (leaf only) dual root over Static MPLS.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres/<FRE_ID>
Sample response
Note: The endpoint "role" has two roots (each called "root"). The "role" of each of the other endpoints is
"leaf".
{
"data": {
"id": "627972058992349753",
"type": "fres",
"attributes": {
"operationState": "Out of Service",
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered"
},
"resourceState": "discovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "EVC",
"userLabel": "ETREE 2 Root",
"mgmtName": "Evptree2Root",
"nativeName": "",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 412
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"layerRate": "ETHERNET",
"internalStructure": "hub_and_spoke",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"adminState": "In Service",
"signalContentType": "EVC",
...,
,
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"reliability": "manual"
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "627972058992349753"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "627972058992349753:1"
},
{
"type": "endPoints",
"id": "627972058992349753:2"
},
{
"type": "endPoints",
"id": "627972058992349753:3"
},
{
"type": "endPoints",
"id": "627972058992349753:4"
}
]
},
"partitionFres": {
"data": [
...,
]
}
}
},
"included": [
{
"id": "627972058992349753:1",
"type": "endPoints",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 413
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"attributes": {
"role": "root",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_11_CTPServerToClient_SUBPORT_1_2_11_Evptree2Root_1"
}
]
}
}
},
{
"id": "627972058992349753:2",
"type": "endPoints",
"attributes": {
"role": "root",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_16_CTPServerToClient_SUBPORT_1_2_16_Evptree2Root_1"
}
]
}
}
},
{
"id": "627972058992349753:3",
"type": "endPoints",
"attributes": {
"role": "leaf",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-
4be2828ad966::TPE_7_CTPServerToClient_VCE_Evptree2Root"
}
]
}
}
},
{
"id": "627972058992349753:4",
"type": "endPoints",
"attributes": {
"role": "leaf",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 414
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "7ef3d3b5-89ba-3120-8e14-
820eb004d696::TPE_32_CTPServerToClient_VCE_Evptree2Root"
}
]
}
}
}
]
}
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
https://<mcp_server>/nsi/api/fres?networkConstruct.id=2c06ee34-6e8f-30a8-9f1b-4be2828ad966
Sample response
{
"links": {},
"data": [
{
"id": "-1154537279236972192",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "apMcpLsp",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"protectionRole": "All",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 415
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"signaled": "false",
"isActual": "true",
"lspName": "apMcpLsp",
"resiliency": "Normal",
"subType": "TP",
"coRouted": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-1154537279236972192:1"
},
{
"type": "endPoints",
"id": "-1154537279236972192:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "8366750368065437314"
}
]
}
}
}
],
"included": [
{
"id": "-1154537279236972192:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::TPE_FTP_MPLS-
PROTECTION_apMcpLsp_tailEnd"
}
]
}
}
},
{
"id": "-1154537279236972192:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 416
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::TPE_FTP_MPLS-
PROTECTION_apMcpLsp_headEnd"
}
]
}
}
}
]
}
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
https://<mcp_server>/nsi/api/fres?type=service&managementName=nsiEPL2nodes251
Sample response
{
"links": {},
"data": [
{
"id": "-4403482275221078930",
"type": "fres",
"attributes": {
"userLabel": "nsiEPL2nodes251",
"mgmtName": "nsiEPL2nodes251",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"signalContentType": "VCE",
"additionalAttributes": {
"isActual": "true"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 417
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-4403482275221078930:1"
},
{
"type": "endPoints",
"id": "-4403482275221078930:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::FRE_EVC_nsiEPL2nodes251"
},
{
"type": "fres",
"id": "6339825355743757921"
},
{
"type": "fres",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::FRE_EVC_nsiEPL2nodes251"
}
]
}
}
},
{
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::FRE_EVC_nsiEPL2nodes251",
"type": "fres",
"attributes": {
"userLabel": "nsiEPL2nodes251",
"mgmtName": "nsiEPL2nodes251",
"nativeName": "",
"layerRate": "ETHERNET",
"multiHighestStackLayerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"operationState": "fully operating",
"deploymentState": "complete in network",
"signalContentType": "EVC",
"additionalAttributes": {
"isActual": "true",
"reservedVlan": "4007"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 418
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "2c06ee34-6e8f-30a8-9f1b-
4be2828ad966::FRE_EVC_nsiEPL2nodes251::EP0"
},
{
"type": "endPoints",
"id": "2c06ee34-6e8f-30a8-9f1b-
4be2828ad966::FRE_EVC_nsiEPL2nodes251::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966"
}
}
}
},
...,
{
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::FRE_EVC_nsiEPL2nodes251::EP1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-
1cd2fcfc29e7::TPE_3_CTPServerToClient_VCE_nsiEPL2nodes251"
}
]
}
}
}
]
}
Sample request
GET {{MCP_Server}}}/bpocore/market/api/v1/products
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 419
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response
{
"items": [
{
"id": "d98b75d1-bdc2-4bf1-9d59-59e680ee9d3f",
"resourceTypeId": "tosca.resourceTypes.IpVpnService",
"title": "Versa-based IP VPN Service",
"description": "A full-featured IP VPN solution for use with Versa Director
on top of VMWare.",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "versa.serviceTemplates.IpVpnService"
}
},
{
"id": "f97d1a40-3ff1-5a9d-9bcc-83f65d96ef56",
"resourceTypeId": "tosca.resourceTypes.NumberPool",
"title": "Number Pool",
"description": "Creates a pool of numbers from which to assign values to
resources.",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {}
},
{
"id": "f3cc5de2-2df0-5fa3-869e-2409df6e5786",
"resourceTypeId": "tosca.resourceTypes.IpV4AddressPool",
"title": "IPv4 Address Pool",
"description": "A IPV4 address pool for use with DHCP servers or otherwise
assigning to resources.",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {}
},
... ,
{
"id": "58c33ae8-8603-44ef-b697-87a2bc4a799e",
"resourceTypeId": "ifd.v1.resourceTypes.MplsTunnelIntentFacade",
"title": "product for MplsTunnelIntentFacade",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v1.serviceTemplates.MplsTunnelIntentFacade"
}
},
{
"id": "58c33ae8-f5e1-4475-97cf-91142e24d2cf",
"resourceTypeId": "ifd.v1.resourceTypes.NodeInsertionWorkflow",
"title": "product for NodeInsertionWorkflow",
"active": true,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 420
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v1.serviceTemplates.NodeInsertionWorkflow"
}
},
{
"id": "58c33ae8-47b7-4c3c-86c7-c023d80b5d51",
"resourceTypeId": "ifd.v1.resourceTypes.ServicePromotionContainer",
"title": "product for ServicePromotionContainer",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v1.serviceTemplates.ServicePromotionContainer"
}
},
{
"id": "58c33ae8-760f-4a16-a920-ccc61dacafac",
"resourceTypeId": "ifd.v1.resourceTypes.LspBandwidthProfile",
"title": "product for LspBandwidthProfile",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v1.serviceTemplates.LspBandwidthProfile"
}
},
{
"id": "58c33ae8-e38e-4e69-aedc-f47c62cae505",
"resourceTypeId": "ifd.v1.resourceTypes.MplsOperationContainer",
"title": "product for MplsOperationContainer",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v1.serviceTemplates.MplsOperationContainer"
}
}
],
"total": 29,
"offset": 0,
"limit": 1000
}
Sample request
The following request retrieves service endpoint ports applicable for an EVPL service, including MC-LAG
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 421
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
ports:
GET
{{MCP_SERVER}}/nsi/api/tpes?namedQuery=portsL2ApplicableEVPLWithMcLag&networkConstruct.id={
{NC_ID}}
Sample response
{
"data": [
{
"id": "46682de1-0871-3f17-9a4c-34a02cf97074::TPE_FTP_LAG_MCLAG_08_61",
"type": "tpes",
"attributes": {
"identifiers": [
{
"networkConstructId": "46682de1-0871-3f17-9a4c-34a02cf97074",
"nodalId": "46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_FTP_LAG_MCLAG_08_61"
}
],
"resourceState": "discovered",
"structureType": "FTP",
"nativeName": "MCLAG_08_61",
"locations": [
{
"managementType": "saos",
"lagName": "MCLAG_08_61"
}
],
"layerTerminations": [
{
"layerRate": "LAG",
"structureType": "exposed tcp",
"terminationState": "layer termination permanently terminated",
"active": true,
"signalIndex": {},
"additionalAttributes": {
"acceptableFrameType": "all",
"multiChassis": "true",
"allPorts": "6/20",
"protectionPorts": "6/20",
"minimumLag": "disabled",
"stp": "disabled",
"mtu": "2000",
"floodContainment": "disabled",
"macAddress": "9c:7a:03:f9:83:e0",
"lagId": "4097",
"totalBandwidth": "0",
"totalBandwidthUnit": "mbps",
"lacpMode": "lacp"
}
}
],
...
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 422
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Similarly, you can retrieve service endpoint ports applicable for an EPL service including MC-LAG ports
with a call like the following:
GET
{{MCP_SERVER}}/nsi/api/tpes?namedQuery=portsL2ApplicableEPLWithMcLag&networkConstruct.id={{
NC_ID}}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 423
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": [
{
"id": "46682de1-0871-3f17-9a4c-34a02cf97074::TPE_FTP_LAG_MCLAG_08_61",
"type": "tpes",
"attributes": {
"identifiers": [
{
"networkConstructId": "46682de1-0871-3f17-9a4c-34a02cf97074",
"nodalId": "46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_FTP_LAG_MCLAG_08_61"
}
],
"resourceState": "discovered",
"structureType": "FTP",
"nativeName": "MCLAG_08_61",
"locations": [
{
"managementType": "saos",
"lagName": "MCLAG_08_61"
}
],
"layerTerminations": [
{
"layerRate": "LAG",
"structureType": "exposed tcp",
"terminationState": "layer termination permanently terminated",
"active": true,
"signalIndex": {},
"additionalAttributes": {
"acceptableFrameType": "all",
"multiChassis": "true",
"allPorts": "6/20",
"protectionPorts": "6/20",
"minimumLag": "disabled",
"stp": "disabled",
"mtu": "2000",
"floodContainment": "disabled",
"macAddress": "9c:7a:03:f9:83:e0",
"lagId": "4097",
"totalBandwidth": "0",
"totalBandwidthUnit": "mbps",
"lacpMode": "lacp"
}
}
],
...
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 424
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET MCP_SERVER/bpocore/market/api/v1/resources?exactTypeId=ifd.v4.resourceTypes.IfdConfig
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 425
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "58b4407b-e3b4-4627-a6be-c19bcd4f1ed3",
"label": "Ifd Config Label",
"resourceTypeId": "ifd.resourceTypes.IfdConfig",
"productId": "58b43dc6-749e-44fa-9bdb-cea4887ba820",
"tenantId": "e1e0516f-cfc8-4832-871f-ed46ad3b27b8",
"shared": false,
"properties": {
"configurationProperties": {
"ifd.l0.setExplicitFrequency": {
"default": "true",
"supportedValues": "true, false",
"value": "true"
},
"ifd.l2.truncateSubportName": {
"default": "true",
"supportedValues": "true, false",
"value": "true"
},
"ifd.l2.managementVlans": {
"default": "127",
"supportedValues": "1-4094",
"value": "127"
},
"ifd.l2.maximumTransmissionUnit": {
"default": "2000",
"supportedValues": "1-9200",
"value": "2000"
},
"ifd.l2.statusTlv": {
"default": "on",
"supportedValues": "on, off",
"value": "on"
}
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-02-27T15:06:37.570Z",
"createdAt": "2017-02-27T15:06:35.647Z",
"autoClean": false
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 426
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
GET {{MCP_SERVER}}/nsi/api/fres/5251477270190592826
{
"data": {
"id": "5251477270190592826",
"type": "fres",
"attributes": {
"userLabel": "nsiEVPL2nodeCfm",
"mgmtName": "nsiEVPL2nodeCfm",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"deploymentState": "discovered",
"signalContentType": "EVC",
"cfmPackages": [
{
"cfmServiceName": "nsiEVPL2nodeCfm",
"ccmPriority": "7",
"ccmInterval": "1",
"ccmIntervalUnit": "sec",
"cfmAdminState": "enabled",
"maName": "nsiEVPL2nodeCfm",
"mdName": "md4",
"mdLevel": "4",
"megId": "md4nsiEVPL2nodeCfm"
}
],
"usedBandwidth": [
{
"layer": "ETHERNET",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 427
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"capacity": 1,
"capacitySize": {
"size": [
"1.0"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"additionalAttributes": {
"isActual": "true"
},
"resourceState": "discovered"
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "5251477270190592826:1"
},
{
"type": "endPoints",
"id": "5251477270190592826:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "976c2e3e-c33c-3763-8930-747ced188789::FRE_EVC_nsiEVPL2nodeCfm"
},
{
"type": "fres",
"id": "8155802752880622380"
},
{
"type": "fres",
"id": "be46d052-43f6-30bc-99dc-ce698d576cc7::FRE_EVC_nsiEVPL2nodeCfm"
}
]
}
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 428
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "976c2e3e-c33c-3763-8930-
747ced188789::TPE_1_1_CTPServerToClient_SUBPORT_1_1_1_nsiEVPL2nodeCfm_1",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"locations": [
{
"managementType": "saos",
"slot": "1",
"port": "1",
"subport": "1_1_1_nsiEVPL2nodeCfm_1",
"vce": "nsiEVPL2nodeCfm"
}
],
"layerTerminations": [
{
"layerRate": "ETHERNET",
"structureType": "exposed lone cp",
"terminationState": "layer termination cannot terminate",
"active": true,
"cfmPackages": [
{
"cfmServiceName": "nsiEVPL2nodeCfm",
"mep": [
{
"mepId": "1",
"ccmTransmitState": "on",
"mepAdminState": "enabled",
"mepType": "up",
"mepMacAddress": "02:b6:24:67:00:10",
"ccmPriority": "7",
"vlanId": "0"
}
]
}
],
"signalIndex": {
"mappingTable": [
{
"direction": "RX",
"label": "234"
}
]
},
"additionalAttributes": {
"interfaceType": "UNI",
"ingressCosMapName": "Default_ResolvedCosProfile",
"controlFrameTunneling": "disabled",
"evcId": "nsiEVPL2nodeCfm",
"signalContentType": "VCE",
"ingressCosPolicy": "L2PcpCos"
}
}
],
"stackDirection": "bidirectional",
"displayAlias": "1-1-1_1_1_nsiEVPL2nodeCfm_1",
"identifiers": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 429
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"networkConstructId": "976c2e3e-c33c-3763-8930-747ced188789",
"nodalId": "976c2e3e-c33c-3763-8930-
747ced188789::TPE_1_1_CTPServerToClient_SUBPORT_1_1_1_nsiEVPL2nodeCfm_1"
}
],
"resourceState": "discovered"
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "976c2e3e-c33c-3763-8930-747ced188789"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "976c2e3e-c33c-3763-8930-747ced188789::EQPT_1_1"
}
},
"owningServerTpe": {
"data": {
"type": "tpes",
"id": "976c2e3e-c33c-3763-8930-747ced188789::TPE_1_1_PTP"
}
}
}
}
}
Sample request
GET {{MCP_SERVER}}/nsi/api/fres/5923233899135724614
Sample response
{
"data": {
"id": "5923233899135724614",
"type": "fres",
"attributes": {
"userLabel": "E-ACCESS",
"mgmtName": "mcpEplSS",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"deploymentState": "discovered",
"signalContentType": "EVC",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 430
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"cfmPackages": [
{
"cfmServiceName": "mcpEplSS",
"ccmPriority": "7",
"ccmInterval": "1",
"ccmIntervalUnit": "sec",
"cfmAdminState": "enabled",
"maName": "mcpEplSS",
"mdName": "md4",
"mdLevel": "4",
"megId": "md4mcpEplSS"
}
],
"usedBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"1.0"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"additionalAttributes": {
"isActual": "true"
},
"resourceState": "discovered"
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "5923233899135724614:1"
},
{
"type": "endPoints",
"id": "5923233899135724614:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "d40d3557-a34d-327a-8772-e70f7ed16cc7::FRE_EVC_mcpEplSS"
},
{
"type": "fres",
"id": "478545052946224925"
},
{
"type": "fres",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 431
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "e0966cda-1da0-383d-a7b4-6b96b740b0bb::FRE_EVC_mcpEplSS"
}
]
}
}
},
Sample request
GET {{MCP_SERVER}}/nsi/api/fres/7703079907264562752
Sample response
{
"data": {
"id": "7703079907264562752",
"type": "fres",
"attributes": {
"userLabel": "sc3pt",
"mgmtName": "sc3pt",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"deploymentState": "discovered",
"signalContentType": "EACCESS",
"usedBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"1.0"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"additionalAttributes": {
"isActual": "true"
},
"resourceState": "discovered"
},
"relationships": {
"endPoints": {
"data": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 432
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"type": "endPoints",
"id": "7703079907264562752:1"
},
{
"type": "endPoints",
"id": "7703079907264562752:2"
},
{
"type": "endPoints",
"id": "7703079907264562752:3"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "8218377d-45de-3028-9941-19df45d0008e::FRE_EVC_sc3pt"
},
{
"type": "fres",
"id": "1906330421959389233"
},
{
"type": "fres",
"id": "1dc5fc42-4d80-360c-8621-3244fb221cfa::FRE_EVC_sc3pt"
},
{
"type": "fres",
"id": "46682de1-0871-3f17-9a4c-34a02cf97074::FRE_EVC_sc3pt"
}
]
}
}
},
"included": [
{
"id": "7703079907264562752:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_1_1_CTPServerToClient_SUBPORT_1_1_sc3pt_1"
}
]
}
}
},
{
"id": "7703079907264562752:2",
"type": "endPoints",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 433
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_5_3_CTPServerToClient_SUBPORT_5_3_sc3pt_1"
}
]
}
}
},
{
"id": "7703079907264562752:3",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "8218377d-45de-3028-9941-
19df45d0008e::TPE_13_CTPServerToClient_VCE_sc3pt"
}
]
}
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 434
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• Provision unprot ELINE EVPL over MPLS prot/unprot tunnels with/wout QinQ spurs
• Provision unprot ELINE EPL over MPLS prot/unprot tunnels with/wout QinQ spurs
• Provision an unprotected ELINE EVPL service over Linear QinQ
• Provision an unprotected ELINE EPL service over Linear QinQ
• Provision unprotected ELINE services over MPLS transport with MS-PW excluding QinQ spurs
• Provision an E-LINE service over a unidirectional MPLS tunnel
• Provision control frame tunneling on EPL and EVPL
• Provision an E-Line service with custom CoS mapping
• Provision 2-Endpoint ELINE pseudowire protection (QinQ spurs)
• Provision a three-point E-Line service with pseudowire protection
• Provision per-EVC policing option
• Provision constraints — QinQ only
• Provision constraints — transport protection
• Provision constraints — allow QinQ segments
• Provision service OAM configuration (802.1ag and Y.1731)
• Create a packet service with Control Frame Tunneling (CFT)
• Provision the default DSCP CoS mapping
• Retrieve an ELINE service provisioning intent
• Delete an ELINE service by provisioning intent
• Modify BPO-IFD properties
Note: The API call used to create a service can include the following constraints:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 435
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
If you omit these constraints, MCP’s Path Computation Engine (PCE) will choose a best-effort path that
can either be based on unidirectional or bi-directional LSP.
Sample request
{
"productId": “58cabe48-3594-485c-8135-62ba563afe94”,
"desiredOrchState": "requested",
"label": "Facade EVPL_over_MPLS_created_from_postman",
"discovered": false,
"properties": {
"name": "TestEvplMpls_1",
"customerName": "Customer Name",
"serviceType": "EVPL",
"serverTrailList": [],
"structure": "P2P",
"type": "FDFR",
"endpoints": [
{
"settings":{
"node": "5160_0051",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "9"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3931_0018",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 436
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "4"
}
}
]
}
]
}
]
}
}
],
"routeMeta": {
"originator": "BP2"
},
"linearOnly":false
},
"routingConstraints": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
}
}
Sample response
{
"id": "58cae7f0-434c-40e2-b6e4-417108f47cc3",
"label": "Facade EVPL_over_MPLS_created_from_postman",
"resourceTypeId": "ifd.v1.resourceTypes.L2ServiceIntentFacade",
"productId": "58cabe48-3594-485c-8135-62ba563afe94",
"tenantId": "dd9744f5-38e1-45f6-b203-f6ee975941e7",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "TestEvplMpls_1",
"endpoints": [
{
"settings": {
"node": "5160_0051",
"role": "A_UNI",
"details": [
{
"flowSettings": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 437
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "9"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3931_0018",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "2"
}
}
]
}
]
}
]
}
}
],
"customerName": "Customer Name",
"routeMeta": {
"originator": "BP2"
},
"linearOnly":false
},
"routingConstraints": {
"includeRouteObjects": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 438
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
},
"structure": "P2P",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-03-16T19:30:57.090Z",
"createdAt": "2017-03-16T19:30:57.090Z",
"autoClean": false
}
Note: The API call used to create a service can include the following constraints:
If you omit these constraints, MCP’s Path Computation Engine (PCE) will choose a best-effort path that
can either be based on unidirectional or bi-directional LSP.
Sample request
{
"productId": “58cabe48-3594-485c-8135-62ba563afe94”,
"desiredOrchState": "requested",
"label": "Facade EPL_over_MPLS_created_from_postman",
"discovered": false,
"properties": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 439
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"name": "TestEplMpls_1",
"customerName": "Customer Name",
"serviceType": "EPL",
"serverTrailList": [],
"structure": "P2P",
"type": "FDFR",
"endpoints": [
{
"settings":{
"node": "5142_0043",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "23"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3960_0011",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "4"
}
}
]
}
]
}
]
}
}
],
"routeMeta": {
"originator": "BP2"
},
"linearOnly":false
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 440
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"routingConstraints": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
}
}
Sample response
{
"id": "58cae7f0-434c-40e2-b6e4-417108f47cc3",
"label": "Facade EPL_over_MPLS_created_from_postman",
"resourceTypeId": "ifd.v1.resourceTypes.L2ServiceIntentFacade",
"productId": "58cabe48-3594-485c-8135-62ba563afe94",
"tenantId": "dd9744f5-38e1-45f6-b203-f6ee975941e7",
"shared": false,
"properties": {
"serviceType": "EPL",
"serverTrailList": [],
"name": "TestEplMpls_1",
"endpoints": [
{
"settings": {
"node": "5160_0051",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "9"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3931_0018",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 441
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "2"
}
}
]
}
]
}
]
}
}
],
"customerName": "Customer Name",
"routeMeta": {
"originator": "BP2"
},
"linearOnly":false
},
"routingConstraints": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
},
"structure": "P2P",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-03-16T19:30:57.090Z",
"createdAt": "2017-03-16T19:30:57.090Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 442
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: The API call used to create a service can include the following constraints:
If you omit these constraints, MCP’s Path Computation Engine (PCE) will choose a best-effort path that
can either be based on unidirectional or bi-directional LSP.
Sample request
{
"productId": “58cabe48-3594-485c-8135-62ba563afe94”,
"desiredOrchState": "requested",
"label": "Facade EVPL_over_LINEAR_created_from_postman",
"discovered": false,
"properties": {
"name": "TestEvplQinQ_1",
"customerName": "Customer Name",
"serviceType": "EVPL",
"serverTrailList": [],
"structure": "P2P",
"type": "FDFR",
"endpoints": [
{
"settings":{
"node": "5160_0051",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "9"
}
}
]
}
]
}
]
}
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 443
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"settings": {
"node": "3931_0018",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "2"
}
}
]
}
]
}
]
}
}
],
"routeMeta": {
"originator": "BP2"
},
"linearOnly":true
},
"routingConstraints": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
}
}
Sample response
{
"id": "58cae7f0-434c-40e2-b6e4-417108f47cc3",
"label": "Facade EVPL_over_LINEAR_created_from_postman",
"resourceTypeId": "ifd.v1.resourceTypes.L2ServiceIntentFacade",
"productId": "58cabe48-3594-485c-8135-62ba563afe94",
"tenantId": "dd9744f5-38e1-45f6-b203-f6ee975941e7",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "TestEvplQinQ_1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 444
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"endpoints": [
{
"settings": {
"node": "5160_0051",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "9"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3931_0018",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "2"
}
}
]
}
]
}
]
}
}
],
"customerName": "Customer Name",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 445
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"routeMeta": {
"originator": "BP2"
},
"linearOnly":true
},
"routingConstraints": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
},
"structure": "P2P",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-03-16T19:30:57.090Z",
"createdAt": "2017-03-16T19:30:57.090Z",
"autoClean": false
}
Note: The API call used to create a service can include the following constraints:
If you omit these constraints, MCP’s Path Computation Engine (PCE) will choose a best-effort path that
can either be based on unidirectional or bi-directional LSP.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 446
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": “58cabe48-3594-485c-8135-62ba563afe94”,
"desiredOrchState": "requested",
"label": "Facade EPL_over_LINEAR_created_from_postman",
"discovered": false,
"properties": {
"name": "TestEplQinQ_1",
"customerName": "Customer Name",
"serviceType": "EPL",
"serverTrailList": [],
"structure": "P2P",
"type": "FDFR",
"endpoints": [
{
"settings":{
"node": "5142_0043",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "23"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3960_0011",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "4"
}
}
]
}
]
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 447
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
],
"routeMeta": {
"originator": "BP2"
},
"linearOnly":true
},
"routingConstraints": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
}
}
Sample response
{
"id": "58cae7f0-434c-40e2-b6e4-417108f47cc3",
"label": "Facade EPL_over_LINEAR_created_from_postman",
"resourceTypeId": "ifd.v1.resourceTypes.L2ServiceIntentFacade",
"productId": "58cabe48-3594-485c-8135-62ba563afe94",
"tenantId": "dd9744f5-38e1-45f6-b203-f6ee975941e7",
"shared": false,
"properties": {
"serviceType": "EPL",
"serverTrailList": [],
"name": "TestEplQinQ_1",
"endpoints": [
{
"settings": {
"node": "5160_0051",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "9"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3931_0018",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 448
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "2"
}
}
]
}
]
}
]
}
}
],
"customerName": "Customer Name",
"routeMeta": {
"originator": "BP2"
},
"linearOnly":true
},
"routingConstraints": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["5150_0025"],
"constraintType": "HARD"
}
]
},
"structure": "P2P",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-03-16T19:30:57.090Z",
"createdAt": "2017-03-16T19:30:57.090Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 449
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: The API call used to create a service can include the following constraints:
If you omit these constraints, MCP’s Path Computation Engine (PCE) will choose a best-effort path that
can either be based on unidirectional or bi-directional LSP.
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
• "allowQinQSpur": false
• "protectedPseudowire": false
• "transportProtection": "PROTECTED_BEST_EFFORT"
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serviceType": "EVPL",
"allowQinQSpur": false,
"name": "unpMsPw",
"protectedPseudowire": false,
"lastTransition": "TRANSITION_NONE",
"transportProtection": "PROTECTED_BEST_EFFORT",
"primaryPathConstraints": {
"includeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_4333n5"
],
"objectType": "NODE_NAME"
}
],
"excludeRouteObjects": [
{
"constraintType": "HARD",
"value": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 450
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"87_4333n4"
],
"objectType": "NODE_NAME"
}
]
},
"interactive_mode": "false",
"linearOnly": false,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": false,
"endpoints": [
{
"settings": {
"node": "87_4333n6",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3415
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "7"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_4333n7",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3415
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "7"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 451
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName"
}
}
Sample response
{
"id": "59284f5b-24d9-4973-894a-9790dcd3144d",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"name": "unpMsPw",
"oamEnabled": false,
"allowQinQSpur": false,
"endpoints": [
{
"settings": {
"node": "87_4333n6",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3415
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "7"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 452
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"settings": {
"node": "87_4333n7",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3415
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "7"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_BEST_EFFORT",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"primaryPathConstraints": {
"includeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_4333n5"
],
"objectType": "NODE_NAME"
}
],
"excludeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_4333n4"
],
"objectType": "NODE_NAME"
}
]
},
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 453
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"linearOnly": false,
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-26T15:52:59.477Z",
"createdAt": "2017-05-26T15:52:59.477Z",
"autoClean": false
}
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management. )
MCP supports dynamic MPLS unidirectional tunnels using the following devices as LER or LSRs:
This topic provides examples of provisioning an E-Line service over a unidirectional tunnel. Key elements
of the API call that constrain the service to transport over a unidirectoinal tunnel are these properties:
• constraints.transport.directionality
◦ bidirectional
◦ unidirectional
• constraints.transport.signal
◦ Static
◦ Dynamic
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 454
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Below is an example of the API calls used to create an E-Line service that is explicitly constrained to use a
unidirectional tunnel, but is not constrained to include or exclude any specific objects.
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serviceType": "EVPL",
"allowQinQSpur": false,
"name": "jmEVPL",
"protectedPseudowire": false,
"transportProtection": "UNPROTECTED_ONLY",
"linearOnly": false,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": false,
"type": "FDFR",
"structure": "P2P",
"endpoints": [
{
"settings": {
"node": "SIM1",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"shelf": "1",
"eqptGrp": "41",
"slot": "2",
"port": "20"
},
"filter": {
"outerVlanId": [
781
]
}
}
]
}
]
}
},
{
"settings": {
"node": "SIM2",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 455
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"location": {
"shelf": "1",
"eqptGrp": "41",
"slot": "1",
"port": "20"
},
"filter": {
"outerVlanId": [
781
]
}
}
]
}
]
}
}
],
"constraints": {
"transport": {
"directionality": "unidirectional",
"signal": "Dynamic"
}
}
}
}
You can also use the Constraints block of the API call to require specific LSPs to be included in the
service path, and specify those that should be included in each direction. The following call constrains the
service path:
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serviceType": "EVPL",
"allowQinQSpur": false,
"name": "jmEVPL",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_ONLY",
"linearOnly": false,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": false,
"type": "FDFR",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 456
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"structure": "P2P",
"endpoints": [
{
"settings": {
"node": "SIM1",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"shelf": "1",
"eqptGrp": "41",
"slot": "2",
"port": "20"
},
"filter": {
"outerVlanId": [
781
]
}
}
]
}
]
}
},
{
"settings": {
"node": "SIM2",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"shelf": "1",
"eqptGrp": "41",
"slot": "1",
"port": "20"
},
"filter": {
"outerVlanId": [
781
]
}
}
]
}
]
}
}
],
"constraints": {
"transport": {
"directionality": "unidirectional",
"signal": "Dynamic"
},
"routes": [{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 457
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"protection": "UNPROTECTED",
"direction": ["A", "Z"],
"includeRouteObjects": [{
"constraintType": "HARD",
"locations": [{
"nodeName": "SIM2",
"lspName": "sim1sim2"
}
],
"objectType": "LSP_NAME"
}
]
}, {
"protection": "UNPROTECTED",
"direction": ["Z", "A"],
"includeRouteObjects": [{
"constraintType": "HARD",
"locations": [{
"nodeName": "SIM1",
"lspName": "sim2sim1"
}
],
"objectType": "NODE_NAME"
}
]
}
]
}
}
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
• "controlFrameTunneling": "enabled"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 458
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{L2T_PRODUCT_ID}}",
"label": "L2 EVPL Layer Termination A",
"discovered": false,
"properties":
{
"layerRate": "ETHERNET",
"evcPortType": "MAPPED",
"interfaceType": "UNI",
"signalIndex": {
"mappingTable": [
{ "label": "402" }
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"ingressPolicer": {
"cir": 1000,
"eir": 500,
"cbs": 200,
"ebs": 100
},
"controlFrameTunneling": "enabled"
}
Sample response
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management. )
Note: You can include the same parameters when adding an endpoint to an E-LAN service to configure
the new endpoint to use a customized CoS mapping.
You might want to use a customized CoS mapping to rearrange adjacent service provider CoS, or to
merge together existing CoS mappings. (For example, on a SAOS 6x platform a PBit of 0 and DEI of 0 are
transparently mapped to an internal CoS of 0 and color of 0 in the default map. You might want to use a
customized mapping to group both PBit 0 and PBit 1, and map them to an internal CoS of 1)
The CoS maps you refer to using this API call must have already been created on the device.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 459
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Use the Market API to provision a service with a custom CoS mapping.
Sample request:
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Note in particular the following CoS parameters for the service endpoints the sample call provided below:
Sample request:
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"name": "EVPLCustomCoS",
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "3938_0032",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"port": "1"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 460
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
]
}
]
}
},
{
"settings": {
"node": "5142_0049",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosPolicy": "custom",
"ingressCosMapName": "CustomCosMap"
},
"location": {
"port": "19"
}
}
]
}
]
}
}
]
}
}
Sample response
{
"id": "5b327718-e9fb-49bf-8abe-f7c8a75f6724",
"resourceTypeId": "ifd.v5.resourceTypes.L2ServiceIntentFacade",
"productId": "5b326fdb-94a0-4811-9deb-b44d6316847c",
"tenantId": "6c64eec6-79db-4dfa-80e8-17df1eeeb8b8",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "EVPLCustomCoS",
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 461
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"port": "1"
},
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
],
"node": "3938_0032"
}
},
{
"settings": {
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "19"
},
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosMapName": "CustomCosMap",
"ingressCosPolicy": "custom"
}
}
]
}
],
"node": "5142_0049"
}
}
],
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-06-26T17:25:44.280Z",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 462
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"createdAt": "2018-06-26T17:25:44.280Z",
"autoClean": false
}
Note the service ID returned as the first line in the response. You can use that ID to retrieve the created
service using the following API call:
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
Sample response
{
"id": "5b327718-e9fb-49bf-8abe-f7c8a75f6724",
"resourceTypeId": "ifd.v5.resourceTypes.L2ServiceIntentFacade",
"productId": "5b326fdb-94a0-4811-9deb-b44d6316847c",
"tenantId": "6c64eec6-79db-4dfa-80e8-17df1eeeb8b8",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "EVPLCustomCoS",
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "1"
},
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
],
"node": "3938_0032"
}
},
{
"settings": {
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 463
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"location": {
"port": "19"
},
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosMapName": "CustomCoSMap",
"ingressCosPolicy": "custom"
}
}
]
}
],
"node": "5142_0049"
}
}
],
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-06-26T17:26:16.043Z",
"createdAt": "2018-06-26T17:25:44.280Z",
"autoClean": false
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Specify the attributes for the 2 endpoints, as applicable (A-end, Z-end), for example:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 464
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"name": "EVPL_PPW_node3_node8",
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"protectedPseudowire": true,
"endpoints": [
{
"settings": {
"node": "87_5783n3",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1785
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
"port": "5"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n8",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 465
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"outerVlanId": [
1785
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
"port": "1"
}
}
]
}
]
}
}
],
"linearOnly": false,
"allowQinQSpur": true,
"transportProtection": "UNPROTECTED_BEST_EFFORT"
}
}
Sample response
{
"id": "59289241-554c-49e0-bf90-801725a99ffc",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "EVPL_PPW_node3_node8",
"allowQinQSpur": true,
"endpoints": [
{
"settings": {
"node": "87_5783n3",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1785
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 466
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"port": "5"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n8",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1785
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
"port": "1"
}
}
]
}
]
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": true,
"transportProtection": "UNPROTECTED_BEST_EFFORT",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"linearOnly": false
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-26T20:38:25.419Z",
"createdAt": "2017-05-26T20:38:25.419Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 467
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management. )
This capability is also supported in cases where the LSP path includes linear Q-in-Q spurs.
Note: The example below show the configuration of a three-point protected E-Line service; but with minor
variations the same API call can be used to provision a conventional two-point E-Line service instead.
Sample request:
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
As part of the call, you must specify the LSP Tunnel Selection block, extracted below:
"primaryPathConstraints": {
"includeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_5775n4",
"IFDAutomation2"
],
"objectType": "LSP_NAME"
}
]
},
Sample request:
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [
],
"serviceType": "EVPL",
"ccmPriority": 2,
"name": "3pt_PPW",
"ccmInterval": "10sec",
"type": "FDFR",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 468
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"transportProtection": "UNPROTECTED_ONLY",
"lastTransition": "TRANSITION_NONE",
"interactive_mode": "false",
"maName": "3ptMa",
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": true,
"endpoints": [
{
"settings": {
"node": "87_5783n2",
"dmmEnabled": false,
"slmEnabled": false,
"ccmTransmitEnabled": true,
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3410
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "10"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
],
"oamEnabled": true
}
},
{
"settings": {
"node": "87_5783n4",
"dmmEnabled": false,
"slmEnabled": false,
"ccmTransmitEnabled": true,
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3490
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 469
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"port": "7"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
],
"oamEnabled": true
}
},
{
"settings": {
"node": "87_5783n5",
"dmmEnabled": false,
"slmEnabled": false,
"ccmTransmitEnabled": true,
"role": "Z_PRIME_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3490
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "8"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
],
"oamEnabled": true
}
}
],
"primaryPathConstraints": {
"includeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_5775n4",
"IFDAutomation2"
],
"objectType": "LSP_NAME"
}
]
},
"structure": "P2P",
"customerName": "DefaultCustomerName"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 470
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response
{
"id": "59284859-6f4b-400f-822d-dcf9c82e4e88",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [
],
"name": "3pt_PPW",
"oamEnabled": true,
"backupPathConstraints": {
"includeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_5783n3"
],
"objectType": "NODE_NAME"
}
]
},
"maName": "3ptMa",
"endpoints": [
{
"settings": {
"node": "87_5783n2",
"dmmEnabled": false,
"slmEnabled": false,
"ccmTransmitEnabled": true,
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3410
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "10"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
],
"oamEnabled": true
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 471
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
},
{
"settings": {
"node": "87_5783n4",
"dmmEnabled": false,
"slmEnabled": false,
"ccmTransmitEnabled": true,
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3490
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "7"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
],
"oamEnabled": true
}
},
{
"settings": {
"node": "87_5783n5",
"dmmEnabled": false,
"slmEnabled": false,
"ccmTransmitEnabled": true,
"role": "Z_PRIME_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3490
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "1",
"port": "8"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 472
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
],
"oamEnabled": true
}
}
],
"customerName": "DefaultCustomerName",
"transportProtection": "UNPROTECTED_ONLY",
"ccmInterval": "10sec",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"ccmPriority": 2,
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
},
"discovered": false,
"differences": [
],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {
},
"providerData": {
},
"updatedAt": "2017-05-26T15:23:05.725Z",
"createdAt": "2017-05-26T15:23:05.725Z",
"autoClean": false
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
• cir
• eir
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 473
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• cbs
• ebs
{
"productId": "{{L2T_PRODUCT_ID}}",
"label": "L2 EVPL Layer Termination A",
"discovered": false,
"properties":
{
"layerRate": "ETHERNET",
"evcPortType": "MAPPED",
"interfaceType": "UNI",
"signalIndex": {
"mappingTable": [
{ "label": "402" }
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"ingressPolicer": {
"cir": 1000,
"eir": 500,
"cbs": 200,
"ebs": 100
},
"controlFrameTunneling": "enabled"
}
Sample response
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management. )
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 474
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties":{
"serviceType": "EPL",
"ccmPriority": 3,
"name": "qinqEpl",
"ccmInterval": "10sec",
"protectedPseudowire": false,
"lastTransition": "TRANSITION_NONE",
"interactive_mode": "false",
"maName": "qinqEplMa",
"linearOnly": true,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": true,
"allowQinQSpur": false,
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName",
"primaryPathConstraints": {
"includeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_5783n2"
],
"objectType": "NODE_NAME"
}
]
},
"endpoints": [
{
"settings": {
"node": "87_5783n3",
"slmPriority": 6,
"dmmEnabled": true,
"slmEnabled": true,
"dmmInterval": "1min",
"ccmTransmitEnabled": true,
"dmmPriority": 5,
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"ingressPolicer": {
"cir": 1,
"eir": 1
},
}
],
"controlFrameTunneling": "enabled",
"filter": {},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
"port": "9"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 475
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
]
}
],
"oamEnabled": true,
"slmInterval": "10min"
}
},
{
"settings": {
"node": "87_5783n5",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {},
"location": {
"slot": "1",
"port": "10"
},
"controlFrameTunneling": "enabled",
}
],
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
]
}
}
Sample response
{
"id": "59283dec-ceb4-4207-bbc0-3e8bbdecf56c",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EPL",
"name": "qinqEpl",
"oamEnabled": true,
"allowQinQSpur": false,
"maName": "qinqEplMa",
"endpoints": [
{
"settings": {
"node": "87_5783n3",
"slmPriority": 6,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 476
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"dmmEnabled": true,
"slmEnabled": true,
"dmmInterval": "1min",
"ccmTransmitEnabled": true,
"dmmPriority": 5,
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"ingressPolicer": {
"cir": 1,
"eir": 1
},
}
],
"controlFrameTunneling": "enabled",
"filter": {},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
"port": "9"
}
}
]
}
],
"oamEnabled": true,
"slmInterval": "10min"
}
},
{
"settings": {
"node": "87_5783n5",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {},
"location": {
"slot": "1",
"port": "10"
},
"controlFrameTunneling": "enabled",
}
],
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 477
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"ccmInterval": "10sec",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"primaryPathConstraints": {
"includeRouteObjects": [
{
"constraintType": "HARD",
"value": [
"87_5783n2"
],
"objectType": "NODE_NAME"
}
]
},
"ccmPriority": 3,
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"linearOnly": true,
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-26T14:38:36.774Z",
"createdAt": "2017-05-26T14:38:36.774Z",
"autoClean": false
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
The transportProtection attribute specifies the underlying transport for the service. Values related to the
transportProtection attribute follow.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 478
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: The attribute "linearOnly": true constrains the service to be linear only, regardless of the
transportProtection.
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"allowQinQSpur": false,
"name": "unpUniEnni",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_ONLY",
"lastTransition": "TRANSITION_NONE",
"interactive_mode": "false",
"linearOnly": false,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": false,
"endpoints": [
{
"settings": {
"node": "87c_0008",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3512
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "2",
"port": "16"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 479
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
},
{
"settings": {
"node": "87c_0009",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVLANEthertype": "8100",
"outerVlanId": [
3522
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "3",
"port": "18"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName"
}
}
Sample response
{
"id": "59286a29-4bbf-4a50-b733-6cd5111395b7",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "unpUniEnni",
"oamEnabled": false,
"allowQinQSpur": false,
"endpoints": [
{
"settings": {
"node": "87c_0008",
"role": "A_UNI",
"details": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 480
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3512
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "2"
"port": "16"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
{
"settings": {
"node": "87c_0009",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVLANEthertype": "8100",
"outerVlanId": [
3522
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "3"
"port": "18"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 481
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"linearOnly": false,
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-26T17:47:21.556Z",
"createdAt": "2017-05-26T17:47:21.556Z",
"autoClean": false
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
• "allowQinQSpur": true
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"allowQinQSpur": true,
"name": "unpPwSpur",
"protectedPseudowire": false,
"lastTransition": "TRANSITION_NONE",
"interactive_mode": "false",
"linearOnly": false,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": false,
"endpoints": [
{
"settings": {
"node": "3938_0032",
"role": "A_UNI",
"details": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 482
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"flowSettings": [
{
"filter": {
"outerVlanId": [
3209
]
},
"controlFrameTunneling": "disabled",
"location": {
"port": "1"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
{
"settings": {
"node": "5142_0043",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3209
]
},
"controlFrameTunneling": "disabled",
"location": {
"port": "16"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName"
}
}
Sample response
{
"id": "59287b9f-0ddd-440e-ab3f-bc3ceed36ae9",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 483
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "unpPwSpur",
"oamEnabled": false,
"allowQinQSpur": true,
"endpoints": [
{
"settings": {
"node": "3938_0032",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3209
]
},
"controlFrameTunneling": "disabled",
"location": {
"port": "1"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
{
"settings": {
"node": "5142_0043",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3209
]
},
"controlFrameTunneling": "disabled",
"location": {
"port": "14"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 484
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
]
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"linearOnly": false,
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-26T19:01:51.211Z",
"createdAt": "2017-05-26T19:01:51.211Z",
"autoClean": false
}
You can also use the API to add a CFT-enabled endpoint with a particular CFT proile name to an existing
service.
This assumes that the custom L2CFT maps have previously been created on the device on which the
endpoint resides. If you add a new L2CFT map to an NE you can manually resynchronize MCP and the
node to immediately update MCP’s view of the available L2CFT maps on a given NE.
The API call below shows a service being provisoined that has CFT enabled on one enpoint, and CFT
disabled on the other endpoint.
POST MCP_SERVER/bpocore/market/api/v1/resources
Sample request
{
"productId": "5b2bf96e-1c5d-4b78-b604-009b3d87f717",
"properties": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 485
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"serverTrailList": [],
"serviceType": "EVPL",
"name": "rm-cft",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "87_5783n2",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
333
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 3
},
"location": {
"slot": "1",
"port": "1"
},
"controlFrameTunneling": "enabled",
"controlFrameTunnelingProfileName": "profile-
name"
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n4",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
333
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 3
},
"location": {
"slot": "1",
"port": "1"
},
"controlFrameTunneling": "disabled"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 486
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
]
}
]
}
}
]
}
}
Sample response
{
"id": "5b2bfbe9-5c69-45d1-98ed-6995cd385f82",
"resourceTypeId": "ifd.v5.resourceTypes.L2ServiceIntentFacade",
"productId": "5b2bf96e-1c5d-4b78-b604-009b3d87f717",
"tenantId": "f7b6ab85-a784-4593-8022-48467a2c57f3",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "rm-cft",
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "1",
"slot": "1"
},
"controlFrameTunneling": "enabled",
"filter": {
"outerVlanId": [
333
]
},
"ingressCosSetting": {
"ingressCosPbit": 3,
"ingressCosPolicy": "fixed"
},
"controlFrameTunnelingProfileName": "profile-
name"
}
]
}
],
"node": "87_5783n2"
}
},
{
"settings": {
"role": "Z_UNI",
"details": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 487
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"flowSettings": [
{
"location": {
"port": "1",
"slot": "1"
},
"filter": {
"outerVlanId": [
333
]
},
"ingressCosSetting": {
"ingressCosPbit": 3,
"ingressCosPolicy": "fixed"
}
}
]
}
],
"node": "87_5783n4"
}
}
],
"routeMeta": {
"originator": "BP2"
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-06-21T19:26:33.591Z",
"createdAt": "2018-06-21T19:26:33.591Z",
"autoClean": false
}
POST MCP_SERVER/bpocore/market/api/v1/resources/{resourceId}/operations
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 488
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n5",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
876
]
},
"controlFrameTunneling": "enabled",
"controlFrameTunnelingProfileName":
"profile-name",
"location": {
"slot": "1",
"port": "10"
}
}
]
}
]
}
}
}
]
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 489
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5b2c0b13-bc05-475a-bd6b-7b7a96ac2604",
"resourceId": "5b2c09fe-0afa-4399-9289-8433911d25be",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n5",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
876
]
},
"controlFrameTunneling": "enabled",
"controlFrameTunnelingProfileName":
"profile-name",
"location": {
"slot": "1",
"port": "10"
}
}
]
}
]
}
}
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-06-21T20:31:15.427Z",
"updatedAt": "2018-06-21T20:31:15.427Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 490
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Specify the following attributes in both settings sections of the endpoints in the request body, for
example:
• "oamEnabled": true,
• "ccmTransmitEnabled": true,
• "dmmEnabled": true,
• "dmmInterval": "10sec",
• "dmmPriority": 5,
• "slmEnabled": true,
• "slmInterval": "10sec",
• "slmPriority": 1,
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serviceType": "EVPL",
"name": "EvplCfmWbTest1",
"routeMeta": {
"originator": "BP2"
},
"interactive_mode": "true",
"oamEnabled": true,
"maName": "EvplCfmWbTest1",
"ccmInterval": "10sec",
"ccmPriority": 1,
"endpoints": [
{
"settings": {
"node": "3904_0011",
"role": "A_UNI",
"oamEnabled": true,
"ccmTransmitEnabled": true,
"dmmEnabled": true,
"dmmInterval": "10sec",
"dmmPriority": 5,
"slmEnabled": true,
"slmInterval": "10sec",
"slmPriority": 1,
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1001
]
},
"location": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 491
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"port": "2"
}
}
]
}
]
}
},
{
"settings": {
"node": "3938_0032",
"role": "Z_UNI",
"oamEnabled": true,
"ccmTransmitEnabled": true,
"dmmEnabled": true,
"dmmInterval": "10sec",
"dmmPriority": 5,
"slmEnabled": true,
"slmInterval": "10sec",
"slmPriority": 1,
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1001
]
},
"location": {
"port": "2"
}
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName",
"linearOnly":true
}
}
}
Sample response
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management. )
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 492
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The ingress class of service (CoS) policy is one parameter that the user needs to explicitly set — per
endpoint — on the fiber of the network side, during service provisioning. The CoS mapping applies to the
frame on the ingress device.
The following ingress CoS policies are supported: fixed, L2PcpCos, and L3DscpCos. The following are
samples of L3DscpCos.
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Specify the following attribute in the endpoint settings section of the request body:
• ingressCosSetting
◦ ingressCosPolicy
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"name": "EVPL_Facade_postman",
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "87_5783n7",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L3DscpCos"
},
"location": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 493
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"slot": "1",
"port": "11"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n8",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
781
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L3DscpCos"
},
"location": {
"slot": "1",
"port": "1"
}
}
]
}
]
}
}
]
}
}
Sample response
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 494
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
GET{{MCP Server}}/bpocore/market/api/v1/resources
https://<mcp_server>/bpocore/market/api/v1/resources/58cae7f0-434c-40e2-b6e4-417108f47cc3
Sample response
{
"id": "58cae7f0-434c-40e2-b6e4-417108f47cc3",
"label": "Facade EVPL_over_MPLS_created_from_postman",
"resourceTypeId": "ifd.v1.resourceTypes.L2ServiceIntentFacade",
"productId": "58cabe48-3594-485c-8135-62ba563afe94",
"tenantId": "dd9744f5-38e1-45f6-b203-f6ee975941e7",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "TestEvplMpls_1",
"endpoints": [
{
"settings": {
"node": "5160_0051",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "9"
}
}
]
}
]
}
]
}
},
{
"settings": {
"node": "3931_0018",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 495
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"outerVlanId": [
878
]
},
"ingressCosMapping": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"port": "2"
}
}
]
}
]
}
]
}
}
],
"customerName": "Customer Name",
"routeMeta": {
"originator": "BP2"
},
"linearOnly":false
},
"structure": "P2P",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-03-16T19:31:50.457Z",
"createdAt": "2017-03-16T19:30:57.090Z",
"autoClean": false
}
Considerations
1. Best effort cleanup of configuration during undeploy/delete (failure in deletion of 1 NE or config will
not prevent deletion of config on the rest of the NEs).
2. If a service deployment has failed (it is in INCOMPLETE_DEPLOYMENT state), then trying delete will
do the following:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 496
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
◦ Best effort cleanup of all devices will be attempted, including partial configs on NEs for which
deployment failed.
◦ All resources (facade, intent, expectations) will be deleted even if there are failures during
undeploy.
3. If service was deployed properly, attempting delete will do the following:
◦ Best effort cleanup of all devices will be attempted.
◦ If delete fails on a device then the resources (façade, intent, expectations) will NOT be deleted. The
user will still see a Service in “INCOMPLETE_UNDEPLOYMENT state.
Sample request
https://<mcp_server>/bpocore/market/api/v1/resources/58cae7f0-434c-40e2-b6e4-417108f47cc3
Sample response
To view the current set of BPO-IFD properties, use the Market API.
BP_SERVER/bpocore/market/api/v1/resources?exactTypeId=ifd.resourceTypes.IfdConfig
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 497
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "58a5fc80-e348-46a1-aa65-c05d4bdbfe0a",
"label": "ifd_properties",
"resourceTypeId": "ifd.resourceTypes.IfdConfig",
"productId": "58a5c8f2-42e1-418b-a83b-b546476197b2",
"tenantId": "a8fe33bc-bb0e-4cb8-9371-5dca8ffe0ad2",
"shared": false,
"properties": {
"configurationProperties": {
"ifd.l2.managementVlans": {
"default": "127",
"value": "918"
},
"ifd.l0.setExplicitFrequency": {
"default": "true",
"value": "true"
},
"ifd.l2.truncateSubportName": {
"default": "True",
"value": "False"
},
"ifd.l2.maximumTransmissionUnit": {
"default": "2000",
"value": "2000"
},
"ifd.l2.statusTlv": {
"default": "on",
"value": "on"
}
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-02-16T19:35:58.179Z",
"createdAt": "2017-02-16T19:24:49.103Z",
"autoClean": false
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
Note the Resource ID returned at the start of this reponse. This is the ID of the active IFD configuration.
Modifying properties
To modify a BPO-IFD property, issue an API call with the following syntax:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 498
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
BP_SERVER/bpocore/market/api/v1/resources/{{RESOURCE_ID}}
where the RESOURCE_ID is the resource ID of the active IFD configuration, which you can obtain by
viewing the current configuration as described above.
• the name of the property you want to change, included as the key in the configurationProperties object
• the value to which the property should be set, included as the "value" key of the named property
For example:
{
"properties": {
"configurationProperties": {
"ifd.l0.setExplicitFrequency": {
"value": "false"
}
}
}
}
One of the BPO-IFD properties that can be modified in this way is the following property that governs the
E-Line service types for which VLLI can be enabled:
ifd.l2.elineEvplVlli
Normally, VLLI can be enabled only for EPL E-Line services. To enable VLLI for EVPL E-Line services as
well, set this property to "true". For example:
{
"properties": {
"configurationProperties": {
"ifd.l2.elineEvplVlli": {
"value": "true"
}
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 499
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
This setting cannot be changed with the add endpoint. The ELAN service will remain with the same
constraint settings.
{
"resourceTypeId": "ifd.v3.resourceTypes.L2ServiceIntentFacade",
"properties": {
"serviceType": "EVPLAN",
"ccmPriority": 3,
"name": "evplanDemo",
"transportProtection": "MPLS_ONLY",
"allowQinQSpur": "false",
"ccmInterval": "1sec",
"profiles": [],
"userLabel": "Show an EVPLAN",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 500
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": true,
"endpoints": [
{
"settings": {
"ccmTransmitEnabled": true,
"node": "87_5783n4",
"oamEnabled": true,
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
543
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"slot": "1",
"port": "10"
},
"profiles": [],
"controlFrameTunneling": "disabled"
}
]
}
]
}
},
{
"settings": {
"ccmTransmitEnabled": true,
"node": "87_5783n5",
"oamEnabled": true,
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
543
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"slot": "1",
"port": "10"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 501
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"profiles": [],
"controlFrameTunneling": "disabled"
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "Untel"
},
"productId": "5a1dc4d4-99e0-4d69-8e95-d1d713fcfef6"
}
Sample response
{
"orchState": "activating",
"desiredOrchState": "active",
"resourceTypeId": "ifd.v3.resourceTypes.L2ServiceIntentFacade",
"tags": {},
"differences": [],
"autoClean": false,
"tenantId": "9b2efdf9-9c03-493a-bd28-f4b62d3643e3",
"discovered": false,
"reason": "",
"providerData": {
"templateResources": {}
},
"updatedAt": "2017-11-29T14:50:22.780Z",
"id": "5a1ec92e-11a0-404c-bd13-fb64696839ff",
"shared": false,
"properties": {
"serverTrailList": [],
"serviceType": "EVPLAN",
"ccmPriority": 3,
"name": "evplanDemo",
"transportProtection": "MPLS_ONLY",
"allowQinQSpur": "false",
"ccmInterval": "1sec",
"profiles": [],
"userLabel": "Show an EVPLAN",
"interactive_mode": "true",
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": true,
"endpoints": [
{
"settings": {
"ccmTransmitEnabled": true,
"node": "87_5783n4",
"oamEnabled": true,
"role": "UNI",
"details": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 502
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
543
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"slot": "1",
"port": "10"
},
"profiles": [],
"controlFrameTunneling": "disabled"
}
]
}
]
}
},
{
"settings": {
"ccmTransmitEnabled": true,
"node": "87_5783n5",
"oamEnabled": true,
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
543
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"location": {
"slot": "1",
"port": "10"
},
"profiles": [],
"controlFrameTunneling": "disabled"
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "Untel"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 503
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"createdAt": "2017-11-29T14:50:22.543Z",
"productId": "5a1dc4d4-99e0-4d69-8e95-d1d713fcfef6"
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{(FACADE_RESOURCE_ID)}/operations
• FACADE_RESOURCE_ID
The FACADE_RESOURCE_ID is the resource ID that was returned when the service was created. (For
an example, see the id in the Sample response for Provision an E-LAN service. )
If you did not capture the FACADE_RESOURCE_ID when you provisioned the ELAN service, you can
retrieve it using: Query by name (management name) for any given L2 facade resources:
◦ GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?q=properties.name%3A{{MANAGEMENT_NA
ME}}&resourceTypeId=ifd.v3.resourceTypes.L2ServiceIntentFacade*
The modify custom operation includes the "resource_properties_jsonpatch" array of objects that are
jsonpatch compliant (https://tools.ietf.org/html/rfc6902). The “Add endpoint” use case includes:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 504
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n4",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
111
]
},
"location": {
"slot": "1",
"port": "9"
},
"ingressCosSetting": {
"ingressCosPbit": 7,
"ingressCosPolicy": "fixed"
}
}
]
}
]
}
}
}
]
}
}
Sample response
• As with all Orchestrate custom operations, “state” provides the server processing status of the custom
operation.
• To monitor the outcome of this custom operation you can use the Market REST API:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 505
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• The response is similar to the initial response of the custom operation. The “state” may now reflect
the new status of this custom operation. Refer to Orchestrate custom operation documentation for
more details.
{
"id": "5a0c63de-e89a-4610-9689-4973c24b355a",
"resourceId": "5a0c62cd-657f-45d0-8d01-9511cacf0ca8",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n2",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
111
]
},
"location": {
"slot": "1",
"port": "10"
},
"ingressCosSetting": {
"ingressCosPbit": 7,
"ingressCosPolicy": "fixed"
}
}
]
}
]
}
}
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2017-11-15T15:57:18.530Z",
"updatedAt": "2017-11-15T15:57:18.530Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 506
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
You can specify a customized CoS mapping to use when adding a new endpoint to an E-LAN service.
You might want to use a customized CoS mapping to rearrange adjacent service provider CoS, or to
merge together existing CoS mappings. (For example, on a SAOS 6x platform a PBit of 0 and DEI of 0 are
transparently mapped to an internal CoS of 0 and color of 0 in the default map. You might want to use a
customized mapping to group both PBit 0 and PBit 1, and map them to an internal CoS of 1)
The CoS maps you refer to using this API call must have already been created on the node on which the
endpoint resides.
Use the following Market API call to add an endpoint to an E-LAN service that uses a customized CoS
mapping:
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}/operations
For this call, SVC_RSC_ID is the Facade resource ID of the Layer-2 service.
Note in particular the following CoS parameters in the sample call provided below:
Sample request:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 507
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n3",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1115
]
},
"location": {
"slot": "1",
"port": "11"
},
"ingressCosSetting": {
"ingressCosPolicy": "custom",
"ingressCosMapName": "CosMap2"
}
}
]
}
]
}
}
}
]
}
}
Sample response:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 508
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5b327718-e9fb-49bf-8abe-f7c8a75f6724",
"resourceId": "5b327a3e-807e-4aa8-bb39-c34ee13993ea",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n3",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1115
]
},
"location": {
"slot": "1",
"port": "11"
},
"ingressCosSetting": {
"ingressCosPolicy": "custom",
"ingressCosMapName": "CosMap2"
}
}
]
}
]
}
}
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-06-26T17:42:11.354Z",
"updatedAt": "2018-06-26T17:42:11.354Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
To delete a single endpoint from an existing E-LAN service, use the Market API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 509
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{(FACADE_RESOURCE_ID)}/operations
• FACADE_RESOURCE_ID
The FACADE_RESOURCE_ID is the resource ID that was returned when the service was created. (For
an example, see the id in the Sample response for Provision an E-LAN service. )
If you did not capture the FACADE_RESOURCE_ID when you provisioned the ELAN service, you can
retrieve it using: Query by name (management name) for any given L2 facade resources:
◦ GET
{{BP_SERVER}}/bpocore/market/api/v1/resources?q=properties.name%3A{{MANAGEMENT_NAM
E}}&resourceTypeId=ifd.v5.resourceTypes.L2ServiceIntentFacade*
This API call involves the same modify custom operation as in the “Add endpoint”. For this “Delete
endpoint” use case the following is used:
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "remove",
"path": "/properties/endpoints/0"
}
]
}
}
Sample response
• As with all Orchestrate custom operations, “state” provides the server processing status of the custom
operation.
• To monitor the outcome of this custom operation you can use the Market REST API:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 510
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
resource
{
"id": "5a0c63de-e89a-4610-9689-4973c24b355a",
"resourceId": "5a0c62cd-657f-45d0-8d01-9511cacf0ca8",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [{
"op": "remove",
"path": "/properties/endpoints/0",
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2017-11-15T15:57:18.530Z",
"updatedAt": "2017-11-15T15:57:18.530Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 511
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• Edit service and endpoint attributes: You can use the same API to edit service and endpoint attributes
for an E-Tree, E-LAN, or E-Line service. See Edit service and endpoint attributes.
• Delete an E-Tree service: You can use the same API to delete an E-Tree, E-LAN, or E-Line service. See
Delete an ELINE service by provisioning intent.
6200 devices support E-Tree provisioning in the same way as other supported devices with the following
exceptions:
• MCP supports 6200 devices running software version 2.0 or 2.1, with the following requirements:
CFM is not supported on devices running any version of software 2.0 including:
6200 devices cannot be configured as a root node in an E-Tree Packet service; they can only be
provisioned as a leaf node.
If a Packet service is created without CFM, editing that E-Tree Packet service by adding CFM to it
will fail on 6200 devices. This is due to limitations in the MCP architecture.
◦ Each E-Tree Packet service may only include a single leaf on each 6200 device.
If an E-Tree Packet service is created with 6200 devices as leaves, then you cannot add an
additional leaf to those same devices already in that service.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 512
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
This section includes the following topics for creating an E-Tree service over static MPLS transport with
SS-PW / MS-PW:
Note: An E-Tree service can only be created for a single root with a leaf or a dual root with a leaf. After you
have created an E-Tree service, you can add a leaf endpoint to the E-Tree service. See "Add an endpoint to
an existing E-Tree service".
Sample request
Specify the endpointRole "ROOT" or endpointRole "LEAF" for a single-root E-Tree service.
Note: The following is an example of an E-Tree service with a single root and a single leaf on 8700 on a
single tunnel (SS-PW). The same API applies to both single tunnel (SS-PW) and multiple tunnels (MS-PW).
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serviceType": "EVPTREE",
"name": "etree_1R_1L",
"userLabel": "ETree_1Root_1Leaf",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "87_5783n7",
"role": "UNI",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 513
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"endpointRole": "ROOT",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
762
]
},
"location": {
"slot": "1",
"port": "8"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n8",
"role": "UNI",
"endpointRole": "LEAF",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
762
]
},
"location": {
"slot": "1",
"port": "1"
}
}
]
}
]
}
}
],
"transportProtection": "UNPROTECTED_ONLY"
}
}
Sample response
{
"id": "5b22b7bf-78d9-4c1e-9e6c-a231c25aa668",
"resourceTypeId": "ifd.v5.resourceTypes.L2ServiceIntentFacade",
"productId": "5b1eb960-ff93-4cc1-b10f-60a92d01ac09",
"tenantId": "1da6d5b9-5d45-4181-a415-8ba3c43c11ff",
"shared": false,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 514
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"properties": {
"serviceType": "EVPTREE",
"name": "etree_1R_1L",
"endpoints": [
{
"settings": {
"endpointRole": "ROOT",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "8",
"slot": "1"
},
"filter": {
"outerVlanId": [
762
]
}
}
]
}
],
"node": "87_5783n7"
}
},
{
"settings": {
"endpointRole": "LEAF",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "1",
"slot": "1"
},
"filter": {
"outerVlanId": [
762
]
}
}
]
}
],
"node": "87_5783n8"
}
}
],
"transportProtection": "UNPROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"userLabel": "ETree_1Root_1Leaf"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 515
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-06-14T18:45:20.057Z",
"createdAt": "2018-06-14T18:45:20.057Z",
"autoClean": false
}
Sample request
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
Specify the SVC_RSC_ID, which is the "id" you can find in the Sample response of the POST API call (see
above).
Sample response
{
"id": "5b22b7bf-78d9-4c1e-9e6c-a231c25aa668",
"resourceTypeId": "ifd.v5.resourceTypes.L2ServiceIntentFacade",
"productId": "5b1eb960-ff93-4cc1-b10f-60a92d01ac09",
"tenantId": "1da6d5b9-5d45-4181-a415-8ba3c43c11ff",
"shared": false,
"properties": {
"serviceType": "EVPTREE",
"name": "etree_1R_1L",
"endpoints": [
{
"settings": {
"endpointRole": "ROOT",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "8",
"slot": "1"
},
"filter": {
"outerVlanId": [
762
]
}
}
]
}
],
"node": "87_5783n7"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 516
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
},
{
"settings": {
"endpointRole": "LEAF",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "1",
"slot": "1"
},
"filter": {
"outerVlanId": [
762
]
}
}
]
}
],
"node": "87_5783n8"
}
}
],
"transportProtection": "UNPROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"userLabel": "ETree_1Root_1Leaf"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-06-14T18:45:44.118Z",
"createdAt": "2018-06-14T18:45:20.057Z",
"autoClean": false
}
Sample request
Specify the endpointRole "ROOT" or endpointRole "LEAF" for a dual-root E-Tree service.
For a dual-root E-Tree service, you must specify two endpointRole "ROOT". Both roots must be on the
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 517
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: The following is an example of an E-Tree service with dual roots and a single leaf on 8700 on a
single tunnel (SS-PW). The same API applies to both single tunnel (SS-PW) and multiple tunnels (MS-PW).
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serviceType": "EVPTREE",
"name": "Etree_2R_1L",
"userLabel": "ETree_2Root_1Leaf",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "87_5783n7",
"role": "UNI",
"endpointRole": "ROOT",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
921
]
},
"location": {
"slot": "1",
"port": "8"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n7",
"role": "UNI",
"endpointRole": "ROOT",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
921
]
},
"location": {
"slot": "1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 518
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"port": "9"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n8",
"role": "UNI",
"endpointRole": "LEAF",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
921
]
},
"location": {
"slot": "1",
"port": "1"
}
}
]
}
]
}
}
],
"transportProtection": "UNPROTECTED_ONLY"
}
}
Sample response
{
"id": "5b22c061-fc8a-4df0-a81a-af34e9bf4b1e",
"resourceTypeId": "ifd.v5.resourceTypes.L2ServiceIntentFacade",
"productId": "5b1eb960-ff93-4cc1-b10f-60a92d01ac09",
"tenantId": "1da6d5b9-5d45-4181-a415-8ba3c43c11ff",
"shared": false,
"properties": {
"serviceType": "EVPTREE",
"name": "Etree_2R_1L",
"endpoints": [
{
"settings": {
"endpointRole": "ROOT",
"role": "UNI",
"details": [
{
"flowSettings": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 519
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"location": {
"port": "8",
"slot": "1"
},
"filter": {
"outerVlanId": [
921
]
}
}
]
}
],
"node": "87_5783n7"
}
},
{
"settings": {
"endpointRole": "ROOT",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "9",
"slot": "1"
},
"filter": {
"outerVlanId": [
921
]
}
}
]
}
],
"node": "87_5783n7"
}
},
{
"settings": {
"endpointRole": "LEAF",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "1",
"slot": "1"
},
"filter": {
"outerVlanId": [
921
]
}
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 520
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
],
"node": "87_5783n8"
}
}
],
"transportProtection": "UNPROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"userLabel": "ETree_2Root_1Leaf"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-06-14T19:22:09.379Z",
"createdAt": "2018-06-14T19:22:09.379Z",
"autoClean": false
}
Sample request
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
Specify the SVC_RSC_ID, which is the "id" you can find in the Sample response of the POST API call (see
above).
Sample response
{
"id": "5b22c061-fc8a-4df0-a81a-af34e9bf4b1e",
"resourceTypeId": "ifd.v5.resourceTypes.L2ServiceIntentFacade",
"productId": "5b1eb960-ff93-4cc1-b10f-60a92d01ac09",
"tenantId": "1da6d5b9-5d45-4181-a415-8ba3c43c11ff",
"shared": false,
"properties": {
"serviceType": "EVPTREE",
"name": "Etree_2R_1L",
"endpoints": [
{
"settings": {
"endpointRole": "ROOT",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "8",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 521
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"slot": "1"
},
"filter": {
"outerVlanId": [
921
]
}
}
]
}
],
"node": "87_5783n7"
}
},
{
"settings": {
"endpointRole": "ROOT",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "9",
"slot": "1"
},
"filter": {
"outerVlanId": [
921
]
}
}
]
}
],
"node": "87_5783n7"
}
},
{
"settings": {
"endpointRole": "LEAF",
"role": "UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "1",
"slot": "1"
},
"filter": {
"outerVlanId": [
921
]
}
}
]
}
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 522
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"node": "87_5783n8"
}
}
],
"transportProtection": "UNPROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"userLabel": "ETree_2Root_1Leaf"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-06-14T19:22:33.686Z",
"createdAt": "2018-06-14T19:22:09.379Z",
"autoClean": false
}
• Add a leaf endpoint with a node exclusion constraint, which includes the following samples: Facade
request and response, and an Intent request and response
• Add a leaf endpoint with a tunnel inclusion constraint, which includes the following samples: Facade
request and response, and an Intent request and response
To add a leaf endpoint to an existing E-Tree service, use the Market API.
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{(FACADE_RESOURCE_ID)}/operations
• FACADE_RESOURCE_ID
The FACADE_RESOURCE_ID is the resource ID that was returned when the service was created. (For
an example, see the id in the Sample response for Provision an E-Tree service. )
If you did not capture the FACADE_RESOURCE_ID when you provisioned the E-Tree service, you can
retrieve it using: Query by name (management name) for any given L2 facade resources:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 523
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
◦ GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?q=properties.name%3A{{MANAGEMENT_NA
ME}}&resourceTypeId=ifd.v5.resourceTypes.L2ServiceIntentFacade*
The modify custom operation includes the "resource_properties_jsonpatch" array of objects that are
jsonpatch compliant (https://tools.ietf.org/html/rfc6902). The “Add leaf endpoint” use case includes:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 524
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n3",
"endpointRole": "LEAF",
"role": "UNI",
"details": [{
"flowSettings": [{
"filter": {
"outerVlanId": [
600
]
},
"location": {
"slot": "1",
"port": "9"
},
"controlFrameTunneling": "disabled"
}
]
}
]
}
}
}
],
"routingConstraints": {
"excludeRouteObjects": [{
"constraintType": "HARD",
"locations": [{
"nodeName": "87_5783n3"
}
],
"objectType": "NODE_NAME"
}
]
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 525
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5a0c63de-e89a-4610-9689-4973c24b355a",
"resourceId": "5a0c62cd-657f-45d0-8d01-9511cacf0ca8",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n3",
"endpointRole": "LEAF",
"role": "UNI",
"details": [{
"flowSettings": [{
"filter": {
"outerVlanId": [
600
]
},
"location": {
"slot": "1",
"port": "9"
},
"controlFrameTunneling": "disabled"
}
]
}
]
}
}
}
],
"routingConstraints": {
"excludeRouteObjects": [{
"constraintType": "HARD",
"locations": [{
"nodeName": "87_5783n3"
}
],
"objectType": "NODE_NAME"
}
]
}
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2017-11-15T15:57:18.530Z",
"updatedAt": "2017-11-15T15:57:18.530Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 526
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n3",
"endpointRole": "LEAF",
"role": "UNI",
"details": [{
"flowSettings": [{
"filter": {
"outerVlanId": [
600
]
},
"location": {
"slot": "1",
"port": "9"
},
"controlFrameTunneling": "disabled"
}
]
}
]
}
}
}
],
"routingConstraints": {
"includeRouteObjects": [{
"constraintType": "HARD",
"locations": [{
"lspName": "jmLspn3n5",
"nodeName": "87_5783n3"
}
],
"objectType": "LSP_NAME"
}
]
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 527
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5a0c63de-e89a-4610-9689-4973c24b355a",
"resourceId": "5a0c62cd-657f-45d0-8d01-9511cacf0ca8",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "87_5783n3",
"endpointRole": "LEAF",
"role": "UNI",
"details": [{
"flowSettings": [{
"filter": {
"outerVlanId": [
600
]
},
"location": {
"slot": "1",
"port": "9"
},
"controlFrameTunneling": "disabled"
}
]
}
]
}
}
}
],
"routingConstraints": {
"includeRouteObjects": [{
"constraintType": "HARD",
"locations": [{
"lspName": "jmLspn3n5",
"nodeName": "87_5783n3"
}
],
"objectType": "LSP_NAME"
}
]
}
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2017-11-15T15:57:18.530Z",
"updatedAt": "2017-11-15T15:57:18.530Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 528
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• As with all Orchestrate custom operations, “state” provides the server processing status of the custom
operation.
• To monitor the outcome of this custom operation you can use the Market REST API:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 529
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• Provision unprot E-ACCESS EVPL COS MPLS prot/unprot tunnels with/wout QinQ spurs
• Provision unprot E-ACCESS EPL COS MPLS prot/unprot tunnels with/wout QinQ spurs
• Provision E-ACCESS E-Line services
• Provision E-Transit E-Line services
Note: For the related Sample request and Sample response bodies, see Provision E-ACCESS ELINE
services.
Sample request
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serviceType": "EPL",
"name": "unpEpl3",
"oamEnabled": false,
"allowQinQSpur": false,
"endpoints": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 530
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {},
"location": {
"port": "3"
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"profiles": [],
"controlFrameTunneling": "disabled"
}
]
}
],
"node": "5142_0017"
}
},
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {},
"location": {
"port": "3"
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"profiles": [],
"controlFrameTunneling": "disabled"
}
]
}
],
"node": "5142_0043"
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_BEST_EFFORT",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"type": "FDFR",
"linearOnly": false,
"profiles": []
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 531
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
Sample response
{
"id": "594c12e3-486f-40bd-a5dd-58d59d4e76bd",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "59499ab1-f3e3-4999-94a5-45845654978d",
"tenantId": "70115554-0399-4879-894d-6329c957f9df",
"shared": false,
"properties": {
"serviceType": "EPL",
"name": "unpEpl3",
"oamEnabled": false,
"allowQinQSpur": false,
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {},
"location": {
"port": "3"
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"profiles": [],
"controlFrameTunneling": "disabled"
}
]
}
],
"node": "5142_0017"
}
},
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {},
"location": {
"port": "3"
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 5
},
"profiles": [],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 532
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"controlFrameTunneling": "disabled"
}
]
}
],
"node": "5142_0043"
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_BEST_EFFORT",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"linearOnly": false,
"profiles": []
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-22T18:56:35.630Z",
"createdAt": "2017-06-22T18:56:35.630Z",
"autoClean": false
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Note: A_UNI and Z_ENNI are keywords used specifically for E-Access services
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 533
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Below is an example of configuring an E-Access EVPL service using linear QinQ transport.
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"allowQinQSpur": false,
"name": "unpUniEnni",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_ONLY",
"lastTransition": "TRANSITION_NONE",
"interactive_mode": "false",
"linearOnly": false,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": false,
"endpoints": [
{
"settings": {
"node": "87c_0008",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3512
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "2",
"port": "16"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
{
"settings": {
"node": "87c_0009",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVLANEthertype": "8100",
"outerVlanId": [
3522
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 534
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "3",
"port": "18"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName"
}
}
Sample response
{
"id": "59286a29-4bbf-4a50-b733-6cd5111395b7",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "unpUniEnni",
"oamEnabled": false,
"allowQinQSpur": false,
"endpoints": [
{
"settings": {
"node": "87c_0008",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3512
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "2"
"port": "16"
},
"ingressCosSetting": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 535
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
{
"settings": {
"node": "87c_0009",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVLANEthertype": "8100",
"outerVlanId": [
3522
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "3",
"port": "18"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"linearOnly": false,
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-26T17:47:21.556Z",
"createdAt": "2017-05-26T17:47:21.556Z",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 536
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"autoClean": false
}
Below is an example of configuring an E-Access EVPL service on an 8700 node using MPLS transport.
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"allowQinQSpur": false,
"name": "unpUniEnni",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_ONLY",
"lastTransition": "TRANSITION_NONE",
"interactive_mode": "false",
"linearOnly": false,
"routeMeta": {
"originator": "BP2"
},
"oamEnabled": false,
"endpoints": [
{
"settings": {
"node": "87c_0008",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3512
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "2"
"port": "16"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 537
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
}
},
{
"settings": {
"node": "87c_0009",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVLANEthertype": "8100",
"outerVlanId": [
3522
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "3",
"port": "18"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName"
}
}
Sample response
{
"id": "59286a29-4bbf-4a50-b733-6cd5111395b7",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "5926fd2e-40a7-40fc-a67a-753ff87a8216",
"tenantId": "00067aa3-335d-45e8-8fd8-eff7bd16a92f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "unpUniEnni",
"oamEnabled": false,
"allowQinQSpur": false,
"endpoints": [
{
"settings": {
"node": "87c_0008",
"role": "A_UNI",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 538
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
3512
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "2
"port": "16"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
},
{
"settings": {
"node": "87c_0009",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVLANEthertype": "8100",
"outerVlanId": [
3522
]
},
"controlFrameTunneling": "disabled",
"location": {
"slot": "3", "port":
"18"
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
}
}
]
}
]
}
}
],
"customerName": "DefaultCustomerName",
"protectedPseudowire": false,
"transportProtection": "PROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 539
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"interactive_mode": "false",
"type": "FDFR",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"linearOnly": false,
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-26T17:47:21.556Z",
"createdAt": "2017-05-26T17:47:21.556Z",
"autoClean": false
}
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Below is an example of configuring an E-Transit service for a SAOS 6.x EVPL service with only QinQ
transport.
Note: A_ENNI and Z_ENNI are keywords used specifically for E-Transit services
Sample request
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"name": "ET_6xQinQ",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 540
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "FDFR",
"structure": "P2P",
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "3930_0022",
"role": "A_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
601
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"port": "21"
},
"profiles": []
}
]
}
]
}
},
{
"settings": {
"node": "3942_0003",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1601
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"port": "21"
},
"profiles": []
}
]
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 541
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
],
"linearOnly": true
}
}
Sample response
{
"id": "5a0c9ad9-5a94-4c0b-9a85-ca9c8e3caae6",
"resourceTypeId": "ifd.v3.resourceTypes.L2ServiceIntentFacade",
"productId": "5a0c9570-6537-472d-8225-094dbf3d850b",
"tenantId": "42264637-9d69-413c-9daf-a0052b73c77b",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "ET_6xQinQ",
"endpoints": [
{
"settings": {
"role": "A_ENNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "21"
},
"filter": {
"outerVlanId": [
601
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"profiles": []
}
]
}
],
"node": "3930_0022"
}
},
{
"settings": {
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "21"
},
"filter": {
"outerVlanId": [
1601
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 542
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"profiles": []
}
]
}
],
"node": "3942_0003"
}
}
],
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR",
"linearOnly": true
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-11-15T19:51:53.993Z",
"createdAt": "2017-11-15T19:51:53.993Z",
"autoClean": false
}
Below is an example of configuring an E-TRANSIT service for a SAOS 8.x EVPL service with MPLS
transport.
Sample request
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPL",
"name": "ET_8xMpls",
"type": "FDFR",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 543
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"structure": "P2P",
"customerName": "DefaultCustomerName",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "87_5783n3",
"role": "A_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
533
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
"port": "8"
},
"profiles": []
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n7",
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
1233
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"location": {
"slot": "1",
"port": "11"
},
"profiles": []
}
]
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 544
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
],
"transportProtection": "UNPROTECTED_ONLY"
}
}
Sample response
{
"id": "5a0c9e52-0f16-4327-ae35-0fcf813fea81",
"resourceTypeId": "ifd.v3.resourceTypes.L2ServiceIntentFacade",
"productId": "5a0c9570-6537-472d-8225-094dbf3d850b",
"tenantId": "42264637-9d69-413c-9daf-a0052b73c77b",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "ET_8xMpls",
"endpoints": [
{
"settings": {
"role": "A_ENNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "8",
"slot": "1"
},
"filter": {
"outerVlanId": [
533
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"profiles": []
}
]
}
],
"node": "87_5783n3"
}
},
{
"settings": {
"role": "Z_ENNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "11",
"slot": "1"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 545
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"filter": {
"outerVlanId": [
1233
]
},
"ingressCosSetting": {
"ingressCosPolicy": "L2PcpCos"
},
"profiles": []
}
]
}
],
"node": "87_5783n7"
}
}
],
"customerName": "DefaultCustomerName",
"transportProtection": "UNPROTECTED_ONLY",
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-11-15T20:06:42.706Z",
"createdAt": "2017-11-15T20:06:42.706Z",
"autoClean": false
}
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 546
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• Retrieve unprotected E1 TDM CEM service over static MPLS (6200 endpoints)
• Retrieve unprotected E1 TDM CEM over static MPLS (CES endpoints)
• Retrieve unprotected E1 TDM CEM over static MPLS (CES and 6200 endpoints)
• Retrieve unprotected unchannelized E1 PDH CEM service over static MPLS (3932)
• Retrieve unprotected STS-1 TDM CEM over static MPLS (6500 PTS endpoints)
• Retrieve a DS1 TDM endpoint (6500 PTS endpoints)
• Create/delete unprotected E1 TDM CEM service over static MPLS (6200 endpoints)
• Create/delete unprotected E1 TDM CEM service over static MPLS (CES endpoints)
• Create/delete unprotected E1 TDM CEM service over static MPLS (CES and 6200 endpoints)
• Create/delete unprotected unchannelized E1 PDH CEM over static MPLS
To discover and inventory the E1 TDM CEM service, use the Services inventory (FREs) API.
Sample request
GET {{BP_SERVER}}/nsi/api/fres
https://<mcphostname>/nsi/api/fres?layerRate=E1&type=service&include=tpes
{
"meta": {
"total": 48,
"aggregations": [
]
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 547
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"links": {
"next": "https:\/\/ptop.only.wip.la:443\/https\/mcp-
qa1.cyanoptics.com\/nsi\/api\/fres?layerRate=E1&type=service&include=tpes&offset=30
&limit=30"
},
"data": [
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM",
"type": "fres",
"attributes": {
"operationState": "fully operating",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2",
"nodalId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered"
},
"resourceState": "discovered",
"serviceClass": "TDM",
"mgmtName": "testt2",
"layerRate": "E1",
"multiHighestStackLayerRate": "E1",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"signalContentType": "TDM",
"active": true,
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP0"
},
{
"type": "endPoints",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP1"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 548
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2"
}
}
}
},
...
],
"included": [
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP0",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_CTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_FTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
...
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 549
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
}
To discover and inventory the E1 TDM CEM service, use the Services inventory (FREs) API.
Sample request
GET {{BP_SERVER}}/nsi/api/fres
https://<mcphostname>/nsi/api/fres?layerRate=E1&type=service&include=tpes
{
"meta": {
"total": 48,
"aggregations": [
]
},
"links": {
"next": "https:\/\/ptop.only.wip.la:443\/https\/mcp-
qa1.cyanoptics.com\/nsi\/api\/fres?layerRate=E1&type=service&include=tpes&offset=30
&limit=30"
},
"data": [
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM",
"type": "fres",
"attributes": {
"operationState": "fully operating",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2",
"nodalId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM"
}
],
"derivedAttributes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 550
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 551
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_CTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_FTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
...
]
}
To discover and inventory the E1 TDM CEM service, use the Services inventory (FREs) API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 552
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{BP_SERVER}}/nsi/api/fres
https://<mcphostname>/nsi/api/fres?layerRate=E1&type=service&include=tpes
{
"meta": {
"total": 48,
"aggregations": [
]
},
"links": {
"next": "https:\/\/ptop.only.wip.la:443\/https\/mcp-
qa1.cyanoptics.com\/nsi\/api\/fres?layerRate=E1&type=service&include=tpes&offset=30
&limit=30"
},
"data": [
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM",
"type": "fres",
"attributes": {
"operationState": "fully operating",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2",
"nodalId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered"
},
"resourceState": "discovered",
"serviceClass": "TDM",
"mgmtName": "testt2",
"layerRate": "E1",
"multiHighestStackLayerRate": "E1",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"signalContentType": "TDM",
"active": true,
"additionalAttributes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 553
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"isActual": "true"
}
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP0"
},
{
"type": "endPoints",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2"
}
}
}
},
...
],
"included": [
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP0",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_CTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 554
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_FTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
...
]
}
To discover and inventory the E1 PDH CEM service, use the Services inventory (FREs) API.
Sample request
GET {{BP_SERVER}}/nsi/api/fres
https://<mcphostname>/nsi/api/fres?layerRate=E1&type=service&include=tpes
{
"meta": {
"total": 48,
"aggregations": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 555
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
},
"links": {
"next": "https:\/\/ptop.only.wip.la:443\/https\/mcp-
qa1.cyanoptics.com\/nsi\/api\/fres?layerRate=E1&type=service&include=tpes&offset=30
&limit=30"
},
"data": [
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM",
"type": "fres",
"attributes": {
"operationState": "fully operating",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2",
"nodalId": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered"
},
"resourceState": "discovered",
"serviceClass": "TDM",
"mgmtName": "testt2",
"layerRate": "E1",
"multiHighestStackLayerRate": "E1",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"signalContentType": "TDM",
"active": true,
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP0"
},
{
"type": "endPoints",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 556
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2"
}
}
}
},
...
],
"included": [
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP0",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_CTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "095c1159-29e6-36e3-bd00-a6d9cfcd11d2::FRE_testt2_8_24_TDM::EP1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "095c1159-29e6-36e3-bd00-
a6d9cfcd11d2::TPE_testt2_8_24_PTP_E1_FTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 557
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
...
]
}
To discover and inventory the STS-1 TDM CEM service, use the Services inventory (FREs) API.
Sample request
GET {{BP_SERVER}}/nsi/api/fres
https://<mcphostname>/nsi/api/v4/fres?layerRate=STS1&type=service&include=tpes
{
"meta": {
"total": 3,
"aggregations": [
]
},
"data": [
{
"id": "1380852671881973023",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "discovered",
"policies": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 558
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "TDM",
"tags": [
"CEP"
],
"userLabel": "tdmvc_srv901",
"mgmtName": "tdmvc_srv901",
"nativeName": "",
"layerRate": "STS1",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"adminState": "In Service",
"signalContentType": "TDM",
"usedBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"1.0"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"reliability": "manual"
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "1380852671881973023"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1380852671881973023:1"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 559
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
{
"type": "endPoints",
"id": "1380852671881973023:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-2673296440621120110"
},
{
"type": "fres",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM"
},
{
"type": "fres",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM"
}
]
}
}
},
{
"id": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM",
"type": "fres",
"attributes": {
"operationState": "fully operating",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "267de837-45d6-3fe9-9528-e19a6765b481",
"nodalId": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up"
},
"resourceState": "discovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 560
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
},
"userLabel": "tdmvc_srv901",
"mgmtName": "tdmvc_srv901",
"layerRate": "STS1",
"multiHighestStackLayerRate": "STS1",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"signalContentType": "TDM",
"active": true,
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP0"
},
{
"type": "endPoints",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "267de837-45d6-3fe9-9528-e19a6765b481"
}
}
}
},
{
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM",
"type": "fres",
"attributes": {
"operationState": "fully operating",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b",
"nodalId": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 561
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up"
},
"resourceState": "discovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"userLabel": "tdmvc_srv901",
"mgmtName": "tdmvc_srv901",
"layerRate": "STS1",
"multiHighestStackLayerRate": "STS1",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"signalContentType": "TDM",
"active": true,
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP0"
},
{
"type": "endPoints",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP1"
}
]
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 562
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b"
}
}
}
}
],
"included": [
{
"id": "1380852671881973023:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "1380852671881973023:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP0",
"type": "endPoints",
"attributes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 563
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "267de837-45d6-3fe9-9528-e19a6765b481::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_tdmvc_srv901_1-2-
9_S1P1_PTP_CES_IWF_FTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP0",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient"
}
],
"meta": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 564
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"partiallyPopulated": true
}
}
}
},
{
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::FRE_tdmvc_srv901_1-2-
9_S1P1_TDM::EP1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::TPE_tdmvc_srv901_1-2-
9_S1P1_PTP_CES_IWF_FTP"
}
],
"meta": {
"partiallyPopulated": true
}
}
}
},
{
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "2",
"port": "9",
"channel": "S1P1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "267de837-45d6-3fe9-9528-e19a6765b481"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::EQPT_1_2"
}
}
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 565
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "2",
"port": "9",
"channel": "S1P1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::EQPT_1_2"
}
}
}
},
{
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "2",
"port": "9",
"channel": "S1P1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "267de837-45d6-3fe9-9528-e19a6765b481"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::EQPT_1_2"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 566
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
},
{
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_tdmvc_srv901_1-2-
9_S1P1_PTP_CES_IWF_FTP",
"type": "tpes",
"attributes": {
"structureType": "FTP",
"locations": [
{
"managementType": "saos",
"shelf": "1",
"slot": "2",
"port": "9"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "267de837-45d6-3fe9-9528-e19a6765b481"
}
}
}
},
{
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::TPE_1-2-
9_S1P1_PTP_STS1_CTPServerToClient",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "2",
"port": "9",
"channel": "S1P1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::EQPT_1_2"
}
}
}
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 567
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b::TPE_tdmvc_srv901_1-2-
9_S1P1_PTP_CES_IWF_FTP",
"type": "tpes",
"attributes": {
"structureType": "FTP",
"locations": [
{
"managementType": "saos",
"shelf": "1",
"slot": "2",
"port": "9"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "35cb8585-d5a5-396f-a4f0-edb4b0e6b51b"
}
}
}
}
]
}
To query a discovered and inventoried DS1 TDM endpoint, use the Port inventory (TPEs) API.
Sample request
GET {{MCP_SERVER}}/nsi/api/tpes
https://<mcphostname>/nsi/api/v5/tpes?id=267de837-45d6-3fe9-9528-
e19a6765b481::TPE_1-1S1-1_D1P1_PTP_DS1_CTPServerToClient
Query all TPEs, or specify the ID of a TPE that may have been included in the response to a service FRE
query:
https://<mcphostname>/nsi/api/tpes
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 568
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": [
{
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-1S1-
1_D1P1_PTP_DS1_CTPServerToClient",
"type": "tpes",
"attributes": {
"identifiers": [
{
"networkConstructId": "267de837-45d6-3fe9-9528-e19a6765b481",
"nodalId": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-1S1-
1_D1P1_PTP_DS1_CTPServerToClient"
}
],
"resourceState": "discovered",
"structureType": "CTPServerToClient",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "1",
"subslot": "1",
"port": "1",
"channel": "D1P1"
}
],
"layerTerminations": [
{
"layerRate": "DS1",
"structureType": "exposed lone cp",
"terminationState": "layer termination permanently terminated",
"active": true,
"additionalAttributes": {
"rtpSetting": "On",
"signalContentType": "TDM"
}
}
],
"stackDirection": "bidirectional",
"displayAlias": "CTP-1-1-1D1P1",
"cardType": "PTSIF",
"active": true,
"additionalAttributes": {
"tdmChannel": "D1P1",
"pkt:MAPPING": "SATOP",
"pkt:TXMON": "NO",
"clockRecoveryMode": "DCR",
"pktiwf": "PKTIWF-1-1S1-101",
"pkt:CAS": "OFF",
"jitterBuffer": "4"
}
},
"relationships": {
"tpeDiscovered": {
"data": {
"type": "tpeDiscovered",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-1S1-
1_D1P1_PTP_DS1_CTPServerToClient"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 569
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "267de837-45d6-3fe9-9528-e19a6765b481"
},
"meta": {
"partiallyPopulated": true
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::EQPT_1_1"
}
},
"owningServerTpe": {
"data": {
"type": "tpes",
"id": "267de837-45d6-3fe9-9528-e19a6765b481::TPE_1-1S1-1_PTP"
}
}
}
}
]
}
To create (and delete) the E1 TDM CEM service, use the Market API.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Note the following TDM specific parameters used in the sample request below:
Path: properties/tdm/layerRate
Value: “E1”
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 570
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Path: properties/tdm/endpoints
Subpath: networkElement/Name
Value: <Node Name>
Subpath: port
Value: <port name>
Subpath: shelf
Value: <shelf name>
Subpath: slot
Value <slot name>
Subpath: signalIndex
Value: <signal index on SFP>
Path: properties/endpoints/settings/details/flowSettings/filter/outerVlanId
Value: Int range(1-4094)
Path: properties/endpoints/settings/details/flowSettings/location/port
Value: “FTP”
Sample request
{
"productId": "5a2e7dcf-bdcc-444d-bdb0-329b6c1e9a28",
"desiredOrchState": "active",
"label": "TDM_PW_20_",
"discovered": false,
"properties": {
"tdm": {
"layerRate": "E1",
"endPoints": [
{
"networkElement": {
"name": "SJ_6200_171"
},
"port": "36",
"shelf": "1",
"slot": "5",
"signalIndex": "20"
},
{
"networkElement": {
"name": "SJ_6200_220"
},
"port": "36",
"shelf": "1",
"slot": "5",
"signalIndex": "20"
}
]
},
"endpoints": [
{
"settings": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 571
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"node": "SJ_6200_171",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"profiles": [
{
"profileType": "filter",
"profileName": "VLAN"
}
],
"filter": {
"outerVlanId": [
595
]
}
}
]
}
]
}
},
{
"settings": {
"node": "SJ_6200_220",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"profiles": [
{
"profileType": "filter",
"profileName": "VLAN"
}
],
"filter": {
"outerVlanId": [
595
]
}
}
]
}
]
}
}
],
"routeMeta": {
"originator": "BP2"
},
"name": "TDM_PW_20_",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 572
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response
{
"id": "5a2e9184-a77a-450c-911e-df74a5be9ba2",
"label": "TDM_PW_20_",
"resourceTypeId": "ifd.v3.resourceTypes.TDMServiceIntentFacade",
"productId": "5a2e7dcf-bdcc-444d-bdb0-329b6c1e9a28",
"tenantId": "714ee434-51b5-4036-b583-bf7dace0db8f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [
],
"name": "TDM_PW_20_",
"tdm": {
"endPoints": [
{
"signalIndex": "20",
"shelf": "1",
"networkElement": {
"name": "SJ_6200_171"
},
"port": "36",
"slot": "5"
},
{
"signalIndex": "20",
"shelf": "1",
"networkElement": {
"name": "SJ_6200_220"
},
"port": "36",
"slot": "5"
}
],
"layerRate": "E1"
},
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 573
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"filter": {
"outerVlanId": [
595
]
},
"profiles": [
{
"profileName": "VLAN",
"profileType": "filter"
}
]
}
]
}
],
"node": "SJ_6200_171"
}
},
{
"settings": {
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"filter": {
"outerVlanId": [
595
]
},
"profiles": [
{
"profileName": "VLAN",
"profileType": "filter"
}
]
}
]
}
],
"node": "SJ_6200_220"
}
}
],
"customerName": "Ciena SE",
"reuseExistingPseudowire": false,
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR"
},
"discovered": false,
"differences": [
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 574
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {
},
"providerData": {
},
"updatedAt": "2017-12-11T14:09:08.476Z",
"createdAt": "2017-12-11T14:09:08.476Z",
"autoClean": false
}
To create (and delete) the E1 TDM CEM service, use the Market API.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Note the following TDM specific parameters used in the sample request below:
Path: properties/tdm/layerRate
Value: “E1”
Path: properties/tdm/endpoints
Subpath: networkElement/Name
Value: <Node Name>
Subpath: port
Value: <port name>
Subpath: signalIndex
Value: <signal index on SFP>
Path: properties/endpoints/settings/details/flowSettings/filter/outerVlanId
Value: Int range(1-4094)
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 575
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Path: properties/endpoints/settings/details/flowSettings/location/port
Value: “FTP”
Sample request
{
"productId": "5a2e7dcf-bdcc-444d-bdb0-329b6c1e9a28",
"desiredOrchState": "active",
"label": "TDM_PW_20SR6_reuse",
"discovered": false,
"properties": {
"tdm": {
"layerRate": "E1",
"endPoints": [
{
"networkElement": {
"name": "5160_0054"
},
"port": "7",
"signalIndex": "36"
},
{
"networkElement": {
"name": "3932_0023"
},
"port": "7",
"signalIndex": "36"
}
]
},
"endpoints": [
{
"settings": {
"node": "5160_0054",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"profiles": [
{
"profileType": "filter",
"profileName": "VLAN"
}
],
"filter": {
"outerVlanId": [
625
]
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 576
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
}
},
{
"settings": {
"node": "3932_0023",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"profiles": [
{
"profileType": "bandwidth",
"profileName": "custom"
},
{
"profileType": "filter",
"profileName": "VLAN"
}
],
"filter": {
"outerVlanId": [
625
]
}
}
]
}
]
}
}
],
"routeMeta": {
"originator": "BP2"
},
"name": "TDM_PW_20SR6_reuse",
"customerName": "Ciena SE",
"serviceType": "EVPL",
"serverTrailList": [
],
"structure": "P2P",
"type": "FDFR"
}
}
Sample response
{
"id": "5a2e95e2-f92b-450c-b1f1-6e725a65a717",
"label": "TDM_PW_20SR6_reuse",
"resourceTypeId": "ifd.v3.resourceTypes.TDMServiceIntentFacade",
"productId": "5a2e7dcf-bdcc-444d-bdb0-329b6c1e9a28",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 577
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"tenantId": "714ee434-51b5-4036-b583-bf7dace0db8f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [
],
"name": "TDM_PW_20SR6_reuse",
"tdm": {
"endPoints": [
{
"signalIndex": "36",
"networkElement": {
"name": "5160_0054"
},
"port": "7"
},
{
"signalIndex": "36",
"networkElement": {
"name": "3932_0023"
},
"port": "7"
}
],
"layerRate": "E1"
},
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"filter": {
"outerVlanId": [
625
]
},
"profiles": [
{
"profileName": "Gold",
"profileType": "bandwidth"
},
{
"profileName": "VLAN",
"profileType": "filter"
}
]
}
]
}
],
"node": "5160_0054"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 578
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
{
"settings": {
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"filter": {
"outerVlanId": [
625
]
},
"profiles": [
{
"profileName": "custom",
"profileType": "bandwidth"
},
{
"profileName": "VLAN",
"profileType": "filter"
}
]
}
]
}
],
"node": "3932_0023"
}
}
],
"customerName": "Ciena SE",
"reuseExistingPseudowire": false,
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR"
},
"discovered": false,
"differences": [
],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {
},
"providerData": {
},
"updatedAt": "2017-12-11T14:27:47.012Z",
"createdAt": "2017-12-11T14:27:47.012Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 579
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To create (and delete) the E1 TDM CEM service, use the Market API.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Note the following TDM specific parameters used in the sample request below:
Path: properties/tdm/layerRate
Value: “E1”
6200
Path: properties/tdm/endpoints
Subpath: networkElement/Name
Value: <Node Name>
Subpath: port
Value: <port name>
Subpath: shelf
Value: <shelf name>
Subpath: slot
Value: <slot name>
Subpath: signalIndex
Value: <signal index on SFP>
Path: properties/endpoints/settings/details/flowSettings/filter/outerVlanId
Value: Int range(1-4094)
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 580
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Path: properties/endpoints/settings/details/flowSettings/location/port
Value: “FTP”
Sample request
{
"productId": "5a2e7dcf-bdcc-444d-bdb0-329b6c1e9a28",
"desiredOrchState": "active",
"label": "TDM_PW_20SR6",
"discovered": false,
"properties": {
"tdm": {
"layerRate": "E1",
"endPoints": [
{
"networkElement": {
"name": "5160_0054"
},
"port": "7",
"signalIndex": "36"
},
{
"networkElement": {
"name": "SJ_6200_220"
},
"shelf": "1",
"slot": "5",
"port": "7",
"signalIndex": "36"
}
]
},
"endpoints": [
{
"settings": {
"node": "5160_0054",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"profiles": [
{
"profileType": "bandwidth",
"profileName": "Gold"
},
{
"profileType": "filter",
"profileName": "VLAN"
}
],
"filter": {
"outerVlanId": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 581
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
625
]
}
}
]
}
]
}
},
{
"settings": {
"node": "3932_0023",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"profiles": [
{
"profileType": "bandwidth",
"profileName": "custom"
},
{
"profileType": "filter",
"profileName": "VLAN"
}
],
"filter": {
"outerVlanId": [
625
]
}
}
]
}
]
}
}
],
"routeMeta": {
"originator": "BP2"
},
"name": "TDM_PW_20SR6_reuse",
"customerName": "Ciena SE",
"serviceType": "EVPL",
"serverTrailList": [
],
"structure": "P2P",
"type": "FDFR"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 582
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5a2fc123-9912-43ca-9c28-b348f0d982f1",
"label": "TDM_PW_20SR6",
"resourceTypeId": "ifd.v3.resourceTypes.TDMServiceIntentFacade",
"productId": "5a2e7dcf-bdcc-444d-bdb0-329b6c1e9a28",
"tenantId": "714ee434-51b5-4036-b583-bf7dace0db8f",
"shared": false,
"properties": {
"serviceType": "EVPL",
"serverTrailList": [
],
"name": "TDM_PW_20SR6_reuse",
"tdm": {
"endPoints": [
{
"signalIndex": "36",
"networkElement": {
"name": "5160_0054"
},
"port": "7"
},
{
"signalIndex": "36",
"shelf": "1",
"networkElement": {
"name": "SJ_6200_220"
},
"port": "7",
"slot": "5"
}
],
"layerRate": "E1"
},
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"filter": {
"outerVlanId": [
625
]
},
"profiles": [
{
"profileName": "Gold",
"profileType": "bandwidth"
},
{
"profileName": "VLAN",
"profileType": "filter"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 583
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
}
]
}
],
"node": "5160_0054"
}
},
{
"settings": {
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"filter": {
"outerVlanId": [
625
]
},
"profiles": [
{
"profileName": "custom",
"profileType": "bandwidth"
},
{
"profileName": "VLAN",
"profileType": "filter"
}
]
}
]
}
],
"node": "3932_0023"
}
}
],
"customerName": "Ciena SE",
"reuseExistingPseudowire": false,
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"type": "FDFR"
},
"discovered": false,
"differences": [
],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 584
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"providerData": {
},
"updatedAt": "2017-12-12T11:44:36.084Z",
"createdAt": "2017-12-12T11:44:36.084Z",
"autoClean": false
}
Note: You can use the same methos described here to create and delete TDM CEM E1 (using MEF8)
services features with endpoints on 3926 nodes that are running SAOS 6.17.
To create (and delete) the E1 PDH CEM service, use the Market API.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Note the following TDM specific parameters used in the sample request below:
• Path: properties/tdm/layerRate
◦ Value: “E1”
• Path: properties/tdm/endpoints
◦ Subpath: networkElement/Name
• Value: <Node Name>
◦ Subpath: port
◦ Value: <port name>
• Path: properties/endpoints/settings/details/flowSettings/filter/outerVlanId
• Value: Int range(1-4094)
• Path: properties/endpoints/settings/details/flowSettings/location/port
• Value: “FTP”
• reuseExistingPseudowire
◦ Supported values: True|False
• tdmCosSettings: pcp
◦ Supported values: INT(0:7)
• rtpSetting
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 585
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
◦ Supported values: This parameter should either be included, not included, or set to the name of an
existing "port tdm sync frequency protection-group" entry on the device. The "group_name" value
can be any string. It must correspond to a protection-group configured on the device.
Note: If required, consult the CES device documentation for help creating the protection group.
Sample request
{
"productId": "{{TDM_FACADE_PID}}",
"desiredOrchState": "active",
"label": "TDM_PW_CLOCKRECOVERY3",
"discovered": false,
"properties": {
"interactive_mode": "false",
"tdm": {
"layerRate": "E1",
"endPoints": [{
"networkElement": {
"name": "5160_0054"
},
"port": "7",
"signalIndex": "56"
},
{
"networkElement": {
"name": "3932_0023"
},
"port": "7",
"signalIndex": "56",
"clockRecoveryMode": "ADAPTIVE",
"jitterBuffer": 55,
"syncFreqProtGroup": "group_name",
"rtpSetting": "ON",
"tdmCosSettings": {
"pcp": 4
}
}
]
},
"endpoints": [{
"settings": {
"node": "5160_0054",
"role": "A_UNI",
"details": [{
"flowSettings": [{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 586
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"location": {
"port": "FTP"
},
"profiles": [{
"profileType": "filter",
"profileName": "VLAN"
}],
"filter": {
"outerVlanId": [1182]
}
}]
}]
}
},
{
"settings": {
"node": "3932_0023",
"role": "Z_UNI",
"details": [{
"flowSettings": [{
"location": {
"port": "FTP"
},
"profiles": [{
"profileType": "filter",
"profileName": "VLAN"
}],
"filter": {
"outerVlanId": [1182]
}
}]
}]
}
}
],
"reuseExistingPseudowire": false,
"routeMeta": {
"originator": "BP2"
},
"name": "TDM_PW_CLOCKRECOVERY3",
"customerName": "Ciena SE",
"serviceType": "EVPL",
"serverTrailList": [],
"structure": "P2P",
"type": "FDFR"
}
}
Sample response
{
"id": "5ac331b6-029d-4f41-8735-0273e336fd01",
"label": "TDM_PW_CLOCKRECOVERY3",
"resourceTypeId": "ifd.v4.resourceTypes.TDMServiceIntentFacade",
"productId": "5abbfc99-ed41-4f59-9b52-71c49e0e9098",
"tenantId": "66e9be79-4e3f-4497-b4c3-a7bb381bcf2b",
"shared": false,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 587
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"properties": {
"serviceType": "EVPL",
"serverTrailList": [],
"name": "TDM_PW_CLOCKRECOVERY3",
"tdm": {
"endPoints": [
{
"signalIndex": "56",
"networkElement": {
"name": "5160_0054"
},
"port": "7"
},
{
"jitterBuffer": 55,
"synchFreqProtGroup": "group_name",
"rtpSetting": "ON",
"signalIndex": "56",
"clockRecoveryMode": "ADAPTIVE",
"tdmCosSettings": {
"pcp": 4
},
"networkElement": {
"name": "3932_0023"
},
"port": "7"
}
],
"layerRate": "E1"
},
"endpoints": [
{
"settings": {
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"filter": {
"outerVlanId": [
1182
]
},
"profiles": [
{
"profileName": "VLAN",
"profileType": "filter"
}
]
}
]
}
],
"node": "5160_0054"
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 588
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"settings": {
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"port": "FTP"
},
"filter": {
"outerVlanId": [
1182
]
},
"profiles": [
{
"profileName": "VLAN",
"profileType": "filter"
}
]
}
]
}
],
"node": "3932_0023"
}
}
],
"customerName": "Ciena SE",
"reuseExistingPseudowire": false,
"routeMeta": {
"originator": "BP2"
},
"structure": "P2P",
"interactive_mode": "false",
"type": "FDFR"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-04-03T07:48:06.206Z",
"createdAt": "2018-04-03T07:48:06.206Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 589
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The API calls described below allow you to create an initial drop-and-continue service consisting of a
single Source port and a single Drop port. You can then add further endpoints to the service using
additional API calls.
MCP supports the creation of drop-and-continue services with endpoints on the following devices:
• SAOS 6.x
• 8700
• 6200 (only as a Drop endpoint)
Use the Market API to create a Drop-and-continue service. The body of the call is similar to other services
supported in MCP.
{{BP_SERVER}}/bpocore/market/api/v1/resources
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"properties": {
"serverTrailList": [],
"serviceType": "EVPDC",
"name": "NRMCEVC3",
"routeMeta": {
"originator": "BP2"
},
"endpoints": [
{
"settings": {
"node": "3930-25",
"role": "A_UNI",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 590
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
2092
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 3
},
"ingressPolicer": {
"cir": 1000,
"eir": 100,
"ebs": 128,
"cbs": 128
},
"location": {
"port": "6"
}
}
]
}
]
}
},
{
"settings": {
"node": "8700-4",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
2092
]
},
"ingressCosSetting": {
"ingressCosPolicy": "fixed",
"ingressCosPbit": 3
},
"ingressPolicer": {
"cir": 1000,
"eir": 100,
"ebs": 128,
"cbs": 128
},
"location": {
"slot": "2",
"port": "10"
}
}
]
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 591
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
],
"primaryPathConstraints": {
"includeRouteObjects": [{
"constraintType": "HARD",
"locations": [{
"lspName": "2535-UNP",
"nodeName": "3930-25"
}
],
"objectType": "LSP_NAME"
}
]
},
"transportProtection": "MPLS_ONLY"
}
}
• SAOS 6.x
• 8700
• 6200 (only as a Drop endpoint)
Use the Market API POST request to add an endpoint to a Drop-and-continue service.
The attachmentSource is a node that is already a member of the Drop-and-continue service, and from
which this new endpoint will receive the service traffic.
For a protected Drop-and-continue service, you can include a second attachmentSource on another node
that is participating in the Drop-and-continue service.
{{BP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 592
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/endpoints/-",
"value": {
"settings": {
"node": "5142-19",
"role": "A_UNI",
"attachmentSource" : {
"primary" : {
"networkElement" : {
"name" : "8700-4"
}
}
},
"details": [
{
"flowSettings": [
{
"filter": {
"outerVlanId": [
561
]
},
"location": {
"port": "1"
}
}
]
}
]
}
}
}
]
}
}
Use the Market API POST request to remove an endpoint from the service.
The attachmentSource is a node that is already a member of the Drop-and-continue service, and from
which this new endpoint will receive the service traffic.
{{BP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}/operations
The path/properties/endpoints/<number> parameter in this call identifies the endpoint you want to
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 593
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
For example:
"path": "/properties/endpoints/2" =⇒ The endpoint number, "2" in this case, will be removed by this
operation.
Note: This endpoint numbering is zero-indexed. If a service includes three endpoints, to remove the third
end point you should identify it as "2", not "3".
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "remove",
"path": "/properties/endpoints/2"
}
],
"modifySubOperation" : "REMOVE_UNI"
}
}
Use the Market API to delete a Drop-and-continue service. The body of the call is similar to other services
supported in MCP.
{{BP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 594
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request 1
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Specify the following attributes. The following is an example of one type of profile: ingress Policer.
{
"productId": "{{PROFILE_PRODUCT_ID}}",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"label": "Gold bandwidth EP profile",
"properties": {
"name": "eth_flow::gold_bandwidth",
"description": "A profile that defines gold bandwidth (ingress) policers",
"data": {
"ingressPolicer": {
"cir": 20000,
"eir": 5000,
"cbs": 10000,
"ebs": 500
}
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 595
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response 1
{
"id": "590a3421-210d-433f-8fb4-4ae253ecfa57",
"label": "Gold bandwidth profile",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"productId": "590a1374-ac79-4195-82a2-0fd64ed5051a",
"tenantId": "db19ef22-58b3-4cdf-90b1-dacaa656be33",
"shared": false,
"properties": {
"data": {
"ingressPolicer": {
"cir": 20000,
"eir": 5000,
"cbs": 10000,
"ebs": 500
}
},
"description": "A profile that defines gold bandwidth (ingress) policers",
"name": "eth_flow::gold_bandwidth"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-03T19:48:49.207Z",
"createdAt": "2017-05-03T19:48:49.207Z",
"autoClean": false
}
Sample request 2
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Specify the following attributes. The following is an example with a CFM setting.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 596
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{PROFILE_PRODUCT_ID}}",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"label": "Custom Full profile",
"properties": {
"name": "eth_ep::custom_cfm5",
"description": "A profile that defines all service
profiles",
"data": {
"ccmTransmitEnabled": true,
"oamEnabled": true,
"slmPriority": 1,
"dmmEnabled": true,
"slmEnabled": true,
"dmmInterval": "10sec",
"dmmPriority": 5,
"slmInterval": "10sec"
}
}
}
Sample response 2
{
"id": "595cfdf4-9df1-4ef4-89c2-2a9076ecd38a",
"label": "Custom Full profile",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"productId": "5955c1f2-63dc-4253-a5d9-cf4a5946bcae",
"tenantId": "e142ff27-1262-4f02-be6f-202d1a719e49",
"shared": false,
"properties": {
"data": {
"ccmTransmitEnabled": true,
"oamEnabled": true,
"slmPriority": 1,
"dmmEnabled": true,
"slmEnabled": true,
"dmmInterval": "10sec",
"dmmPriority": 5,
"slmInterval": "10sec"
},
"description": "A profile that defines all service profiles",
"name": "eth_ep::custom_cfm5"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-07-05T14:55:48.648Z",
"createdAt": "2017-07-05T14:55:48.648Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 597
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Specify the following attributes. The following is an example of one type of profile: ingress Policer.
{
"productId": "{{PROFILE_PRODUCT_ID}}",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"label": "Gold bandwidth EVPL profile",
"properties": {
"name": "eth::gold_bandwidth",
"description": "An EVPL profile with gold bandwidth policers",
"data": {
"serviceType": "EVPL",
"profiles": [
{
"profileName": "eth_flow::gold_bandwidth",
"profileType": "ifd.v2.resourceTypes.ServiceFacadeProfile"
}
]
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 598
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "590a41f6-fd67-42e4-a0b0-ef89e2f8ccfe",
"label": "Gold bandwidth EVPL profile",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"productId": "590a1374-ac79-4195-82a2-0fd64ed5051a",
"tenantId": "db19ef22-58b3-4cdf-90b1-dacaa656be33",
"shared": false,
"properties": {
"data": {
"serviceType": "EVPL",
"profiles": [
{
"profileName": "eth_flow::gold_bandwidth",
"profileType": "ifd.v2.resourceTypes.ServiceFacadeProfile"
}
]
},
"description": "An EVPL profile with gold bandwidth policers",
"name": "eth_flow::gold_bandwidth"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-03T20:47:50.828Z",
"createdAt": "2017-05-03T20:47:50.828Z",
"autoClean": false
}
Edit a profile
To edit a profile, use the Market API.
You can edit a profile either by using the PUT or the PATCH call.
Sample request
PUT {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
Note 1: The SVC_RSC_ID is the resource ID you get when creating a new service. It is available in the
response message (first top-level attribute “id”).
Note 2: You can also retrieve the SVC_RSC_ID with the following query (which is an example). In the query
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 599
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
make sure that you match resourceTypes and properties.name attribute values.
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?resourceTypeId=ifd.v2.resourceTypes.L2ServiceIn
tentFacade&q=properties.name:jmEvpln2n5
{
"id": "590a3421-210d-433f-8fb4-4ae253ecfa57",
"label": "Gold bandwidth profile",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"productId": "590a1374-ac79-4195-82a2-0fd64ed5051a",
"tenantId": "db19ef22-58b3-4cdf-90b1-dacaa656be33",
"shared": false,
"properties": {
"data": {
"ingressPolicer": {
"cir": 20000,
"eir": 4000,
"cbs": 10000,
"ebs": 500
}
},
"description": "A profile that defines gold bandwidth (ingress) policers",
"name": "eth_flow::gold_bandwidth"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-03T19:48:49.207Z",
"createdAt": "2017-05-03T19:48:49.207Z",
"autoClean": false
}
Sample response
Sample request
PATCH {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 600
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"properties": {
"data": {
"ingressPolicer": {
"eir": 4000
}
}
}
}
Sample response
Delete a profile
To delete a profile, use the Market API.
Sample request
DELETE {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
Note 1: The SVC_RSC_ID is the resource ID you get when creating a new service. It is available in the
response message (first top-level attribute “id”).
Note 2: You can also retrieve the SVC_RSC_ID with the following query (which is an example). In the query
make sure that you match resourceTypes and properties.name attribute values.
Sample response
Get by ID
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 601
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{SVC_RSC_ID}}
Note 1: The SVC_RSC_ID is the resource ID you get when creating a new service. It is available in the
response message (first top-level attribute “id”).
Note 2: You can also retrieve the SVC_RSC_ID with the following query (which is an example). In the query
make sure that you match resourceTypes and properties.name attribute values.
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?resourceTypeId=ifd.v2.resourceTypes.L2ServiceIn
tentFacade&q=properties.name:jmEvpln2n5
Sample response
{
"id": "590a41f6-fd67-42e4-a0b0-ef89e2f8ccfe",
"label": "Gold bandwidth EVPL profile",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"productId": "590a1374-ac79-4195-82a2-0fd64ed5051a",
"tenantId": "db19ef22-58b3-4cdf-90b1-dacaa656be33",
"shared": false,
"properties": {
"data": {
"serviceType": "EVPL",
"profiles": [
{
"profileName": "eth_flow::gold_bandwidth",
"profileType": "ifd.v2.resourceTypes.ServiceFacadeProfile"
}
]
},
"description": "An EVPL profile with gold bandwidth policers",
"name": "eth::evpl_gold_bandwidth"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-03T20:47:50.828Z",
"createdAt": "2017-05-03T20:47:50.828Z",
"autoClean": false
}
Get by filter
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 602
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?resourceTypeId=ifd.v2.resourceTypes.ServiceFaca
deProfile&tags=$tag_name:$tag_value
• profile_resource - the tag key to identify the associated resource the ServiceProfile is to apply to.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 603
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
▪ settings.slmPriority
Sample response
{
"id": "590a41f6-fd67-42e4-a0b0-ef89e2f8ccfe",
"label": "Gold bandwidth EVPL profile",
"resourceTypeId": "ifd.v2.resourceTypes.ServiceFacadeProfile",
"productId": "590a1374-ac79-4195-82a2-0fd64ed5051a",
"tenantId": "db19ef22-58b3-4cdf-90b1-dacaa656be33",
"shared": false,
"properties": {
"data": {
"serviceType": "EVPL",
"profiles": [
{
"profileName": "eth_flow::gold_bandwidth",
"profileType": "ifd.v2.resourceTypes.ServiceFacadeProfile"
}
]
},
"description": "An EVPL profile with gold bandwidth policers",
"name": "eth::evpl_gold_bandwidth"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-03T20:47:50.828Z",
"createdAt": "2017-05-03T20:47:50.828Z",
"autoClean": false
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources
Specify the attributes, as required. The following sample shows how to create an EPL with a profile:
eth::fixed_1.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 604
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{L2_SVC_FACADE_PRODUCT_ID}}",
"label": "L2 Sample EPL with COS Service Profile",
"properties": {
"turnUpDateTime": "2020-11-11T00:00:00.000",
"name": "EPL_COS_FIXED_1",
"routeMeta": {
"originator": "BP2"
},
"serviceType": "EPL",
"profiles": [
{
"profileName": "eth::fixed_1",
"profileType": "ifd.v2.resourceTypes.ServiceFacadeProfile"
}
],
"endpoints": [
{
"settings": {
"node": "87_5783n2",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"slot": "1",
"port": "20"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n4",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"slot": "1",
"port": "9"
}
}
]
}
]
}
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 605
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response
{
"id": "5909f530-8fe6-4299-a409-74fac7cfc275",
"label": "L2 Sample EPL with COS Service Profile",
"resourceTypeId": "ifd.v2.resourceTypes.L2ServiceIntentFacade",
"productId": "59034762-ad0f-47dc-85d9-e4a8747c6247",
"tenantId": "8b2aa32f-3253-4009-827f-3f582588b7a9",
"shared": false,
"properties": {
"name": "EPL_COS_FIXED_1",
"turnUpDateTime": "2020-11-11T00:00:00.000",
"endpoints": [
{
"settings": {
"node": "87_5783n2",
"role": "A_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"slot": "1",
"port": "20"
}
}
]
}
]
}
},
{
"settings": {
"node": "87_5783n4",
"role": "Z_UNI",
"details": [
{
"flowSettings": [
{
"location": {
"slot": "1",
"port": "9"
}
}
]
}
]
}
}
],
"routeMeta": {
"originator": "BP2"
},
"serviceType": "EPL",
"serviceState": "OUT_OF_SERVICE",
"lastTransition": "TRANSITION_NONE",
"profiles": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 606
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"profileName": "eth::fixed_1",
"profileType": "ifd.v2.resourceTypes.ServiceFacadeProfile"
}
]
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-03T15:20:16.448Z",
"createdAt": "2017-05-03T15:20:16.448Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 607
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: You can also use this API call for all types of Ethernet services (E-LINE, E-LAN, and E-Tree).
POST {{MCP_SERVER}}//bpocore/market/api/v1/resources/{{SVC_RSC_ID}}/operations
Note 1: The SVC_RSC_ID is the resource ID you get when creating a new service. It is available in the
response message (first top-level attribute “id”).
Note 2: You can also retrieve the SVC_RSC_ID with the following query (which is an example). In the query
make sure that you match resourceTypes and properties.name attribute values.
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?resourceTypeId=ifd.v5.resourceTypes.L2ServiceIn
tentFacade&q=properties.name:jmEvpln2n5
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 608
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/filter/outerVlanId",
"value": [600, 601]
},
{
"op": "replace",
"path":
"/properties/endpoints/1/settings/details/0/flowSettings/0/filter/outerVlanId",
"value": [600, 601]
}
]
}
}
Sample response
POST {{MCP_SERVER}}//bpocore/market/api/v1/resources/{{SVC_RSC_ID}}/operations
For details about the SVC_RSC_ID, see Note 1 and Note 2 (above).
CFM (add)
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 609
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "add",
"path": "/properties/oamEnabled",
"value": true
},
{
"op": "add",
"path": "/properties/ccmInterval",
"value": "100ms"
},
{
"op": "add",
"path": "/properties/ccmPriority",
"value": 1
}
]
}
}
Sample response
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management. )
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{SVC_RSC_ID}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 610
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path": "/properties/userLabel",
"value": "Modified Service Label"
}
]
}
}
Sample response
{
"id": "5a947baf-3af9-4dc7-93cb-593c55a666f6",
"resourceId": "5a9461a6-9eba-4f43-b105-c94fc9ec12dc",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path": "/properties/userLabel",
"value": "Modified Service Label"
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-02-26T21:27:11.260Z",
"updatedAt": "2018-02-26T21:27:11.260Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
Using the Operation Id ("id") from the Sample response, (for example, "5a947baf-3af9-4dc7-93cb-
593c55a666f6"), you can then issue a GET REST API operation to check the final result, which will show
"state": "successful" or an error message, if there was a problem in the modify operation.
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/SVC_RSC_ID/operations/OPERATION_ID
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 611
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5a947baf-3af9-4dc7-93cb-593c55a666f6",
"resourceId": "5a9461a6-9eba-4f43-b105-c94fc9ec12dc",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path": "/properties/userLabel",
"value": "Modified Service Label"
}
]
},
"outputs": {},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-02-26T21:27:11.260Z",
"updatedAt": "2018-02-26T21:27:20.340Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
Sample request
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{SVC_RSC_ID}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 612
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/filter/outerVlanId",
"value": [901]
},
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/filter/outerVLANEthertyp
e",
"value": "88a8"
}
]
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 613
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{{
"id": "5a947571-9a34-4b4b-ace7-a664c9816284",
"resourceId": "5a9461a6-9eba-4f43-b105-c94fc9ec12dc",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/filter/outerVlanId",
"value": [
901
]
},
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/filter/outerVLANEthertyp
e",
"value": "88a8"
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-02-26T21:00:33.040Z",
"updatedAt": "2018-02-26T21:00:33.040Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
Using the Operation Id ("id") from the Sample response, (for example, "5a947571-9a34-4b4b-ace7-
a664c9816284"), you can then issue a GET REST API operation to check the final result, which will show
"state": "successful" or an error message, if there was a problem in the modify operation.
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/SVC_RSC_ID/operations/OPERATION_ID
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 614
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5a947571-9a34-4b4b-ace7-a664c9816284",
"resourceId": "5a9461a6-9eba-4f43-b105-c94fc9ec12dc",
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/filter/outerVlanId",
"value": [
901
]
},
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/filter/outerVLANEthertyp
e",
"value": "88a8"
}
]
},
"outputs": {},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-02-26T21:00:33.040Z",
"updatedAt": "2018-02-26T21:00:41.350Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
Sample request
Note 1: The SVC_RSC_ID is the resource ID you get when creating a new service. It is available in the
response message (first top-level attribute “id”).
Note 2: You can also retrieve the SVC_RSC_ID with the following query (which is an example). In the query
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 615
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
make sure that you match resourceTypes and properties.name attribute values.
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?resourceTypeId=ifd.v2.resourceTypes.L2ServiceIn
tentFacade&q=properties.name:jmEvpln2n5
Note 1: You can also use the following API call to add or remove individual policing attributes. To add
specify "add" as the "op"; to remove specify "remove" as the "op". The following example shows examples
or replacing individual policing attributes.
Note 2: The "1" and "0" following the "/properties/endpoints" in the "path" in the sample request (as
follows) represent the endpoints. "0" represents the first endpoint in the "endpoints" list on the resource,
and "1" represents the second endpoint.
{
"interface": "modify",
"inputs": {
"resource_properties_jsonpatch": [
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/ingressPolicer/cir",
"value": 20000
},
{
"op": "replace",
"path":
"/properties/endpoints/0/settings/details/0/flowSettings/0/ingressPolicer/eir",
"value": 5000
},
{
"op": "replace",
"path":
"/properties/endpoints/1/settings/details/0/flowSettings/0/ingressPolicer/cir",
"value": 20000
},
{
"op": "replace",
"path":
"/properties/endpoints/1/settings/details/0/flowSettings/0/ingressPolicer/eir",
"value": 5000
}
]
}
}
Sample response
Note: To retrieve information, use the NSI getTPE/getFRE REST API (see Using the Service Inventory with
Packet services management.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 616
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
PATCH {{MCP_SERVER}}/bpocore/market/api/v1/resources/{resourceId}
Specify the IFD_CONFIG_RESOURCE_ID (which you obtain from the Response of Retrieve configuration
resources. )
Sample request
{
"properties": {
"configurationProperties": {
"ifd.l2.managementVlans": {
"value": "127,918"
}
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 617
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "58b4407b-e3b4-4627-a6be-c19bcd4f1ed3",
"label": "Ifd Config Label",
"resourceTypeId": "ifd.v1.resourceTypes.IfdConfig",
"productId": "58b43dc6-749e-44fa-9bdb-cea4887ba820",
"tenantId": "e1e0516f-cfc8-4832-871f-ed46ad3b27b8",
"shared": false,
"properties": {
"configurationProperties": {
"ifd.l2.statusTlv": {
"default": "on",
"supportedValues": "on, off",
"value": "on"
},
"ifd.l0.setExplicitFrequency": {
"default": "true",
"supportedValues": "true, false",
"value": "true"
},
"ifd.l2.truncateSubportName": {
"default": "true",
"supportedValues": "true, false",
"value": "true"
},
"ifd.l2.maximumTransmissionUnit": {
"default": "2000",
"supportedValues": "1-9200",
"value": "2000"
},
"ifd.l2.managementVlans": {
"default": "127",
"supportedValues": "1-4094",
"value": "127,918"
}
}
},
"discovered": false,
"differences": [
{
"op": "replace",
"path": "/properties/configurationProperties/ifd.l2.managementVlans/value",
"value": "127"
}
],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-02-27T15:15:53.701Z",
"createdAt": "2017-02-27T15:06:35.647Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 618
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FREID>&osTypeString=lspStatus
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 619
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: Use the NSI getTPE/getFRE REST API (see Using the Service Inventory with Packet services
management. )
Sample response
{
"data": {
"id": "eb206566-271c-488a-8a99-a055f76cbf1b",
"type": "operationalStatus",
"attributes": {
"lspSummaryStatus": {
"adminState": "enabled",
"operationalState": "enabled",
"tunnelSummary": [
{
"bfdSessionAdminState": "up",
"bfdSessionOperationalState": "up",
"adminState": "enabled",
"protectionState": "active",
"lspName": "tdcIT_LSP1",
"aisMonitor": "disabled",
"bfdMonitor": "enabled",
"operationalState": "enabled"
}
]
}
},
"relationships": {
"osData": {
"data": [
{
"type": "lspStatus",
"id": "8926364553760176957:2::LSPSTATUS"
},
{
"type": "lspStatus",
"id": "8926364553760176957:1::LSPSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "695522132290624831"
}
]
}
}
},
"included": [
{
"id": "8926364553760176957:2::LSPSTATUS",
"type": "lspStatus",
"attributes": {
"bfdSessionName": "LBFS_10_07_tdcIT_LSP1_E",
"bfdSessionAdminState": "Up",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 620
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"bfdSessionOperationalState": "Up",
"adminState": "Enabled",
"protectionState": "Active",
"aisMonitor": "Disabled",
"bfdMonitor": "Enabled",
"bfdProfileName": "Active-LSP",
"operationalState": "Enabled"
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d21aa513-c314-3d37-acbc-
bcec6326f412::TPE_1_CTPServerToClient_EQPTGRP_9_LSP_tdcIT_LSP1_headEnd"
}
}
}
},
{
"id": "8926364553760176957:1::LSPSTATUS",
"type": "lspStatus",
"attributes": {
"bfdSessionName": "LBFS_12_06_tdcIT_LSP1_E",
"bfdSessionAdminState": "Up",
"bfdSessionOperationalState": "Up",
"adminState": "Enabled",
"protectionState": "Active",
"aisMonitor": "Disabled",
"bfdMonitor": "Enabled",
"bfdProfileName": "Passive-LSP",
"operationalState": "Enabled"
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "2b484e8c-50ef-3b80-bbab-
b973594e0a37::TPE_CTPServerToClient_LSP_tdcIT_LSP1_tailEnd"
}
}
}
}
],
"requestIds": "695522132290624831",
"resultsCode": "202"
}
Operational status
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 621
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
• fre ID
• osTypeString=pwStatus
Sample response
{
"data": {
"id": "1b622dc1-4e05-49ac-b4cf-338bbd2f89de",
"type": "operationalStatus",
"attributes": {
"pseudowireSummaryStatus": {
"segmentSummary": [
{
"segmentPseudowireName": "pwName3960->5142-2",
"adminState": "enabled",
"fault": "true",
"operationalState": "down"
}
],
"adminState": "enabled",
"fault": "true",
"operationalState": "down"
}
},
"relationships": {
"osData": {
"data": [
{
"type": "pwStatus",
"id": "MockNc3960::TPE_CTPServerToClient_PW_pwName3960->5142-
2::PWSTATUS"
},
{
"type": "pwStatus",
"id": "MockNc5142-2::TPE_CTPServerToClient_PW_pwName3960->5142-
2::PWSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "MockPwFre"
}
]
}
}
},
"included": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 622
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "MockNc3960::TPE_CTPServerToClient_PW_pwName3960->5142-2::PWSTATUS",
"type": "pwStatus",
"attributes": {
"remoteFault": "not forwarding",
"faultToNextHop": "not forwarding",
"adminState": "enabled",
"operationalState": "up",
"localFault": "none",
"faultToNextHopLocation": {
"localNetworkConstructName": "3960_0010",
"pseudowireId": "37",
"remoteNetworkConstructName": "5142_0042-2",
"fault": "not forwarding",
"localIpAddress": "10.125.253.32",
"pseudowireName": "pwName3960->5142-2",
"remoteIpAddress": "16.24.0.3"
},
"pseudowireName": "pwName3960->5142-2",
"remoteFaultLocation": {
"localNetworkConstructName": "3960_0010",
"pseudowireId": "37",
"remoteNetworkConstructName": "5142_0042-2",
"localIpAddress": "2.2.2.2",
"pseudowireName": "pwName3960->5142-2",
"remoteIpAddress": "16.24.0.3"
}
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "MockNc3960::TPE_CTPServerToClient_PW_pwName3960->5142-2"
}
}
}
},
{
"id": "MockNc5142-2::TPE_CTPServerToClient_PW_pwName3960->5142-2::PWSTATUS",
"type": "pwStatus",
"attributes": {
"remoteFault": "not forwarding",
"faultToNextHop": "not forwarding",
"adminState": "enabled",
"operationalState": "down",
"localFault": "none",
"faultToNextHopLocation": {
"localNetworkConstructName": "5142_0042-2",
"pseudowireId": "37",
"remoteNetworkConstructName": "3960_0010",
"fault": "not forwarding",
"localIpAddress": "16.24.0.3",
"pseudowireName": "pwName3960->5142-2",
"remoteIpAddress": "10.125.253.32"
},
"pseudowireName": "pwName3960->5142-2",
"remoteFaultLocation": {
"localNetworkConstructName": "5142_0042-2",
"pseudowireId": "37",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 623
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"remoteNetworkConstructName": "3960_0010",
"localIpAddress": "16.24.0.3",
"pseudowireName": "pwName3960->5142-2",
"remoteIpAddress": "2.2.2.2"
}
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "MockNc5142-2::TPE_CTPServerToClient_PW_pwName3960->5142-2"
}
}
}
}
],
"requestIds": "MockPwFre",
"resultsCode": "202"
}
Note: You can also use this API call to retrieve 802.1ag CCM status for an E-LAN service.
Sample request
Sample response
{
"data": {
"id": "392c959e-7d87-43ce-91f6-be82f7a09062",
"type": "operationalStatus",
"attributes": {
"continuityCheckSummaryStatus": "up"
},
"relationships": {
"osData": {
"data": [
{
"type": "ccStatus",
"id": "-6826425710477788335:1::CCSTATUS"
},
{
"type": "ccStatus",
"id": "-6826425710477788335:2::CCSTATUS"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 624
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "MockCfmEplFre"
}
]
}
}
},
"included": [
{
"id": "-6826425710477788335:1::CCSTATUS",
"type": "ccStatus",
"attributes": {
"continuityCheckSummaryStatus": "up",
"ccmState": "on",
"cfmMaId": "md4mcpCfmTest",
"cfmServiceName": "mcpEplCfmTest",
"cfmMaFormat": "Character String",
"ccmInterval": "1",
"cfmAdminStatus": "enabled",
"remoteMepIds": [
"2"
],
"cfmMdLevel": "4",
"cfmMdName": "md4",
"continuityCheckStatus": {
"2": "up"
},
"localMepOperationalState": "en",
"ccmPriority": "7",
"ccmIntervalUnit": "sec",
"localMepId": "1",
"cfmMdFormat": "Character String",
"cfmMaName": "mcpCfmTest"
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "MockNc3932::TPE_11_CTPServerToClient_VCE_al_tdc_cfm_up"
}
}
}
},
{
"id": "-6826425710477788335:2::CCSTATUS",
"type": "ccStatus",
"attributes": {
"continuityCheckSummaryStatus": "up",
"ccmState": "on",
"cfmMaId": "md4mcpCfmTest",
"cfmServiceName": "mcpEplCfmTest",
"cfmMaFormat": "Character String",
"ccmInterval": "1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 625
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"cfmAdminStatus": "enabled",
"remoteMepIds": [
"1"
],
"cfmMdLevel": "4",
"cfmMdName": "md4",
"continuityCheckStatus": {
"1": "up"
},
"localMepOperationalState": "en",
"ccmPriority": "7",
"ccmIntervalUnit": "sec",
"localMepId": "2",
"cfmMdFormat": "Character String",
"cfmMaName": "mcpCfmTest"
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "MockNc3960::TPE_9_CTPServerToClient_VCE_al_tdc_cfm_up"
}
}
}
}
],
"requestIds": "MockCfmEplFre",
"resultsCode": "202"
}
Note: You can use this API call for a 802.1ag linktrace between two E-LAN services endpoints.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/cfmOperations
Note: For an E-Tree service, you can only run a test from root-to-leaf or leaf-to-root. You cannot run a test
from leaf-to-leaf or root-to-root.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 626
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "linktrace",
"localTpeId": "MockCfmCtp1",
"remotePoint": {
"idType": "macAddress",
"id": ":1:2:3:4"
},
"testParameters": {
"ttl" : "20",
"priority" : "5"},
"userAnnotation": "2016.12.19 example collection"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 627
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "ede2bc4e-0258-4512-82b2-f3dd662f08fb",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "cfm_linktrace",
"testStatus": "Started",
"localTpeId": "MockCfmCtp1",
"remotePoints": [],
"localNcId": "MockNc3932",
"remoteNcs": [],
"startTime": 1482170019561,
"lastUpdateTime": 1482170019561,
"testParameters": {
"priority": "5",
"ttl": "20"
},
"localMepId": "2",
"userAnnotation": "2016.12.19 example collection",
"remoteMepMacAddress": ":1:2:3:4",
"cfmServiceName": "mcpEplCfmTest"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockCfmCtp1"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc3932"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the 802.1ag linktrace test results, use the Test and diagnostics API.
*Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 628
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Specify the Test Record ID, which is the “id” (for example, de2bc4e-0258-4512-82b2-f3dd662f08fb) of the
response (when you Perform an 802.1ag linktrace).
https://<mcp_server>/tdc/api/tests/fc6aba0a-19a9-4915-9262-1a8927c4846f
Sample response
{
"data": {
"id": "ede2bc4e-0258-4512-82b2-f3dd662f08fb",
"type": "testResults",
"attributes": {
"testResults": [
{
"transitId": "1",
"messageType": "LTM",
"dataType": "ltmResult",
"localMepId": "1",
"rxLtr": "availableFrom8.x",
"txLtm": "availableFrom8.x",
"remoteMacAddress": "2c:39:c1:48:a8:10",
"ttl": "existFor6.x"
},
{
"ingressPort": "2/14",
"transitId": "existFor6.x",
"ingressMacAddress": "2c:39:c1:48:d0:7d",
"messageType": "LTR",
"dataType": "ltrResult",
"ingressAction": "Ok",
"localMepId": "1",
"remoteMacAddress": "2c:39:c1:48:d0:7d",
"ttl": "63",
"relayAction": "FDB"
},
{
"transitId": "existFor6.x",
"egressPort": "3/1",
"ingressMacAddress": "2c:39:c1:48:a8:10",
"messageType": "LTR",
"dataType": "ltrResult",
"localMepId": "1",
"remoteMacAddress": "2c:39:c1:48:a8:10-a",
"egressAction": "Blocked",
"ttl": "62",
"relayAction": "HIT"
},
{
"operationalStatus": "failure",
"errorMessage": "Auto refresh test result aborted due to time out (120
seconds). Test status is set to completed with test operational status (for refresh
test) is failure and test results as failed",
"testResultsStatus": "failed",
"dataType": "summary"
}
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 629
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"testType": "cfm_linktrace",
"testStatus": "Completed",
"localTpeId": "MockCfmCtp1",
"remotePoints": [],
"localNcId": "MockNc3932",
"remoteNcs": [],
"startTime": 1482170019561,
"lastUpdateTime": 1482170139675,
"testParameters": {
"priority": "5",
"ttl": "64"
},
"localMepId": "2",
"userAnnotation": "2016.12.19 example collection",
"remoteMepMacAddress": ":1:2:3:4",
"cfmServiceName": "mcpEplCfmTest"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockCfmCtp1"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc3932"
}
]
}
}
},
"resultsCode": 200,
"requestIds": "ede2bc4e-0258-4512-82b2-f3dd662f08fb"
}
Note: You can also use this API call for an 802.1ag loopback between two E-LAN endpoints.
To perform an 802.1ag loopback on a selected service, use the Test and Diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 630
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/cfmOperations
Note: For an E-Tree service, you can only run a test from root-to-leaf or leaf-to-root. You cannot run a test
from leaf-to-leaf or root-to-root.
{
"data": {
"type": "loopback",
"localTpeId": "MockCfmCtp1",
"remotePoint": {
"idType": "tpes",
"id": "MockCfmCtp2"
},
"testParameters": {
"priority":"3",
"interval":"10",
"timeout":"2000"
},
"userAnnotation": "Mock CFM loopback result 2016.12.9"
}
}
Sample response
{
"data": {
"id": "0b819030-7758-4434-b497-9f5193c8cf1a",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "cfm_loopback",
"testStatus": "Started",
"localTpeId": "MockCfmCtp1",
"remotePoints": [
"MockCfmCtp2"
],
"localNcId": "MockNc3932",
"remoteNcs": [
"6f2f54e9-5786-3cbc-96e9-75536b68696c"
],
"startTime": 1481298982614,
"lastUpdateTime": 1481298982614,
"testParameters": {
"interval": "10",
"priority": "3",
"timeout": "2000"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 631
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"localMepId": "2",
"userAnnotation": "Mock CFM loopback result 2016.12.9",
"remoteMepId": "1",
"remoteMepMacAddress": "00:23:8A:A2:42:AA",
"cfmServiceName": "mcpEplCfmTest"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockCfmCtp1"
},
{
"type": "tpes",
"id": "MockCfmCtp2"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc3932"
},
{
"type": "networkConstructs",
"id": "6f2f54e9-5786-3cbc-96e9-75536b68696c"
}
]
},
"adjacencyFres": {
"data": []
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
Sample request
Specify the Test Record ID, which is the “id” (for example, 0b819030-7758-4434-b497-9f5193c8cf1a) of
the response (when you Perform an 802.1ag loopback on a selected service.
https://<mcp_server>/tdc/api/tests/fc6aba0a-19a9-4915-9262-1a8927c4846f
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 632
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response
{
"data": {
"id": "0b819030-7758-4434-b497-9f5193c8cf1a",
"type": "testResults",
"attributes": {
"testResults": [
{
"operationalStatus": "success",
"testResultsStatus": "failed",
"dataType": "summary"
},
{
"lbmToBeTransmitted": "0",
"dataType": "loopbackResults",
"lbmTransmitted": "5",
"lbrInOrderCount": "4",
"lbrContentMismatchedCount": "0",
"lbrOutOfOrderCount": "1"
}
],
"testType": "cfm_loopback",
"testStatus": "Completed",
"localTpeId": "MockCfmCtp1",
"remotePoints": [
"MockCfmCtp2"
],
"localNcId": "MockNc3932",
"remoteNcs": [
"6f2f54e9-5786-3cbc-96e9-75536b68696c"
],
"startTime": 1481298982614,
"lastUpdateTime": 1481298985015,
"testParameters": {
"localMepId": "1",
"count": "5",
"interval": "20",
"priority": "6",
"timeout": "2000"
},
"localMepId": "2",
"userAnnotation": "Mock CFM loopback result 2016.12.9",
"remoteMepId": "1",
"remoteMepMacAddress": "00:23:8A:A2:42:AA",
"cfmServiceName": "mcpEplCfmTest"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockCfmCtp1"
},
{
"type": "tpes",
"id": "MockCfmCtp2"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 633
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc3932"
},
{
"type": "networkConstructs",
"id": "6f2f54e9-5786-3cbc-96e9-75536b68696c"
}
]
},
"adjacencyFres": {
"data": []
}
}
},
"resultsCode": 200,
"requestIds": "0b819030-7758-4434-b497-9f5193c8cf1a"
}
To perform a PW ping on a selected service, use the Test and diagnostics API.
Note: You can also use this API call for a PW on an E-LAN service.
Sample request
POST {{MCP_SERVER}}/tdc/api/tests/pwOperations
Note: For an E-Tree service, you can only run a test from root-to-leaf or leaf-to-root. You cannot run a test
from leaf-to-leaf or root-to-root.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 634
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "ping",
"localTpeId": "MockPwCtp",
"testParameters": {
"count": "5",
"packetSize": "114",
"replyMode": "ipv4",
"timeout": "500"
},
"userAnnotation": "2016.12.19 for example collection"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 635
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "059dc392-e465-4f17-8874-eecbb84b30fa",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "pw_ping",
"testStatus": "Started",
"localTpeId": "MockPwCtp",
"remotePoints": [],
"localNcId": "MockNc6500Mpls",
"remoteNcs": [],
"startTime": 1483555500917,
"lastUpdateTime": 1483555500917,
"testParameters": {
"count": "5",
"packetSize": "114",
"replyMode": "ipv4",
"timeout": "500"
},
"userAnnotation": "2016.12.19 for example collection",
"equipmentGroupId": "9",
"pseudowireName": "apMcpMpls_PW_1",
"shelf": "12"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockPwCtp"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc6500Mpls"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 636
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Specify the Test Record ID, which is the “id” (for example, 059dc392-e465-4f17-8874-eecbb84b30fa) of
the response (when you Perform a pseudowire (PW) ping on a MS-PW service).
https://<mcp_server>/tdc/api/tests/fc6aba0a-19a9-4915-9262-1a8927c4846f
Sample response
{
"data": {
"id": "059dc392-e465-4f17-8874-eecbb84b30fa",
"type": "testResults",
"attributes": {
"testResults": [
{
"operationalStatus": "success",
"testResultsStatus": "passed",
"dataType": "summary"
},
{
"dataType": "pingResults"
},
{
"dataType": "rawData",
"rawData": "MPLS Ping with count (5) timeout (1000 ms) size (138 bytes)
encap (ip/udp) reply-mode (lsp)\nLegend:'!' - Success, 'X' - Error\n! Seq: 1
Latency: 3 ms\n! Seq: 2 Latency: 3 ms\n! Seq: 3 Latency: 3 ms\n! Seq: 4 Latency: 4
ms\n! Seq: 5 Latency: 2 ms\n\n--------------- Statistics ---------------\n5 packets
transmitted, 5 packets received\nround-trip (ms) min/avg/max = 2/3/4"
}
],
"testType": "pw_ping",
"testStatus": "Completed",
"localTpeId": "MockPwCtp",
"remotePoints": [],
"localNcId": "MockNc6500Mpls",
"remoteNcs": [],
"startTime": 1483555500917,
"lastUpdateTime": 1483555501978,
"testParameters": {
"count": "5",
"packetSize": "114",
"replyMode": "ipv4",
"timeout": "500"
},
"userAnnotation": "2016.12.19 for example collection",
"equipmentGroupId": "9",
"pseudowireName": "apMcpMpls_PW_1",
"shelf": "12"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 637
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "MockPwCtp"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc6500Mpls"
}
]
}
}
},
"resultsCode": 200,
"requestIds": "059dc392-e465-4f17-8874-eecbb84b30fa"
}
Perform the PW ping, specifying the required parameters. Then retrieve the test results.
Perform the PW ping, specifying the required parameters. Then retrieve the test results.
Perform the PW ping, specifying the required parameters. Then retrieve the test results.
Perform the PW ping, specifying the required parameters. Then retrieve the test results.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 638
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: You can use this API call for an MS-PW traceroute on an E-LAN service.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/pwOperations
Note: For an E-Tree service, you can only run a test from root-to-leaf or leaf-to-root. You cannot run a test
from leaf-to-leaf or root-to-root.
Specify the following attribute: type as traceroute. Also, select values for testParameters, as required.
{
"data": {
"type": "traceroute",
"localTpeId": "MockPwCtp3",
"testParameters": {
"count": "5",
"packetSize": "114",
"replyMode": "ipv4",
"timeout": "500"
},
"userAnnotation": "2016.12.19 for example collection"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 639
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "49a9f671-4e48-460e-8eb5-91fe39266737",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "pw_ping",
"testStatus": "Started",
"localTpeId": "f240cfdf-bd82-32ea-9040-
1cd2fcfc29e7::TPE_CTPServerToClient_PW_apMcpMpls6_PW_1",
"remotePoints": [],
"localNcId": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7",
"remoteNcs": [],
"startTime": 1484599280949,
"lastUpdateTime": 1484599280949,
"testParameters": {},
"pseudowireName": "apMcpMpls6_PW_1",
"userAnnotation": "string"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-
1cd2fcfc29e7::TPE_CTPServerToClient_PW_apMcpMpls6_PW_1"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7"
}
]
}
}
},
"resultsCode": "202"
}
Specify TEST ID, which is generated from the POST call when you performed the pseudowire traceroute
test.
Sample response
{
"data": {
"id": "5a49ebcc-b7f6-4d70-a4ec-be2a2336aafd",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 640
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "testResults",
"attributes": {
"testResults": [
{
"mtuUnit": "bytes",
"networkConstructName": "5160_0017",
"messageType": "Loc",
"dataType": "locResult",
"hop": "0",
"nextHopIp": "16.24.0.1",
"nextHopLabel": "8214",
"mtu": "1500"
},
{
"errorMessage": "Request Timed Out",
"hop": "1",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "2",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "3",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "4",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "5",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "6",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "7",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "8",
"dataType": "Result",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 641
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "9",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "10",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "11",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "12",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "13",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "14",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "15",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "16",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "17",
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "18",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 642
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"dataType": "Result",
"status": "failure"
},
{
"errorMessage": "Request Timed Out",
"hop": "19",
"dataType": "Result",
"status": "failure"
},
{
"networkConstructName": "5142_0017",
"latencyUnit": "ms",
"messageType": "Egr",
"dataType": "egrResult",
"latency": "255",
"hop": "20"
},
{
"operationalStatus": "success",
"testResultsStatus": "passed",
"dataType": "summary"
},
{
"dataType": "rawData",
"rawData": "MPLS traceroute with ttl (30) timeout (1000 ms) encap
(ip/udp) reply-mode (lsp)\nLegend:'!' - Success, 'X' - Error\n! Loc Hop: 0 Next
Hop: ip 16.24.0.1 Label: 8214 MTU: 1500 bytes\nX TTL: 1 Request Timed Out\nX TTL: 2
Request Timed Out\nX TTL: 3 Request Timed Out\nX TTL: 4 Request Timed Out\nX TTL: 5
Request Timed Out\nX TTL: 6 Request Timed Out\nX TTL: 7 Request Timed Out\nX TTL: 8
Request Timed Out\nX TTL: 9 Request Timed Out\nX TTL: 10 Request Timed Out\nX TTL:
11 Request Timed Out\nX TTL: 12 Request Timed Out\nX TTL: 13 Request Timed Out\nX
TTL: 14 Request Timed Out\nX TTL: 15 Request Timed Out\nX TTL: 16 Request Timed
Out\nX TTL: 17 Request Timed Out\nX TTL: 18 Request Timed Out\nX TTL: 19 Request
Timed Out\n! Egr Hop: 20 Latency: 255 ms"
}
],
"testType": "pwTraceroute",
"testStatus": "Completed",
"localTpeId": "91521701-41c0-3892-a008-
8114e6f46175::TPE_CTPServerToClient_PW_apMcpMpls2_PW_1",
"remotePoints": [],
"localNcId": "91521701-41c0-3892-a008-8114e6f46175",
"remoteNcs": [
"f240cfdf-bd82-32ea-9040-1cd2fcfc29e7"
],
"startTime": 1492789374403,
"lastUpdateTime": 1492789395823,
"testParameters": {
"encapType": "ip/udp",
"timeoutUnit": "ms",
"ttl": "30",
"timeout": "1000",
"replyMode": "lsp"
},
"pseudowireName": "apMcpMpls2_PW_1",
"userAnnotation": "string"
},
"relationships": {
"tpes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 643
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"data": [
{
"type": "tpes",
"id": "91521701-41c0-3892-a008-
8114e6f46175::TPE_CTPServerToClient_PW_apMcpMpls2_PW_1"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "91521701-41c0-3892-a008-8114e6f46175"
},
{
"type": "networkConstructs",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7"
}
]
},
"adjacencyFres": {
"data": [
{
"type": "fres",
"id": "-1996657695693970062"
}
]
},
"ipDataFres": {
"data": [
{
"type": "fres",
"id": "7108030853852057371"
}
]
}
}
},
"resultsCode": 200,
"requestIds": "5a49ebcc-b7f6-4d70-a4ec-be2a2336aafd"
}
Note: LSP Ping is supported for both static and dynamic tunnels.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 644
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To start an LSP ping test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/tests/lspOperations
Note: For an E-Tree service, you can only run a test from root-to-leaf or leaf-to-root. You cannot run a test
from leaf-to-leaf or root-to-root.
{
"data": {
"type": "ping",
"localTpeId": "MockLspCtp6x",
"testParameters": {
"count": "5",
"packetSize": "98",
"encapType": "ip/udp",
"replyMode": "lsp",
"timeout": "500",
"ttl": "3"
},
"userAnnotation": "2016.12.8 The testParameters can be left empty."
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 645
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "fc6aba0a-19a9-4915-9262-1a8927c4846f",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "lsp_ping",
"testStatus": "Started",
"localTpeId": "MockLspCtp6x",
"remotePoints": [],
"localNcId": "MockNc5142",
"remoteNcs": [],
"startTime": 1483551682852,
"lastUpdateTime": 1483551682852,
"testParameters": {
"encapType": "ip/udp",
"count": "5",
"packetSize": "98",
"ttl": "3",
"replyMode": "lsp",
"timeout": "500"
},
"lspName": "apMcpLsp6x3",
"userAnnotation": "2016.12.8 The testParameters can be left empty.",
"tunnelType": "egress-corouted-static"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockLspCtp6x"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc5142"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 646
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Specify the Test Record ID, which is the “id” (for example, fc6aba0a-19a9-4915-9262-1a8927c4846f) of
the response (when you Perform an LSP ping test on a selected tunnel).
https://<mcp_server>/tdc/api/tests/fc6aba0a-19a9-4915-9262-1a8927c4846f
Sample response
{
"data": {
"id": "fc6aba0a-19a9-4915-9262-1a8927c4846f",
"type": "testResults",
"attributes": {
"testResults": [
{
"operationalStatus": "success",
"testResultsStatus": "passed",
"dataType": "summary"
},
{
"rxPackets": "10",
"roundTripMax": "6",
"latencyUnit": "ms",
"dataType": "pingResults",
"txPackets": "10",
"type": "statistics",
"roundTripMin": "3",
"roundTripAvg": "3"
},
{
"dataType": "rawData",
"rawData": "MPLS Ping with count (10) ttl (200) timeout (500 ms) size
(126 bytes) encap (ip/udp) reply-mode (ipv4)\nLegend:'!' - Success, 'X' - Error\n!
Seq: 1 Latency: 5 ms\n! Seq: 2 Latency: 3 ms\n! Seq: 3 Latency: 3 ms\n! Seq: 4
Latency: 3 ms\n! Seq: 5 Latency: 3 ms\n! Seq: 6 Latency: 3 ms\n! Seq: 7 Latency: 6
ms\n! Seq: 8 Latency: 3 ms\n! Seq: 9 Latency: 3 ms\n! Seq: 10 Latency: 3
ms\n\n--------------- Statistics ---------------\n10 packets transmitted, 10
packets received\nround-trip (ms) min/avg/max = 3/3/6"
}
],
"testType": "lsp_ping",
"testStatus": "Completed",
"localTpeId": "MockLspCtp6x",
"remotePoints": [],
"localNcId": "MockNc5142",
"remoteNcs": [],
"startTime": 1483551682852,
"lastUpdateTime": 1483551686242,
"testParameters": {
"encapType": "ip/udp",
"packetSizeUnit": "bytes",
"timeoutUnit": "ms",
"count": "10",
"packetSize": "126",
"ttl": "200",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 647
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"replyMode": "ipv4",
"timeout": "500"
},
"lspName": "apMcpLsp6x3",
"userAnnotation": "2016.12.8 The testParameters can be left empty.",
"tunnelType": "egress-corouted-static"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockLspCtp6x"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc5142"
}
]
}
}
},
"resultsCode": 200,
"requestIds": "fc6aba0a-19a9-4915-9262-1a8927c4846f"
}
Note: LSP Traceroute is supported for both static and dynamic tunnels.
To perform an LSP traceroute test on a selected tunnel, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/tests/lspOperations
Note: For an E-Tree service, you can only run a test from root-to-leaf or leaf-to-root. You cannot run a test
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 648
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "traceroute",
"localTpeId": "MockLspCtp",
"testParameters": {
"encapType": "non-ip/udp",
"replyMode": "ipv4",
"timeout": "10000",
"ttl": "30"
},
"userAnnotation": "2016.12.9 The testParameters can be left empty."
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 649
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "c2666233-3bc5-4129-acf5-0d85c2e41e7e",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "lsp_traceroute",
"testStatus": "Started",
"localTpeId": "MockLspCtp",
"remotePoints": [],
"localNcId": "MockNc6500Mpls",
"remoteNcs": [],
"startTime": 1483554806632,
"lastUpdateTime": 1483554806632,
"testParameters": {
"encapType": "non-ip/udp",
"ttl": "30",
"replyMode": "ipv4",
"timeout": "10000"
},
"lspName": "mcpLspPrimary",
"userAnnotation": "2016.12.9 The testParameters can be left empty.",
"tunnelType": "ingress-corouted-static",
"equipmentGroupId": "9",
"shelf": "1"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockLspCtp"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc6500Mpls"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 650
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Specify the Test Record ID, which is the “id” (for example, c2666233-3bc5-4129-acf5-0d85c2e41e7e) of
the response (when you Perform an LSP traceroute on a selected tunnel).
https://<mcp_server>/tdc/api/tests/c2666233-3bc5-4129-acf5-0d85c2e41e7e
Sample response
{
"data": {
"id": "c2666233-3bc5-4129-acf5-0d85c2e41e7e",
"type": "testResults",
"attributes": {
"testResults": [
{
"mtuUnit": "bytes",
"networkConstructName": "65sd_2071",
"sourceIp": "16.24.0.1",
"messageType": "Loc",
"dataType": "locResult",
"hop": "0",
"nextHopIfNum": "0",
"nextHopLabel": "16",
"mtu": "1500"
},
...,
{
"operationalStatus": "success",
"testResultsStatus": "passed",
"dataType": "summary"
},
{
"dataType": "rawData",
"rawData": "MPLS traceroute with ttl (30) timeout (1000 ms) encap (non-
ip/udp) reply-mode (lsp)\nLegend:'!' - Success, 'X' - Error\n! Loc Node: 0 Id
16.24.0.3 Next Hop: ingress ifNum 0 Label 19 MTU 1500\n! Egr Node: 1 Id
20.226.84.144 Latency: 3 ms"
}
],
"testType": "lsp_traceroute",
"testStatus": "Completed",
"localTpeId": "MockLspCtp",
"remotePoints": [],
"localNcId": "MockNc6500Mpls",
"remoteNcs": [
"MockNc5142",
"MockNc6500"
],
"startTime": 1483554806632,
"lastUpdateTime": 1483554809837,
"testParameters": {
"encapType": "non-ip/udp",
"ttl": "30",
"replyMode": "ipv4",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 651
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"timeout": "10000"
},
"lspName": "mcpLspPrimary",
"userAnnotation": "2016.12.9 The testParameters can be left empty.",
"tunnelType": "ingress-corouted-static",
"equipmentGroupId": "9",
"shelf": "1"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockLspCtp"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNc5142"
},
{
"type": "networkConstructs",
"id": "MockNc6500"
},
{
"type": "networkConstructs",
"id": "MockNc6500Mpls"
}
]
},
"adjacencyFres": {
"data": [
{
"type": "fres",
"id": "adjacencyFre_MockNc5142_MockNc6500"
},
{
"type": "fres",
"id": "adjacencyFre_MockNc6500Mpls_MockNc5142"
}
]
},
"ipDataFres": {
"data": [
{
"type": "fres",
"id": "ipDataFreAp_MockNc5142_MockNc6500"
},
{
"type": "fres",
"id": "ipDataFreAp_MockNc6500Mpls_MockNc5142"
}
]
}
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 652
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"resultsCode": 200,
"requestIds": "c2666233-3bc5-4129-acf5-0d85c2e41e7e"
}
To set/enable the port level facility loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "facility",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 653
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "14e53a07-bf70-4af6-824a-5973dcfbda64",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767934824,
"lastUpdateTime": 1510767934824,
"testParameters": {
"mode": "facility",
"channel": "36",
"type": "port",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 654
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 655
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 656
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "facility",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 657
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "14e53a07-bf70-4af6-824a-5973dcfbda64",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767934824,
"lastUpdateTime": 1510767934824,
"testParameters": {
"mode": "facility",
"channel": "36",
"type": "port",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 658
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To set/enable the channel level facility loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "facility",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 659
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "866362f6-4d1c-48c8-94c3-23848a99dbb6",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767830375,
"lastUpdateTime": 1510767830375,
"testParameters": {
"mode": "facility",
"channel": "36",
"type": "ds1-e1",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 660
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "facility",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 661
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 662
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "facility",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 663
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "0c74c557-7775-4168-910c-43a420dc3520",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767895278,
"lastUpdateTime": 1510767895278,
"testParameters": {
"mode": "facility",
"channel": "36",
"type": "ds1-e1",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 664
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To set/enable the port level terminal loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "terminal",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 665
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "5fb72c0a-459f-4fce-9f92-c6ba580a419c",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767979010,
"lastUpdateTime": 1510767979010,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "port",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 666
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 667
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 668
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "terminal",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 669
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "5fb72c0a-459f-4fce-9f92-c6ba580a419c",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767979010,
"lastUpdateTime": 1510767979010,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "port",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 670
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To set/enable the channel level terminal loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "terminal",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 671
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "1ae14878-b3e3-48df-b57f-49a6ccb35719",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510768145023,
"lastUpdateTime": 1510768145023,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 672
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 673
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 674
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "terminal",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 675
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "1ae14878-b3e3-48df-b57f-49a6ccb35719",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510768145023,
"lastUpdateTime": 1510768145023,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 676
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To set/enable the channel level facility loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "facility",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 677
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "866362f6-4d1c-48c8-94c3-23848a99dbb6",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767830375,
"lastUpdateTime": 1510767830375,
"testParameters": {
"mode": "facility",
"channel": "36",
"type": "ds1-e1",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 678
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "facility",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 679
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 680
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "facility",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 681
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "0c74c557-7775-4168-910c-43a420dc3520",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767895278,
"lastUpdateTime": 1510767895278,
"testParameters": {
"mode": "facility",
"channel": "36",
"type": "ds1-e1",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 682
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To set/enable the port level terminal loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "terminal",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 683
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "5fb72c0a-459f-4fce-9f92-c6ba580a419c",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767979010,
"lastUpdateTime": 1510767979010,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "port",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 684
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 685
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 686
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "terminal",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 687
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "5fb72c0a-459f-4fce-9f92-c6ba580a419c",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767979010,
"lastUpdateTime": 1510767979010,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "port",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 688
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To set/enable the channel level terminal loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "terminal",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 689
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "1ae14878-b3e3-48df-b57f-49a6ccb35719",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510768145023,
"lastUpdateTime": 1510768145023,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 690
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 691
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
Specify the local TPE ID, operation, mode, type, and channel.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 692
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "terminal",
"type":"ds1-e1",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 693
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "1ae14878-b3e3-48df-b57f-49a6ccb35719",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510768145023,
"lastUpdateTime": 1510768145023,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 694
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
service problems.
To set/enable the terminal loopback test, use the Test and diagnostics API.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "enable",
"mode": "terminal",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 695
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "5fb72c0a-459f-4fce-9f92-c6ba580a419c",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767979010,
"lastUpdateTime": 1510767979010,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "port",
"operation": "enable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the test results, use the Test and diagnostics API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 696
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/tdc/api/v1/operationalStatus?freId=<FRE_ID>&osTypeString=tdmStatus
Specify the FRE ID of the service the test is running against and “tdmStatus” for the “osTypeString”.
Sample response
{
"data": {
"id": "6ade74a7-2c47-43f0-b384-b2f382158fb6",
"type": "operationalStatus",
"attributes": {},
"relationships": {
"osData": {
"data": [
{
"type": "tdmStatus",
"id": "-7901343478415674956:1::TDMSTATUS"
},
{
"type": "tdmStatus",
"id": "-7901343478415674956:2::TDMSTATUS"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "-7901343478415674956"
}
]
}
}
},
"included": [
{
"id": "-7901343478415674956:1::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "ds1-e1",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 697
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
},
{
"id": "-7901343478415674956:2::TDMSTATUS",
"type": "tdmStatus",
"attributes": {
"mode": "terminal",
"channel": "36",
"type": "port",
"enabled": false
},
"relationships": {
"tpes": {
"data": {
"type": "tpes",
"id": "d4b218da-c1e3-3fd8-8f6c-
69e8a465c6c9::TPE_chTdm1_7_36_PTP_E1_CTP"
}
}
}
}
],
"requestIds": "-7901343478415674956",
"resultsCode": "202"
}
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/tdmOperations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 698
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "tdmLoopback",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"testParameters": {
"operation": "disable",
"mode": "terminal",
"type":"port",
"channel":"36"
},
"userAnnotation": "string"
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 699
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "5fb72c0a-459f-4fce-9f92-c6ba580a419c",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "tdmLoopback",
"testStatus": "Started",
"localTpeId": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP",
"remotePoints": [],
"localNcId": "c5efbaca-8783-3471-8576-3e2145d9b5db",
"remoteNcs": [],
"startTime": 1510767979010,
"lastUpdateTime": 1510767979010,
"testParameters": {
"mode": "terminal",
"channel": "36",
"type": "port",
"operation": "disable"
},
"portType": "csopStm1",
"userAnnotation": "string",
"portName": "TDMSFP_P7"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "c5efbaca-8783-3471-8576-
3e2145d9b5db::TPE_chTdm1_7_36_PTP_E1_CTP"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "c5efbaca-8783-3471-8576-3e2145d9b5db"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 700
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: You can also use this API call for an RFC2544 test between two E-LAN services endpoints.
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/tests/benchmarkOperations
Note: For an E-Tree service, you can only run a test from root-to-leaf or leaf-to-root. You cannot run a test
from leaf-to-leaf or root-to-root.
Specify one or more of the following tests, as required: latency, frame loss, or throughput. Also specify the
required test parameters.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 701
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data" : {
"type" : "benchmark",
"generatorId" : "46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_5_1_CTPServerToClient_SUBPORT_5_1_tdc8xTest_1",
"testParameters" : {
"kpiProfile" : "test",
"reflectorType": "UNI",
"tests": [
"latency",
"frameloss",
"throughput"
],
"testMode": "in-service",
"interval": "completion",
"duration": "15min",
"maxSamples": 3,
"maxSearches": 3,
"frameSizes": [
"64",
"256"
],
"pduType": "ip",
"pcp": [ "0", "1", "2", "6", "7" ],
"tagProtocolIdentifier": "0x8100",
"customPayload": "custompayloadasdasdasdasdasd",
"ipDifferentiatedServiceCodePoint": "22",
"pcpValidation": "on",
"excessBandwidth": "50",
"samplingInterval": 3,
"framelossStartBandwidth": "profile-bandwidth",
"vidValidation": "on",
"vlanEncapType": "dot1q",
"testConnectivity": true,
"colourValidation": "on",
"reflectorId" : "1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_1_CTPServerToClient_SUBPORT_2_1_tdc8xTest_1"
}
}
}
Note: In the Sample response, the …, stands for the list of all test parameters that were used to run the
test.
{
"data": {
"id": "208cc81d-8e7b-4789-b67d-0c1c5ef00af6",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "benchmark",
"testStatus": "Started",
"localTpeId": "46682de1-0871-3f17-9a4c-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 702
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
34a02cf97074::TPE_5_1_CTPServerToClient_SUBPORT_5_1_tdc8xTest_1",
"remotePoints": [
"1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_1_CTPServerToClient_SUBPORT_2_1_tdc8xTest_1"
],
"localNcId": "46682de1-0871-3f17-9a4c-34a02cf97074",
"remoteNcs": [
"1dc5fc42-4d80-360c-8621-3244fb221cfa"
],
"startTime": 1519659865987,
"lastUpdateTime": 1519659865987,
"testParameters": {
...,
},
"generatorSlot": "5",
"reflectorSubPort": "2_1_tdc8xTest_1",
"birthCertificate": "false",
"generatorPort": "1",
"reflectorPort": "1",
"reflectorSlot": "2",
"generatorCvid": "2001",
"serviceName": "tdc8xTest",
"startTestRequest": "{\n \"data\" : {\n \"type\" : \"benchmark\",\n
\"generatorId\" : \"46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_5_1_CTPServerToClient_SUBPORT_5_1_tdc8xTest_1\",\n
\"testParameters\" : {\n \"kpiProfile\" : \"test\",\n \"maxSearches\" :
3,\n \"vlanEncapType\" : \"dot1q\",\n \"maxSamples\" : 3,\n
\"colourValidation\" : \"on\",\n \"reflectorId\" : \"1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_1_CTPServerToClient_SUBPORT_2_1_tdc8xTest_1\",\n
\"pduType\" : \"ip\",\n \"duration\" : \"15min\",\n
\"ipDifferentiatedServiceCodePoint\" : \"22\",\n \"samplingInterval\" : 3,\n
\"testConnectivity\" : true,\n \"reflectorType\" : \"UNI\",\n \"tests\" :
[ \"latency\", \"frameloss\", \"throughput\" ],\n \"tagProtocolIdentifier\" :
\"0x8100\",\n \"framelossStartBandwidth\" : \"profile-bandwidth\",\n
\"excessBandwidth\" : \"50\",\n \"testMode\" : \"in-service\",\n
\"frameSizes\" : [ \"64\", \"256\" ],\n \"interval\" : \"completion\",\n
\"vidValidation\" : \"on\",\n \"pcpValidation\" : \"on\",\n \"pcp\" : [
\"0\", \"1\", \"2\", \"6\", \"7\" ],\n \"customPayload\" :
\"custompayloadasdasdasdasdasd\"\n }\n }\n}",
"generatorSubPort": "5_1_tdc8xTest_1",
"reflectorCvid": "2001"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_1_CTPServerToClient_SUBPORT_2_1_tdc8xTest_1"
},
{
"type": "tpes",
"id": "46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_5_1_CTPServerToClient_SUBPORT_5_1_tdc8xTest_1"
}
]
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 703
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "46682de1-0871-3f17-9a4c-34a02cf97074"
},
{
"type": "networkConstructs",
"id": "1dc5fc42-4d80-360c-8621-3244fb221cfa"
}
]
}
}
},
"resultsCode": "202"
}
To retrieve the RFC2544 test results, use the Test and diagnostics API.
GET {{MCP_SERVER}}/tdc/api/v1/tests/<testId>
Specify the testId, which is the “id” (for example, 208cc81d-8e7b-4789-b67d-0c1c5ef00af6) of the
response (when you Perform an RFC2544 test).
https://<mcp_server>/tdc/api/tests/208cc81d-8e7b-4789-b67d-0c1c5ef00af6
Note: In the Sample response, the …, stands for the same information as in the initial test response.
{
"data": {
"id": "208cc81d-8e7b-4789-b67d-0c1c5ef00af6",
"type": "testResults",
"attributes": {
"testResults": [
{
"operationalStatus": "success",
"dataType": "summary"
},
{
"dataType": "rawData",
"rawData": <output as seen from the device>
},
{
"dataType": "latencySummary",
"status": "idle"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 704
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
{
"frameSizeUnit": "bytes",
"average": "22",
"samplePackets": "202002",
"colour": "green",
"unit": "usec",
"frameSize": "64",
"min": "18",
"max": "47",
"dataType": "latencyResult",
"pcp": "0"
},
<all other latency result rows from the test>,
{
"dataType": "throughputSummary",
"status": "waitingForPackets"
},
{
"frameSizeUnit": "bytes",
"average": "114.29",
"colour": "green",
"unit": "Mbps",
"frameSize": "64",
"min": "114.29",
"max": "114.29",
"dataType": "throughputResult",
"iteration": "2",
"pcp": "0"
},
<all other throughput result rows from the test> ,
{
"dataType": "framelossSummary",
"status": "idle"
},
{
"frameSizeUnit": "bytes",
"unit": "%",
"frameSize": "64",
"firstCycle": "20.34",
"bandwidth": "200",
"rate": "100",
"dataType": "framelossResult",
"secondCycle": "",
"pcp": "0",
"bandwidthUnit": "Mbps"
},
<all other frame loss test result rows form the test>
],
"testType": "benchmark",
"testStatus": "In progress",
"localTpeId": "46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_5_1_CTPServerToClient_SUBPORT_5_1_tdc8xTest_1",
"remotePoints": [
"1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_1_CTPServerToClient_SUBPORT_2_1_tdc8xTest_1"
],
"localNcId": "46682de1-0871-3f17-9a4c-34a02cf97074",
"remoteNcs": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 705
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"1dc5fc42-4d80-360c-8621-3244fb221cfa"
],
...,
"resultsCode": 200,
"requestIds": "208cc81d-8e7b-4789-b67d-0c1c5ef00af6"
}
Note: In the Sample error response, the …, stands for the same fields as in a non-error response.
{
"data": {
"id": "acc678ca-5c80-44c8-8744-d25280b3055d",
"type": "testResults",
"attributes": {
"testResults": [
{
"operationalStatus": "failure",
"errorMessage": "Port under test does not have enough bandwidth to start
the selected test instances; Failed start test due to errorCode[Internal Server
Error] details[INTERNAL_SERVER_FAILURE : Test failed to start]",
"dataType": "summary"
},
{
"dataType": "rawData",
"rawData": "ERROR: Port under test does not have enough bandwidth to
start the selected test instances"
}
],
"testType": "benchmark",
"testStatus": "Failed",
"localTpeId": "1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_16_CTPServerToClient_SUBPORT_1_2_16_tdc8xTest_1",
"remotePoints": [
"46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_6_17_CTPServerToClient_SUBPORT_1_6_17_tdc8xTest_1"
],
...,
,
"resultsCode": 200,
"requestIds": "acc678ca-5c80-44c8-8744-d25280b3055d"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 706
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
DELETE {{MCP_SERVER}}/tdc/api/v1/tests/<testId>/cancel
Specify the testId, which is the “id” (for example, 208cc81d-8e7b-4789-b67d-0c1c5ef00af6) of the
response (when you Perform an RFC2544 test).
https://<mcp_server>/tdc/api/v1/tests/208cc81d-8e7b-4789-b67d-0c1c5ef00af6/cancel
Note: In the Sample response, the first instance of …, stands for the results of the benchmark test. The
second instance of …, stands for the same fields as a completed benchmark test.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 707
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"id": "26ceea87-4596-4f7f-80bc-bdc80dc0a602",
"type": "testResults",
"attributes": {
"testResults": [
{
"operationalStatus": "success",
"dataType": "summary"
},
{
"dataType": "rawData",
"rawData": "<device output is here>"
},
{
"dataType": "latencySummary",
"status": "idle"
},
{
"frameSizeUnit": "bytes",
"average": "",
"samplePackets": "0",
"colour": "green",
"unit": "usec",
"frameSize": "256",
"min": "",
"max": "",
"dataType": "latencyResult",
"pcp": "0"
},
...,
],
"testType": "benchmark",
"testStatus": "Cancelling",
"localTpeId": "46682de1-0871-3f17-9a4c-
34a02cf97074::TPE_5_1_CTPServerToClient_SUBPORT_5_1_tdc8xTest_1",
"remotePoints": [
"1dc5fc42-4d80-360c-8621-
3244fb221cfa::TPE_2_1_CTPServerToClient_SUBPORT_2_1_tdc8xTest_1"
],
"localNcId": "46682de1-0871-3f17-9a4c-34a02cf97074",
"remoteNcs": [
"1dc5fc42-4d80-360c-8621-3244fb221cfa"
],
"startTime": 1519659693367,
"lastUpdateTime": 1519659748660,
...,
},
"resultsCode": 200,
"requestIds": "26ceea87-4596-4f7f-80bc-bdc80dc0a602"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 708
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: MCP Release 18.02 adds static and dynamic tunnel support for 8700 nodes equipped with the
8700HD card and running SAOS 8.6+.
Note: MCP Release 18.02 adds static tunnel support for 3926 and 3928 nodes running SAOS 6.17+.
This section describes the API calls used retrieve, provision, and manage packet infrastructure including
stand and dynamic MPLS tunnels, LSPs, and pseudowires:
• Retrieve discovered / planned static MPLS-TP LSP tunnels (protected and unprotected)
• Retrieve all discovered / planned MPLS-TP LSP tunnels
• Retrieve the set of discovered / planned L2 services that traverse a specific LSP tunnel
• Refreshing properties for links and tunnels
• Retrieve IP links
• LAG show
• Perform static MPLS commissioning
• Create a static MPLS-TP tunnel
• Delete a static MPLS-TP LSP tunnel (protected and unprotected) by provisioning intent
• Retrieve a dynamic MPLS-TP tunnel
• Create a dynamic MPLS-TP tunnel
• Modify a dynamic MPLS co-routed tunnel
• Delete a dynamic MPLS-TP tunnel
• Unidirectional tunnels
• Retrieve an inventory of unidirectional TE tunnel
• Create a unidirectional FRR tunnel
• Manage a unidirectional tunnel
• Retrieve / view LLDP link bandwidth properties
• Edit link bandwidth properties
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 709
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{{MCP_SERVER}}/nsi/api/fres
Specify the type as link and the layer rate as MPLS_PROTECTION. (For unprotected, specify the layer rate
as MPLS.)
Sample response
Note: To locate each primary and backup tunnel, look for “partitionFres” in the response.
{
"links": {},
"data": [
{
"id": "-4821002836492640520",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr6",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 710
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-4821002836492640520:1"
},
{
"type": "endPoints",
"id": "-4821002836492640520:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr6_headEnd"
},
{
"type": "fres",
"id": "3269857543184725293"
},
{
"type": "fres",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::FRE_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "-4821002836492640520::58b8c556-ef0d-46e0-aa5a-b73845d097de"
}
]
}
}
},
{
"id": "-765751368598326882",
"type": "fres",
"attributes": {
"userLabel": "{{I_TUNNEL_NAME}}",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 711
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-765751368598326882:1"
},
{
"type": "endPoints",
"id": "-765751368598326882:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "3976594783991191338"
},
{
"type": "fres",
"id": "8885498097352337343"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "-765751368598326882::58b8c472-1109-4521-bd15-391de06d4d46"
}
]
}
}
},
{
"id": "-8200747149170661928",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr5",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-8200747149170661928:1"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 712
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "endPoints",
"id": "-8200747149170661928:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr5_headEnd"
},
{
"type": "fres",
"id": "3329084730944217730"
},
{
"type": "fres",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::FRE_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "-8200747149170661928::58b8c51c-0916-4389-bcbe-a23e1646a899"
}
]
}
}
},
{
"id": "1260418069308107397",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr7",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1260418069308107397:1"
},
{
"type": "endPoints",
"id": "1260418069308107397:2"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 713
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr7_headEnd"
},
{
"type": "fres",
"id": "-929227714982548042"
},
{
"type": "fres",
"id": "bb9eaed8-98f1-39e3-9de2-7845762ef4b4::FRE_MPLS-
PROTECTION_ConPr7_tailEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "1260418069308107397::58b8c655-c8e3-4821-a312-69b621ff0bb0"
}
]
}
}
},
{
"id": "2048873746030648184",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr6",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "2048873746030648184:1"
},
{
"type": "endPoints",
"id": "2048873746030648184:2"
}
]
},
"partitionFres": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 714
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"data": [
{
"type": "fres",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr6_headEnd"
},
{
"type": "fres",
"id": "4883138164493328492"
},
{
"type": "fres",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::FRE_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "2048873746030648184::58b8c556-ef0d-46e0-aa5a-b73845d097de"
}
]
}
}
},
{
"id": "3976594783991191338",
"type": "fres",
"attributes": {
"userLabel": "{{I_TUNNEL_NAME}}",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "3976594783991191338:1"
},
{
"type": "endPoints",
"id": "3976594783991191338:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 715
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr4_headEnd"
},
{
"type": "fres",
"id": "-7383227529204334810"
},
{
"type": "fres",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::FRE_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "3976594783991191338::58b8c472-1109-4521-bd15-391de06d4d46"
}
]
}
}
},
{
"id": "5830726521198591188",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr7",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "5830726521198591188:1"
},
{
"type": "endPoints",
"id": "5830726521198591188:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "1260418069308107397"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 716
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "fres",
"id": "7093209962898911937"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "5830726521198591188::58b8c655-c8e3-4821-a312-69b621ff0bb0"
}
]
}
}
},
{
"id": "6332861249949002341",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr5",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "6332861249949002341:1"
},
{
"type": "endPoints",
"id": "6332861249949002341:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "7757991393500060713"
},
{
"type": "fres",
"id": "-8200747149170661928"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 717
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "6332861249949002341::58b8c51c-0916-4389-bcbe-a23e1646a899"
}
]
}
}
},
{
"id": "7093209962898911937",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr7",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "7093209962898911937:1"
},
{
"type": "endPoints",
"id": "7093209962898911937:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr7_headEnd"
},
{
"type": "fres",
"id": "-5446095221080533054"
},
{
"type": "fres",
"id": "bb9eaed8-98f1-39e3-9de2-7845762ef4b4::FRE_MPLS-
PROTECTION_ConPr7_tailEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "7093209962898911937::58b8c655-c8e3-4821-a312-69b621ff0bb0"
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 718
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
},
{
"id": "7757991393500060713",
"type": "fres",
"attributes": {
"userLabel": "I_ConPr5",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "7757991393500060713:1"
},
{
"type": "endPoints",
"id": "7757991393500060713:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr5_headEnd"
},
{
"type": "fres",
"id": "4886637522206158761"
},
{
"type": "fres",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::FRE_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "7757991393500060713::58b8c51c-0916-4389-bcbe-a23e1646a899"
}
]
}
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 719
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "8885498097352337343",
"type": "fres",
"attributes": {
"userLabel": "{{I_TUNNEL_NAME}}",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "8885498097352337343:1"
},
{
"type": "endPoints",
"id": "8885498097352337343:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::FRE_MPLS-
PROTECTION_ConPr4_headEnd"
},
{
"type": "fres",
"id": "3299469387451167834"
},
{
"type": "fres",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::FRE_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "8885498097352337343::58b8c472-1109-4521-bd15-391de06d4d46"
}
]
}
}
},
{
"id": "9061927206982571728",
"type": "fres",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 720
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"attributes": {
"userLabel": "I_ConPr6",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"isActual": "false"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "9061927206982571728:1"
},
{
"type": "endPoints",
"id": "9061927206982571728:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "-4821002836492640520"
},
{
"type": "fres",
"id": "2048873746030648184"
}
]
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "9061927206982571728::58b8c556-ef0d-46e0-aa5a-b73845d097de"
}
]
}
}
}
],
"included": [
{
"id": "-4821002836492640520:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 721
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
}
}
},
{
"id": "-4821002836492640520:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
}
}
},
{
"id": "-765751368598326882:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
}
}
},
{
"id": "-765751368598326882:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 722
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
}
}
},
{
"id": "-8200747149170661928:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
}
}
},
{
"id": "-8200747149170661928:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
}
}
},
{
"id": "1260418069308107397:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr7_headEnd"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 723
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
]
}
}
},
{
"id": "1260418069308107397:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "bb9eaed8-98f1-39e3-9de2-7845762ef4b4::TPE_FTP_MPLS-
PROTECTION_ConPr7_tailEnd"
}
]
}
}
},
{
"id": "2048873746030648184:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
}
}
},
{
"id": "2048873746030648184:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 724
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
},
{
"id": "3976594783991191338:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
}
}
},
{
"id": "3976594783991191338:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
}
}
},
{
"id": "5830726521198591188:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr7_headEnd"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 725
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
{
"id": "5830726521198591188:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "bb9eaed8-98f1-39e3-9de2-7845762ef4b4::TPE_FTP_MPLS-
PROTECTION_ConPr7_tailEnd"
}
]
}
}
},
{
"id": "6332861249949002341:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
}
}
},
{
"id": "6332861249949002341:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
}
}
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 726
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "7093209962898911937:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr7_headEnd"
}
]
}
}
},
{
"id": "7093209962898911937:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "bb9eaed8-98f1-39e3-9de2-7845762ef4b4::TPE_FTP_MPLS-
PROTECTION_ConPr7_tailEnd"
}
]
}
}
},
{
"id": "7757991393500060713:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
}
}
},
{
"id": "7757991393500060713:2",
"type": "endPoints",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 727
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr5_headEnd"
}
]
}
}
},
{
"id": "8885498097352337343:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
}
}
},
{
"id": "8885498097352337343:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr4_headEnd"
}
]
}
}
},
{
"id": "9061927206982571728:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 728
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "09948e01-25b9-3366-9bb1-ecef1afd344b::TPE_FTP_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
}
}
},
{
"id": "9061927206982571728:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "efc2f602-f8a5-3287-a357-c0a2ab4b1119::TPE_FTP_MPLS-
PROTECTION_ConPr6_headEnd"
}
]
}
}
}
]
}
To retrieve the tunnels associated with a specific LLDP link, use the Services Inventory (FREs) API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 729
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
https://<mcp_server>/nsi/api/fres?childFreId=-1996657695693970062&signalContentType=LSP.
IP Data ETHERNET IP
Pseudowire MPLS PW
Sample response
{
"links": {},
"data": [
{
"id": "-6040704339084783820",
"type": "fres",
"attributes": {
"userLabel": "RA-LSP-1",
"mgmtName": "",
"nativeName": "",
"layerRate": "MPLS",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"signalContentType": "LSP",
"maxReservableBandwidth": [
{
"layer": "MPLS",
"capacity": 1,
"capacitySize": {
"size": [
"1000"
],
"pattern": {
"type": "POOL",
"format": "number"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 730
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"unit": "mbps"
}
}
],
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-6040704339084783820:1"
},
{
"type": "endPoints",
"id": "-6040704339084783820:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "7108030853852057371"
}
]
}
}
}
],
"included": [
{
"id": "-6040704339084783820:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "91521701-41c0-3892-a008-
8114e6f46175::TPE_CTPServerToClient_LSP_RA-LSP-1_headEnd"
}
]
}
}
},
{
"id": "-6040704339084783820:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 731
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-
1cd2fcfc29e7::TPE_CTPServerToClient_LSP_RA-LSP-1_tailEnd"
}
]
}
}
}
]
}
Retrieve all the services with layer rate ETHERNET associated with a specific LLDP link
To retrieve all the services with layer rate ETHERNET associated with a specific LLDP link, use the
Services Inventory (FREs) API.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
Specify the layerRate Ethernet and childFREId (which you can obtain by querying using getFRE API and
finding the FRE ID of the LLDP link of interest).
https://<mcp_server>/nsi/api/fres?layerRate=ETHERNET&childFreId=-1996657695693970062
Sample response
{
"links": {},
"data": [
{
"id": "3987563055145718878",
"type": "fres",
"attributes": {
"userLabel": "nsiEVPL3nodes51",
"mgmtName": "nsiEVPL3nodes51",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"signalContentType": "VCE,VLAN",
"additionalAttributes": {
"isActual": "true"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 732
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "3987563055145718878:1"
},
{
"type": "endPoints",
"id": "3987563055145718878:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "91521701-41c0-3892-a008-8114e6f46175::FRE_VLAN_5"
},
{
"type": "fres",
"id": "-1996657695693970062"
},
{
"type": "fres",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::FRE_EVC_nsiEVPL3nodes51"
}
]
}
}
},
...,
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "7108030853852057371:1"
},
{
"type": "endPoints",
"id": "7108030853852057371:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "91521701-41c0-3892-a008-8114e6f46175::FRE_IP_if19_204"
},
{
"type": "fres",
"id": "-1996657695693970062"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 733
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"type": "fres",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::FRE_IP_if19_204"
}
]
}
}
}
],
"included": [
{
"id": "3987563055145718878:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "91521701-41c0-3892-a008-
8114e6f46175::TPE_18_CTPServerToClient_VLAN_5"
}
]
}
}
},
...,
]
}
Retrieve all parent FREs of a given child FRE for specific layer rate and signal content
type
To retrieve all the services with layer rate ETHERNET associated with a specific LLDP link, use the
Services Inventory (FREs) API.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
Specify the layerRate ETHERNET and childFREId (which you can obtain by querying using getFRE API and
finding the FRE ID of the LLDP link of interest) and signalContentType=VCE.
https://<mcp_server>/nsi/api/fres?layerRate=ETHERNET&childFreId=-1154537279236972192&
signalContentType=VCE
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 734
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response
{
"links": {},
"data": [
{
"id": "4880289591882536894",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "apMcpMpls",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"signalContentType": "VCE",
"cfmPackages": [
{
"cfmServiceName": "apMcpMpls",
"ccmPriority": "7",
"ccmInterval": "1",
"ccmIntervalUnit": "sec",
"cfmAdminState": "enabled",
"maName": "apMcpMpls",
"mdName": "md4",
"mdLevel": "4",
"megId": "md4apMcpMpls"
}
],
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "4880289591882536894:1"
},
{
"type": "endPoints",
"id": "4880289591882536894:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::FRE_EVC_apMcpMpls"
},
{
"type": "fres",
"id": "-4223216837303838843"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 735
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
{
"type": "fres",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::FRE_EVC_apMcpMpls"
}
]
}
}
}
],
...,
]
}
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
https://<mcp_server>/nsi/api/fres?layerRate=MPLS_PROTECTION&type=link&include=tpes
Sample response
{
"links": {},
"data": [
{
"id": "-1154537279236972192",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "apMcpLsp",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"protectionRole": "All",
"signaled": "false",
"isActual": "true",
"lspName": "apMcpLsp",
"resiliency": "Normal",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 736
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"subType": "TP",
"coRouted": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-1154537279236972192:1"
},
{
"type": "endPoints",
"id": "-1154537279236972192:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "8366750368065437314"
}
]
}
}
},
{
"id": "-1923914014353522308",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "scLsp_P",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"protectionRole": "primary",
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-1923914014353522308:1"
},
{
"type": "endPoints",
"id": "-1923914014353522308:2"
}
]
},
"partitionFres": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 737
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"data": [
{
"type": "fres",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::FRE_MPLS-
PROTECTION_scLsp_P_tailEnd"
},
{
"type": "fres",
"id": "-4589545612692847640"
},
{
"type": "fres",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::FRE_MPLS-
PROTECTION_scLsp_P_headEnd"
}
]
}
}
},
{
"id": "-2336418390970056249",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "RA-LSP-1",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"additionalAttributes": {
"protectionRole": "All",
"signaled": "false",
"isActual": "true",
"lspName": "RA-LSP-1",
"resiliency": "Normal",
"subType": "TP",
"coRouted": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-2336418390970056249:1"
},
{
"type": "endPoints",
"id": "-2336418390970056249:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 738
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "-3568928065528446517"
}
]
}
}
}
],
"included": [
{
"id": "-1154537279236972192:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::TPE_FTP_MPLS-
PROTECTION_apMcpLsp_tailEnd"
}
]
}
}
},
{
"id": "-1154537279236972192:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::TPE_FTP_MPLS-
PROTECTION_apMcpLsp_headEnd"
}
]
}
}
},
{
"id": "-1923914014353522308:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::TPE_FTP_MPLS-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 739
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
PROTECTION_scLsp_P_tailEnd"
}
]
}
}
},
{
"id": "-1923914014353522308:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::TPE_FTP_MPLS-
PROTECTION_scLsp_P_headEnd"
}
]
}
}
}
]
}
Retrieving a resource ID
Retrieve the container resource and select one of the resource IDs. For example, in the case below, the
resource ID, RID is 58991626-9a79-45e6-97df-53ecdad53ce2
Sample call:
{{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v4.resourceTypes.MplsOperationCon
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 740
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
tainer
Sample response:
{
"items": [
{
"id": "58991626-9a79-45e6-97df-53ecdad53ce2",
"label": "product for MplsOperationContainer",
"resourceTypeId": "ifd.v4.resourceTypes.MplsOperationContainer",
"productId": "58991625-0026-4481-9a68-31bff1eff90c",
"tenantId": "7c7da24e-d2af-35c7-8f6d-d8d16c7f0738",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-02-07T00:34:46.786Z",
"createdAt": "2017-02-07T00:34:46.300Z",
"autoClean": false
},
{
"id": "5a593761-2ac7-48b6-b148-d142518ecbca",
"label": "Resource for ifd.v4.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v4.resourceTypes.MplsOperationContainer",
"productId": "5a593742-18de-415d-b85a-fd584b1fcdac",
"tenantId": "7e2374c5-6d48-4f28-a07b-de165b20b8f0",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-01-12T22:32:01.986Z",
"createdAt": "2018-01-12T22:32:01.861Z",
"autoClean": false
},
{...}
],
"total": 5,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 741
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations
{
"interface": "resync",
"inputs": {
"freId": "8044123183179859606"
}
}
Sample response:
{
"id": "5a605348-d39b-492f-be70-9763b68cea18",
"resourceId": "5a593763-c966-490b-8b8e-46503a5d22de",
"interface": "refresh",
"inputs": {
"freId": "8044123183179859606"
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-01-18T07:56:56.547Z",
"updatedAt": "2018-01-18T07:56:56.547Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
A loop is needed at the caller side to keep checking result state == successful
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 742
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample response:
{
"id": "5a605210-2f07-4e7c-92f9-edeb438d2970",
"resourceId": "5a593763-c966-490b-8b8e-46503a5d22de",
"interface": "refresh",
"inputs": {
"freId": "8044123183179859606"
},
"outputs": {
"resyncedNetworkElements": [
{
"ipAddress": "10.111.50.203",
"name": "MCP-5142-203"
},
{
"ipAddress": "10.111.50.200",
"name": "MCP-5142-200"
},
{
"ipAddress": "10.111.50.202",
"name": "MCP-5142-202"
}
]
},
"state": "successful",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-01-18T07:51:44.108Z",
"updatedAt": "2018-01-18T07:51:52.892Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
Retrieve IP links
You can use the REST API retrieve a list of IP links, which function as part of the infrastructure supporting
packet services.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres?serviceClass=IP
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 743
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": [
{
"id": "d5b25d0b-e3bb-3442-978f-82483acf3ba6::FRE_2_EQPTGRP_7_IP_vs231",
"type": "fres",
"attributes": {
"operationState": "fully operating",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "d5b25d0b-e3bb-3442-978f-82483acf3ba6",
"nodalId": "d5b25d0b-e3bb-3442-978f-
82483acf3ba6::FRE_2_EQPTGRP_7_IP_vs231"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered"
},
"resourceState": "discovered",
"serviceClass": "IP",
"mgmtName": "vs231",
"layerRate": "ETHERNET",
"multiHighestStackLayerRate": "ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"topologySources": [
"discovered"
],
"signalContentType": "IP",
"active": true,
"additionalAttributes": {
"isActual": "true"
}
},
...
LAG show
Lag show retrieves LAG information of all lags.
Use JOB POST REST API of Network Element Configuration in MCP to invoke requests:
/configmgmt/api/v1/jobs
Attributes:
"scriptName": "lagShow"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 744
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Request payload
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "lagShow",
"inputs": [
{
"data": [
{
"type":"networkConstructs"
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
Response payload
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 745
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
[
{
"actorSystemPriority": "0x8000",
"addedTotalPorts": [
"7/9"
],
"agg": "Aggregate",
"aggAdminKey": "0x4001",
"aggAdminState": "Up",
"aggCollMaxDelay": 0,
"aggId": "0x4001(16385)",
"aggIndex": "0x4001",
"aggMinLinkAggregation": "off",
"aggMinLinkThreshold": 1,
"aggMode": "LACP",
"aggName": "AGG_D",
"aggOperKey": "0x2001",
"aggOperState": "Up",
"aggPortMac": "80:17:7D:E8:AC:EB",
"aggProtectionMode": "proprietary",
"aggReadyWaiting": "None",
"aggRevertDelay": 5000,
"aggRevertProtection": "off",
"aggSystemId": "80:17:7D:E8:AC:EB",
"lagPortDescription": "cienaaa",
"markerRespAllRcvdCount": 0,
"markerTimeout": 0,
"partnerCollMaxDelay": 0,
"partnerOperKey": "0x1802",
"partnerSystemId": "00:23:8A:8F:13:80",
"partnerSystemPriority": "0x8000",
"primaryPorts": [
"7/9"
],
"protectionPorts": [],
"selectedPorts": [
"7/9"
],
"timeOutCount": 0
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 746
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To perform static MPLS commissioning, use the Network element configuration (configmgmt) API.
Sample request
POST {{MCP_SERVER}}/configmgmt/api/v1/jobs
The aisGlobalConfig Config Manager script allows a user to apply ais-global config commissioning
configuration to any Ciena CES or 6500 PF device that has a session established with MCP. The script will
execute the RA command to communicate with the device.
The aisGlobalConfig script allows the user to execute update ais-global config attributes. The schema
provides the user with an input attribute named "action". This action attribute is enumerable with option:
"update".
• The "update" action allows the user to update the ais-global config attribute.
NOTE: The "scriptName" attribute must contain the value "aisGlobalconfig" to execute the ais-global-
configuration script.
NOTE: "id" (contained twice in the example below) is the network construct ID given by MCP for the NE,
and "ipAddress" is the IP of the NE.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 747
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "aisGlobalConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"globalConfig": "enable"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 748
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"jobId": "6f057d9f-c912-435b-8f0b-47cab0f540b2",
"status": "COMPLETED",
"input": {
"data": {
"type": "jobs"
}
},
"output": {
"data": {
"type": "jobResults",
"attributes": {
"scriptResults": [
{
"scriptName": "aisGlobalConfig",
"status": "COMPLETED",
"commandResults": [
{
"command": "set-ais-global-configuration.json",
"result": {
"result": {
"data": "",
"result": "success"
}
}
}
]
}
]
}
}
}
}
AIS profiles on nodes that allow profiling (SAOS based nodes), so they can be used by the MPLS tunnels
BFD session or IP interface BFD session. The AIS profile would notably specify the RDI state, the refresh
timer and tlv-mode.
The aisProfileConfig Config Manager script allows a user to apply ais-profile commissioning
configuration to any Ciena CES or 6500 PF device that has a session established with MCP. The script will
execute the RA command to communicate with the device.
The aisProfileConfig script allows the user to execute create and delete profile, set and reset of profile
attributes and set ais global config within the same script. The schema provides the user with an input
attribute named "action". This action attribute is enumerable with options: "create", "delete", "update",
"unset".
• The "create" action allows the user to create ais-profile with attributes and set ais-global config
attribute.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 749
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: The "scriptName" attribute must contain the value "aisProfileConfig " to execute the ais-profile
configuration script.
Note:"id" (contained twice in each example below) is the network construct ID given by MCP for the NE,
and "ipAddress" is the IP of the NE.
Sample request
POST {{MCP_SERVER}}/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 750
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "aisProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "create",
"profileName":"test",
"refreshTimer": 12,
"rdi": "disable"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 751
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"jobId": "6f057d9f-c912-435b-8f0b-47cab0f540b2",
"status": "COMPLETED",
"input": {
"data": {
"type": "jobs"
}
},
"output": {
"data": {
"type": "jobResults",
"attributes": {
"scriptResults": [
{
"scriptName": "aisProfileConfig",
"status": "COMPLETED",
"commandResults": [
{
"command": "set-ais-profile.json",
"result": {
"result": {
"data": "",
"result": "success"
}
}
}
]
}
]
}
}
}
}
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 752
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "aisProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "delete",
"profileName":"test"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 753
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"jobId": "6f057d9f-c912-435b-8f0b-47cab0f540b2",
"status": "COMPLETED",
"input": {
"data": {
"type": "jobs"
}
},
"output": {
"data": {
"type": "jobResults",
"attributes": {
"scriptResults": [
{
"scriptName": "aisProfileConfig",
"status": "COMPLETED",
"commandResults": [
{
"command": "set-ais-profile.json",
"result": {
"result": {
"data": "",
"result": "success"
}
}
}
]
}
]
}
}
}
}
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 754
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "aisProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"profileName":"test",
"refreshTimer": 12,
"rdi": "disable"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 755
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "aisProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "unset",
"profileName":"test",
"refreshTimer": null,
"rdi": null
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
The aisProfileShow Config Manager script allows a user to display ais-profile configuration to any Ciena
CES or 6500 PF device that has a session established with MCP. The script will execute the RA command
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 756
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
NOTE: The "scriptName" attribute must contain the value "aisProfileShow " to execute the ais-profile
configuration script.
NOTE: "id" (contained twice in the example below) is the network construct ID given by MCP for the NE,
and "ipAddress" is the IP of the NE.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 757
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-03-23T14:54:06.000+0000",
"scripts": [
{
"scriptName":"aisProfileShow",
"inputs": [
{
"data": [
{
"type":"networkConstructs"
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "ffa40e1e-4bd8-4686-acb4-92edb787311a"
}
]
}
}
},
"included": [
{
"id": "ffa40e1e-4bd8-4686-acb4-92edb787311a",
"type": "networkElement",
"attributes": {
"ncId": "ffa40e1e-4bd8-4686-acb4-92edb787311a",
"neName": "8700",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample response
{
"jobId": "f3c052e9-3423-4b10-8c9f-505031b252a3",
"status": "COMPLETED",
"input": {
"data": {
"type": "jobs",
"attributes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 758
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"maxConnections": "10",
"scheduleTime": "2017-03-23T14:54:06.000+0000",
"scripts": [
{
"scriptName": "aisProfileShow"
}
]
}
}
},
"output": {
"data": {
"type": "jobResults",
"attributes": {
"scriptResults": [
{
"scriptName": "aisProfileShow",
"status": "COMPLETED",
"commandResults": [
{
"command": "get-ais-profile.json",
"result": {
"result": [
{
"degradeSupport": "disable",
"lspNo": "1",
"profileName": "Default",
"rdi": "enable",
"refreshTimer": 10,
"mode": "single-byte"
},
{
"degradeSupport": "disable",
"lspNo": "2",
"profileName": "MCP_AIS_s01",
"rdi": "enable",
"refreshTimer": 1,
"mode": "single-byte"
},
{
"degradeSupport": "disable",
"lspNo": "0",
"profileName": "MCP_AIS_s05",
"rdi": "enable",
"refreshTimer": 5,
"mode": "single-byte"
},
{
"degradeSupport": "disable",
"lspNo": "6",
"profileName": "MCP_AIS_s10",
"rdi": "enable",
"refreshTimer": 10,
"mode": "single-byte"
},
{
"degradeSupport": "disable",
"lspNo": "0",
"profileName": "MCP_AIS_s15",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 759
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"rdi": "enable",
"refreshTimer": 15,
"mode": "single-byte"
},
{
"degradeSupport": "disable",
"lspNo": "0",
"profileName": "MCP_AIS_s20",
"rdi": "enable",
"refreshTimer": 20,
"mode": "single-byte"
}
],
"parameters": {
"data": [
{
"type": "networkConstructs"
}
]
},
"command": "get-ais-profile.json"
}
}
]
}
]
}
}
}
}
The bfdHwAccelerationGlobalConfig Config Manager script allows a user to apply bfd-h/w acceleration
and bfd global config commissioning configuration to any Ciena CES or 6500 PF device that has a
session established with MCP. The script will execute the RA command to communicate with the device.
The bfdHwAccelerationGlobalConfig script allows the user to execute update, set and unset
bfd-h/w acceleration and bfd global config attributes. The schema provides the user with an input
attribute named "action". This action attribute is enumerable with options: "update", "set", "unset".
• The "update" action allows the user to update bfd global config attribute.
• The "set" action allows the user to set bfd global h/w acceleration attribute.
• The "unset" action allows the user to reset bfd global h/w acceleration attribute.
NOTE: The "scriptName" attribute must contain the value "bfdHwAccelerationGlobalConfig" to execute
the bfd-global-configuration script.
NOTE: "id" (contained twice in the examples below) is the network construct ID given by MCP for the NE,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 760
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdHwAccelerationGlobalConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"globalConfig": "enable"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 761
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdHwAccelerationGlobalConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "set",
"hwAcceleration": "on"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 762
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdHwAccelerationGlobalConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "unset",
"hwAcceleration": null
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 763
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The bfdProfileConfig Config Manager script allows a user to apply bfd-profile commissioning
configuration to any Ciena CES or 6500 PF device that has a session established with MCP. The script will
execute the RA command to communicate with the device.
The bfdProfileConfig script allows the user to execute create and delete profile, set and reset of profile
attributes. The schema provides the user with an input attribute named "action". This action attribute is
enumerable with options: "create", "delete", "update", "unset".
• The "create" action allows the user to create bfd-profile with attributes.
• The "delete" action allows the user to remove bfd-profile.
• The "set" action allows the user to set bfd-profile attributes.
• The "unset" action allows the user to reset bfd-profile attributes.
NOTE: The "scriptName" attribute must contain the value "bfdProfileConfig" to execute the bfd-profile
configuration script.
NOTE: "id" (contained twice in each example below) is the network construct ID given by MCP for the NE,
and "ipAddress" is the IP of the NE.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 764
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "create",
"profileName":"test",
"transmitInterval": "3.3msec",
"receiveInterval": "10msec",
"role": "passive",
"lspGachtype": "7"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 765
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "delete",
"profileName":"test"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 766
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"profileName":"test",
"transmitInterval": "10msec",
"receiveInterval": "10msec",
"role": "active",
"lspGachtype":"7"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 767
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "unset",
"profileName":"test",
"transmitInterval": null,
"receiveInterval": null,
"lspGachtype": null
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 768
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The bfdSessionConfig Config Manager script allows a user to apply bfd-session commissioning
configuration to any Ciena CES or 6500 PF device that has a session established with MCP. The script will
execute the RA command to communicate with the device.
The bfdSessionConfig script allows the user to execute create and delete bfd session attributes. The
schema provides the user with an input attribute named "action". This action attribute is enumerable with
options: "create" and "delete".
NOTE: The "scriptName" attribute must contain the value "bfdSessionConfig" to execute the bfd-session
configuration script.
NOTE: "id" (contained twice in each example below) is the network construct ID given by MCP for the NE,
and "ipAddress" is the IP of the NE.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 769
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdSessionConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "create",
"bfdSessionName": "testing",
"bfdProfileName": "test12",
"neighbourIpAddr": "1.1.1.1"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 770
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "bfdSessionConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "delete",
"bfdSessionName": "testing",
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
The ipInterfacesConfig Config Manager script allows a user to apply ip-interface commissioning
configuration to any Ciena CES or 6500 PF device that has a session established with MCP. The script will
execute the RA command to communicate with the device.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 771
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The ipInterfacesConfig script allows the user to execute create, delete, set, unset interface, add, and
remove ip. The schema provides the user with an input attribute named "action". This action attribute is
enumerable with options: "create", "delete", "update", "unset", "add", "remove".
• The "create" action allows the user to create ip-interface with attributes.
• The "delete" action allows the user to remove ip-interface.
• The "update" action allows the user to set ip-interface attributes.
• The "unset" action allows the user to reset ip-interface attributes.
• The "add" action allows the user to add ip address.
• The "remove" action allows the user to remove ip address.
NOTE: The "scriptName" attribute must contain the value "ipInterfacesShow" to execute the ip-interface
configuration script.
NOTE: "id" (contained twice in each example below) is the network construct ID given by MCP for the NE,
and "ipAddress" is the IP of the NE.
IP-Interface show
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 772
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-03-23T14:54:06.000+0000",
"scripts": [
{
"scriptName":"ipInterfcaeShow",
"inputs": [
{
"data": [
{
"type":"networkConstructs"
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f57de3f9-eb12-40c7-936c-c76339ef79c9"
}
]
}
}
},
"included": [
{
"id": "f57de3f9-eb12-40c7-936c-c76339ef79c9",
"type": "networkElement",
"attributes": {
"ncId": "f57de3f9-eb12-40c7-936c-c76339ef79c9",
"neName": "65sd_2070",
"ipAddress": "10.182.129.173",
"neType": "6500"
}
}
]
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 773
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interfaceVlanId": 0,
"interfaceL2VpnDependency": "false",
"interfaceOspfEnable": "false",
"interfaceType": "loopback",
"interfaceStaticArpDestinationIp": "0.0.0.0",
"interfaceStaticArpEnable": "false",
"interfaceLdpEnable": "false",
"interfaceOperState": "disabled",
"interfaceUnnumbered": "false",
"interfaceCvlanPriority": 0,
"interfaceRole": "none",
"interfaceAdminState": "disabled",
"interfaceSvlanPriority": 0,
"interfaceMask": 0,
"interfaceIfNum": 0,
"interfaceVccvDependency": "false",
"interfaceIpAddr": "0.0.0.0",
"interfaceIsisEnable": "false",
"interfaceTunnelDependency": "false",
"interfaceIfMt": 1500,
"interfaceStaticArpDestinationMac": "0x000000000000",
"interfaceIfIndex": 21,
"interfaceIngressAclProfId": 0,
"interfaceName": "lb0",
"interfacePtpEnable": "false",
"interfaceRowStatus": "active",
"interfaceRsvpEnable": "false",
"interfaceIpForwarding": "off",
"interfaceCvid": 0,
"interfaceMac": "0x000318d01f81"
}
IP-Interface creation
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 774
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfacesConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "create",
"interfaceName":"if0",
"interfaceType":"point-to-point",
"interfaceVlanId": 10,
"interfaceSvlanPriority":3,
"interfaceIfNum":10,
"interfaceIfMtu":2000,
"interfaceIpForwarding": "on",
"interfaceServiceMac": "local-mgmt",
"interfaceIpAddr":"100.0.0.5",
"interfaceMask":31
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "51_0009",
"ipAddress": "10.182.130.100",
"neType": "51xx"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 775
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfacesConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "create",
"interfaceName":"lb0",
"interfaceType":"loopback",
"interfaceIpAddr":"100.0.0.5"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "51_0009",
"ipAddress": "10.182.130.100",
"neType": "51xx"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 776
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
IP-Interface deletion
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfacesConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "delete",
"interfaceName":"if0"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "51_0009",
"ipAddress": "10.182.130.100",
"neType": "51xx"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 777
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfacesConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "add",
"interfaceName":"if0",
"interfaceIpAddr":"2620:11b:d03d:f104:203:18ff:fee4:1aff",
"interfaceMask":64
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "51_0009",
"ipAddress": "10.182.130.100",
"neType": "51xx"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 778
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfacesConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "remove",
"interfaceName":"if0",
"interfaceIpAddr":"2620:11b:d03d:f104:203:18ff:fee4:1aff",
"interfaceMask":64
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "51_0009",
"ipAddress": "10.182.130.100",
"neType": "51xx"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 779
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
IP-Interface update
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfacesConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"interfaceName":"if0",
"interfaceIfMtu":2000,
"interfaceIfNum": 10,
"interfaceIpForwarding": "off",
"interfaceSvlanPriority":4
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "51_0009",
"ipAddress": "10.182.130.100",
"neType": "51xx"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 780
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
IP-Interface unset
Sample request
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "ipInterfacesConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "unset",
"interfaceName":"lb0",
"interfaceIpAddr":null
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "51_0009",
"ipAddress": "10.182.130.100",
"neType": "51xx"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 781
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The mplsLabelRangesConfig script allows the user to execute update and unset mpls label ranges. The
schema provides the user with an input attribute named "action". This action attribute is enumerable with
options: "update", "unset".
• The "update" action allows the user to set mpls-label ranges attributes.
• The "unset" action allows the user to reset mpls-label ranges attributes.
NOTE: The "scriptName" attribute must contain the value "mplsLabelRangesConfig" to execute the mpls-
label-ranges configuration script.
NOTE: "id" (contained twice in each example below) is the network construct ID given by MCP for the NE,
and "ipAddress" is the IP of the NE.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 782
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "mplsLabelRangesConfig ",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"staticAdminTunnelLabelRangeEnd": 29,
"staticAdminTunnelLabelRangeStart": 20,
"staticAdminVcLabelRangeEnd": 5000,
"staticAdminVcLabelRangeStart": 30
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 783
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "mplsLabelRangesConfig ",
"inputs": [
{
"data": [
{
"attributes": {
"action": "unset",
"staticAdminTunnelLabelRangeEnd": null,
"staticAdminTunnelLabelRangeStart": null,
"staticAdminVcLabelRangeEnd": null,
"staticAdminVcLabelRangeStart": null
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a"
}
]
}
}
},
"included": [
{
"id": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"type": "networkElement",
"attributes": {
"ncId": "f0a27af2-40a7-4618-bb9e-35084a87577a",
"neName": "87c_0009",
"ipAddress": "10.182.130.100",
"neType": "8700"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 784
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To retrieve an MPLS tunnel facade product ID, use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/products
Sample response
For a sample response, see Retrieve L2 service intent facade product ID.
In the response, note the “ifd.v1.resourceTypes.MplsTunnelIntentFacade”. Use this ID as the “product Id”
in Create an MPLS tunnel facade.
Specify the productId, which you obtain from the response when you Retrieve an MPLS tunnel facade
product ID.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 785
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "58cb1ddd-564e-4c6a-afb4-bd3a70449e13",
"label": "Tunnel SJ to SF",
"properties": {
"name": "Tunnel-P2”,
"turnUpDateTime": "2017-11-19T11:37:29.739",
"turnDownDateTime": "2017-12-19T11:37:29.739",
"protectionType": "PROTECTED",
"bfdInterval": "100msec",
"aisRefreshTimer": "10sec",
"autoReversionPossible": true,
"waitToRevertDelay": 300,
"reversionTimeUnit": "seconds",
"endPointA": {
"networkElement": {
"name": "MCP-5142-200"
},
"primary": {
"port": "3"
},
"backup": {
"port": "4"
}
},
"endPointZ": {
"networkElement": {
"name": "MCP-5142-201"
},
"primary": {
"port": "3"
},
"backup": {
"port": "4"
}
}
}
}
Parameter Description
Note: The "name" field is optional; if not provided the tunnel name will be
auto-generated.
turnUpDateTime The time when the tunnel has to be deployed. The values can be
empty,“NOW” or any time. If empty, then tunnel is deployed immediately.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 786
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
For 8700/6500-Packet Fabric, the port info should also have shelf, slot as
in the following example:
"primary": {
“shelf” : "{{SHELF_NUM}}",
“slot”: “{{SLOT_NUM}}”,
"port": "{{TUNNEL_AEND_PORT}}"
For 8700/6500-PacketFabric, the port info should also have shelf, slot (as
in the example for the parameter <primary-port, primary port> in this
table.
Note: The other parameter values and roles are the same as in the BP MCP GUI.
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 787
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "58cb239a-2770-466e-af62-ce66cb1b7981",
"label": "Tunnel SJ to SF",
"resourceTypeId": "ifd.resourceTypes.MplsTunnelIntentFacade",
"productId": "58cb1ddd-564e-4c6a-afb4-bd3a70449e13",
"tenantId": "2f0a1fae-05c0-448d-96eb-84b989b2f89a",
"shared": false,
"properties": {
"name": "Tunnel-P2",
"autoReversionPossible": true,
"protectionType": "PROTECTED",
"reversionTimeUnit": "seconds",
"waitToRevertDelay": 300,
"endPointA": {
"networkElement": {
"name": "MCP-5142-200"
},
"primary": {
"port": "3"
},
"backup": {
"port": "4"
}
},
"bfdInterval": "100msec",
"endPointZ": {
"networkElement": {
"name": "MCP-5142-201"
},
"primary": {
"port": "3"
},
"backup": {
"port": "4"
}
},
"aisRefreshTimer": "10sec"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-03-16T23:45:30.424Z",
"createdAt": "2017-03-16T23:45:30.424Z",
"autoClean": false
}
Note the “id” in the response (above) is the “id” of the MPLS Tunnel Facade created (using the API in
Create an MPLS tunnel facade).
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 788
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• retrieve the status of an MPLS tunnel creation (see Retrieve the status of an MPLS tunnel creation),
and
• to delete a tunnel (see Delete a static MPLS-TP LSP tunnel (protected and unprotected) by
provisioning intent)
To retrieve the status of an MPLS tunnel creation, use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{resourceId}
Specify the id, which you obtain from the response when you Create an MPLS tunnel facade.
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 789
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "58cb239a-2770-466e-af62-ce66cb1b7981",
"label": "Tunnel SJ to SF",
"resourceTypeId": "ifd.resourceTypes.MplsTunnelIntentFacade",
"productId": "58cb1ddd-564e-4c6a-afb4-bd3a70449e13",
"tenantId": "2f0a1fae-05c0-448d-96eb-84b989b2f89a",
"shared": false,
"properties": {
"name": "Tunnel-P2",
"autoReversionPossible": true,
"protectionType": "PROTECTED",
"reversionTimeUnit": "seconds",
"waitToRevertDelay": 300,
"endPointA": {
"networkElement": {
"name": "MCP-5142-200"
},
"primary": {
"port": "3"
},
"backup": {
"port": "4"
}
},
"bfdInterval": "100msec",
"endPointZ": {
"networkElement": {
"name": "MCP-5142-201"
},
"primary": {
"port": "3"
},
"backup": {
"port": "4"
}
},
"aisRefreshTimer": "10sec"
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-03-16T23:46:46.847Z",
"createdAt": "2017-03-16T23:45:30.424Z",
"autoClean": false
}
In the response (above) check the “orchState” and “reason” for the result of the provisioning (creation). If
provisioning failed, these fields contain the details (for example, device errors or smoother error).
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 790
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
LAG support
You can use the API to create a tunnel with LAG endpoints as shown below.
{
"productId": "{{TUNNEL_FACADE_PID}}",
"label": "{{TUNNEL_NAME}}",
"properties": {
"name": "{{TUNNEL_NAME}}",
"protectionType": "UNPROTECTED",
"bfdInterval": "",
"aisRefreshTimer": "",
"endPointA": {
"networkElement": {
"name": "3930_0064"
},
"primary": {
"lagName": "AGG-64-22"
}
},
"endPointZ": {
"networkElement": {
"name": "3932_0022"
},
"primary": {
"lagName": "AGG-64-22"
}
}
}
}
Adding constraints
During MPLS tunnel provisioning, you can specify constraints that will apply when calculating valid tunnel
paths. These constraints can specify a list of nodes the tunnel should, or should not traverse. The list can
be a partial or full list of ordered nodes or ports.
• You can specify a list of nodes/ports to be included or excluded from the tunnel path.
• These constraints are in addition to the INNI ports that can be specified at the endpoints.
• You can specify separate constraints for the primary and backup paths.
• You can specify diversity constraints for protected tunnels, to limit the nodes or links they share in
common.
• You can LAG and TIDc objects as part of these constraints using their equipment group ID
• MCP will validate the constraints and return a path if available; otherwise no path will be returned.
The examples below show various constraint configurations which can be included in the provisioning
call.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 791
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"protectionType": "UNPROTECTED",
"endPointA": {},
"endPointZ": {},
"routingConstraints": [
{
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["A", "B"]
},
{
"objectType": "NODE_NAME",
"value": ["C", "D"]
}
]
}
]
Here constraints are provided for only one tunnel in the protected pair.
"protectionType": "PROTECTED",
"endPointA": {},
"endPointZ": {},
"routingConstraints": [
{
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["A", "B"]
},
{
"objectType": "NODE_NAME",
"value": ["C", "D"]
}
]
},
{}
]
Here constraints are provided for both the primary and backup tunnel.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 792
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"protectionType": "PROTECTED",
"endPointA": {},
"endPointZ": {},
"routingConstraints": [
{
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["A", "B"]
},
{
"objectType": "NODE_NAME",
"value": ["C", "D"]
}
]
},
{
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["X"]
}
]
}
]
Port-based constraints
In addition to constraints that specify the inclusion or exclusion of individual nodes, you can configure
constraints for the inclusion or exclusion fo specific ports.
You can specify routing constraint the inclusin or exclusion of Ethernet LLDP links by specifying the
Ethernet LLDP link’s endpoint ports for inclusion or exlcusion.
objectType: END_POINT locations: a list of following location objects. Among locations, they are OR
relationship:
• nodeName
• Other attributes:
◦ port = 4 (6x)
◦ slot = 3, port = 4 (8700)
◦ shelf = 1, slot = 3, port = 4 (6200)
Note: due to the list format limitation, only one set of the port value can be supported. There can currently
be no OR relationship to specify multiple ports.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 793
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"protectionType": "UNPROTECTED",
"endPointA": {},
"endPointZ": {},
"routingConstraints": [
{
"includeRouteObjects": [
{
"objectType": "END_POINT",
"locations": [
{
"nodeName": "MCP-5142-200",
"port": "4"
}
]
},
{
"objectType": "END_POINT",
"locations": [
{
"nodeName": "MCP-8700-206",
"slot": "3",
"port": "5"
}
]
},
{
"objectType": "END_POINT",
"locations": [
{
"nodeName": "SJ_6200_171",
"shelf": "1",
"slot": "3",
"port": "5"
}
]
}
]
}
]
Similar to a physical port-based constraint, you can specify a LAG port in the constraint. You can
configure the inclusin or inclusion of LAG links by specifying the LAG link’s endpoint LAG port.
objectType: LAG_END_POINT
• nodeName
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 794
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"protectionType": "UNPROTECTED",
"endPointA": {},
"endPointZ": {},
"routingConstraints": [
{
"includeRouteObjects": [
{
"objectType": "LAG_END_POINT",
"locations": [
{
"nodeName": "MCP-5142-200",
"lagName": "MyAggName1"
}
]
},
{
"objectType": "LAG_END_POINT",
"locations": [
{
"nodeName": "6500-200",
"shelf": "31",
"eqptGrp": "8",
"lagName": "MyAggName1"
}
]
}
]
}
]
Similarly, routing constraint for tunnels using IP links can be implemented by specifying the IP link’s
endpoint IP interface name or IP interface address. These constraints take the following form:
• nodeName
• When objectType is IP_INTERFACE_NAME, interfaceName = ipCtrl_3_6
• When objectType is IP_INTERFACE_ADDR, interfaceAddress = 9.4.1.1
◦ For 6200 interoperation, the IP interface address on the 6200 will be a MAC address.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 795
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"protectionType": "UNPROTECTED",
"endPointA": {},
"endPointZ": {},
"routingConstraints": [
{
"includeRouteObjects": [
{
"objectType": "IP_INTERFACE_NAME",
"locations": [
{
"nodeName": "MCP-5142-200",
"interfaceName": "ipCtrl_3"
}
]
}
]
}
]
Node and link diversity constraints only apply to the primary and backup path of a protected tunnel.
• Diversity Level: Indicate whether to use link or node diversity using the API enums NODE_DIVERSE or
LINK_DEVERSE. if not specified, the default is LINK_DEVERSE.
• Diversity Selection Criteria: Indicate whether the diversity if mandatory or best effort using the API
enums MANDATORY or BEST_EFFORT. If not specified, the default is MANDATORY.
By default, without specifying any diversity constraints, a protected tunnel will be configured with link
diversity (LINK_DEVERSE) and mandatory (MANDATORY) enabled.
Diversity constraints can be applied to new tunnel creation, and also when adding a backup path to an
existing tunnel.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 796
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{TUNNEL_FACADE_PID}}",
"label": "{{TUNNEL_NAME}}",
"properties": {
"turnUpDateTime": "2117-11-19T11:37:29.739",
"turnDownDateTime": "2117-12-19T11:37:29.739",
"name": "{{TUNNEL_NAME}}",
"protectionType": "PROTECTED",
"bfdInterval": "10msec",
"aisRefreshTimer": "10sec",
"endPointA": {
"networkElement": {
"name": "MCP-5142-200"
}
},
"endPointZ": {
"networkElement": {
"name": "MCP-5142-201"
}
},
"globalDiversity": {
"diversityLevel": "NODE_DIVERSE",
"selectionCriteria": "BEST_EFFORT"
}
}
}
{
"productId": "{{TUNNEL_FACADE_PID}}",
"label": "{{TUNNEL_NAME}}",
"properties": {
"turnUpDateTime": "2117-11-19T11:37:29.739",
"turnDownDateTime": "2117-12-19T11:37:29.739",
"name": "{{TUNNEL_NAME}}",
"protectionType": "PROTECTED",
"bfdInterval": "10msec",
"aisRefreshTimer": "10sec",
"endPointA": {
"networkElement": {
"name": "MCP-5142-200"
}
},
"endPointZ": {
"networkElement": {
"name": "MCP-5142-201"
}
},
"globalDiversity": {
"diversityLevel": "LINK_DIVERSE",
"selectionCriteria": "BEST_EFFORT"
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 797
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
1. Best effort cleanup of configuration during undeploy/delete (failure in deletion of 1 NE or config will
not prevent deletion of config on the rest of the NEs).
2. If a service deployment has failed (it is in INCOMPLETE_DEPLOYMENT state), then trying delete will
do the following:
◦ Best effort cleanup of all devices will be attempted, including partial configs on NEs for which
deployment failed.
◦ All resources (facade, intent, expectations) will be deleted even if there are failures during
undeploy.
3. If service was deployed properly, attempting delete will do the following:
◦ Best effort cleanup of all devices will be attempted.
◦ If delete fails on a device then the resources (façade, intent, expectations) will NOT be deleted. The
user will still see a Service in “INCOMPLETE_UNDEPLOYMENT state.
Sample request
DELETE {{MCP_SERVER}}/bpocore/market/api/v1/resources/{resourceId}
Specify the resourceId (which you obtain from the request Create static MPLS-TP tunnel.
To retrieve all tunnels, includng dynamic tunnels, use the Services Inventory (FREs) API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 798
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note: This call will also return any tunnel fragments that cannot be matched to a full, end-to-end tunnel.
Such tunnel fragments will start and end on the same endpoint.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
Ading particular filters after the "?" will restrict the returned list to tunnels, or a subset of tunnels. For
example:
GET {{MCP_SERVER}}/nsi/api/fres?layerRate=MPLS&type=link&include=tpes
GET {{MCP_SERVER}}/nsi/api/fres?layerRate=MPLS_PROTECTION&type=link&include=tpes
GET {{BP_SERVER}}/nsi/api//v4/fres?serviceClass=Tunnel&directionality=unidirectional
In the returned list of TPEs, any tunnel for which the "signaled" attribute is set to "true" is a dynamic MPLS
tunnel. An example is shown below.
Sample response
{
"id": "-5998416297783219381",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"derivedAttributes":
{ "intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt" }
,
"displayData":
{ "intentLifeCyclePhaseString": "Discovered" }
,
"resourceState": "discovered",
"bookingData":
{ "bandwidthLockout": false }
,
"userLabel": "",
"mgmtName": "VidyaOptDy8x",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 799
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
],
"adminState": "In Service",
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"0.01"
],
"pattern":
{ "type": "POOL", "format": "number" }
,
"unit": "mbps"
}
}
],
"active": true,
"additionalAttributes":
{ "BwAutoSizeIntervalMinutes": "5", "protectionRole": "All",
"BwUsedKbps": "0", "isActual": "true", "resiliency": "Normal", "BwMode": "cac",
"BwAutoSizeFailureAction": "alarm", "coRouted": "true", "signaled": "true",
"BwIncrKbps": "1", "lspName": "VidyaOptDy8x", "BwMinKbps": "10", "subType": "TP",
"BwAutoSize": "disable", "BwMaxKbps": "1000", "BwKbps": "10" }
,
"reliability": "manual"
},
"relationships": {
"endPoints": {
"data": [
{ "type": "endPoints", "id": "-5998416297783219381:1" }
,
{ "type": "endPoints", "id": "-5998416297783219381:2" }
]
},
"decomposedFres": {
"data": [
{ "type": "fres", "id": "-6609684594671338200" }
]
}
}
}
To retrieve information regarding a specific dynamic MPLS tunnel, use the same Services Inventory
(FREs) API.
Sample request
GET {{BP_SERVER}}/nsi/api//v4/fres/<FRE_ID>
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 800
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"data": {
"id": "171631175079455910",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "discovered",
"bookingData": {
"bandwidthLockout": false
},
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "Tunnel",
"userLabel": "",
"mgmtName": "dcrWconstrs1",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"adminState": "In Service",
"mplsPackage": {
"lspName": "dcrWconstrs1",
"coRouted": true,
"signaled": true,
"subType": "TP",
"direction": "bidirectional",
"tunnelType": "rsvp-ingress-corout",
"ctrlPlaneId": "3.3.3.3_4.4.4.4_dcrWconstrs1",
"srcIp": "3.3.3.3",
"destIp": "4.4.4.4",
"nextHopIp": "13.101.2.1",
"RxTag": "32773",
"TxTag": "32805",
"tunnelRole": "headEnd",
"bw": {
"unit": "kbps",
"used": "0",
"minimum": "10",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 801
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"maximum": "100",
"increment": "1",
"requested": "10",
"operational": "10",
"autoSize": "enable",
"autoSizingMode": "cac",
"autoSizeFailureAction": "alarm",
"autoSizeIntervalMinutes": "5",
"autoSizeLastResizeState": "success"
},
"autoBackup": "off",
"diversityResource": "srlg",
"diversityLevel": "strict",
"bfd": {
"configured": true,
"profileName": "Active-LSP",
"adminState": "up",
"operationalState": "up",
"role": "active",
"transmitInterval": "100",
"receiveInterval": "100"
},
"explicitTunnel": {
"pathName": "MCP_RSVP_TE_PATH_3",
"hops": [
{
"hopAddress": "13.101.2.1",
"hopType": "loose"
},
{
"hopAddress": "24.101.7.2",
"hopType": "loose"
},
{
"hopAddress": "12.101.4.2",
"hopType": "strict"
}
]
},
"fixedTtl": "255",
"setupPriority": "0",
"holdPriority": "0",
"optimization": "off"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 802
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Blue Planet MCP Supports the provisioning of dynamic MPLS tunnels with the following devices acting as
Label Edge Routers (LERs) or Label Switched Routers (LSRs):
For information about MCP’s support for LAG endpoints and configuring constraints, see <<create-static-
mpls-tp-tunnel, Create static MPLS-TP tunnel>.
Begin by retrieving an MPLS tunnel facade product ID, using the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/products
Sample response
For a sample response, see Retrieve L2 service intent facade product ID.
In the response, note the “ifd.v1.resourceTypes.MplsTunnelIntentFacade”. Use this ID as the “product Id”
in Create an MPLS tunnel facade.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 803
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Specify the productId, which you obtain from the response when you retrieved the MPLS tunnel facade
product ID.
The request is similar to that used to create a static tunnel, but supports a different set of parameters.
Note the following parameters used in the sample request below:
Bandwidth parameters
When you create a dynamic tunnel, you do not configure a single, specific bandwidth. Instead, the NE
creates the tunnel with the minimum bandwidth value and will increment that bandwidth as required by
the services that are placed on it, up to the maximum bandwidth value. The parameters described
below configure this dynamic bandwidth.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 804
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Optimization parameters
For details and example of usage, see Create a dynamic MPLS tunnel with optimization enabled.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 805
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
For information about these parameters and an example of usage, see Creating a dynamic tunnel with
routing constraints.
Note 1: the above parameters which have the prefix "dynamic" are supported only for dynamic tunnels)
Note 2: Bidirectional Forwarding Detection (BFD) must be enabled for all dynamic tunnels manage by
MCP. An attempt to create a tunnel with BFD disbled will be rejected.
POST : {{BP_SERVER}}/bpocore/market/api/v1/resources
Sample rquest:
{
"productId": "{{TUNNEL_FACADE_PID}}",
"label": "{{TUNNEL_NAME}}",
"properties": {
"turnDownDateTime": "2117-12-19T11:37:29.739",
"name": "{{TUNNEL_NAME}}",
"protectionType": "UNPROTECTED",
"signaledTunnel": true,
"bfdInterval": "100msec",
"bandwidth": {
"assignedBandwidth": 11,
"assignedBandwidthUnit": "mbps",
"dynamicTunnelMinBandwidth": 2,
"dynamicTunnelMinBandwidthUnit": "mbps",
"dynamicTunnelBandwidthIncrements": 15,
"dynamicTunnelBandwidthIncrementUnit": "kbps",
"dynamicTunnelBandwidthMode" : "cac",
"dynamicTunnelBwAutoSize" : "enable",
"dynamicTunnelBwAutoSizeInterval" : 5,
"dynamicTunnelBwAutoSizeIntervalUnits": "minutes",
"dynamicTunnelBwAutoSizeFailureAction": "alarm"
},
"endPointA": {
"networkElement": {
"name": "3930_SJ_20"
}
},
"endPointZ": {
"networkElement": {
"name": "3930_SJ_21"
}
}
}
}
Sample response:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 806
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5a14b529-ae5e-4c45-87c7-fc7aa07d4df4",
"label": "DemoProtected14-55",
"resourceTypeId": "ifd.v3.resourceTypes.MplsTunnelIntentFacade",
"productId": "5a149209-f376-4a97-abc0-6d1a2ac40a05",
"tenantId": "8350352e-4b7f-45f9-b8e7-a471dac2e618",
"shared": false,
"properties": {
"name": "DemoProtected14-55",
"protectionType": "UNPROTECTED",
"bandwidth": {
"assignedBandwidth": 11,
"dynamicTunnelBandwidthMode": "cac",
"dynamicTunnelMinBandwidth": 2,
"dynamicTunnelBwAutoSize": "enable",
"dynamicTunnelBandwidthIncrements": 15,
"dynamicTunnelBandwidthIncrementUnit": "kbps",
"dynamicTunnelMinBandwidthUnit": "mbps",
"assignedBandwidthUnit": "mbps",
"dynamicTunnelBwAutoSizeFailureAction": "alarm",
"dynamicTunnelBwAutoSizeInterval": 5,
"dynamicTunnelBwAutoSizeIntervalUnits": "minutes"
},
"endPointA": {
"networkElement": {
"name": "3930_SJ_20"
}
},
"bfdInterval": "100msec",
"signaledTunnel": true,
"turnDownDateTime": "2117-12-19T11:37:29.739",
"endPointZ": {
"networkElement": {
"name": "3930_SJ_21"
}
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-11-21T23:22:18.235Z",
"createdAt": "2017-11-21T23:22:18.235Z",
"autoClean": false
}
Dynamic tunnel paths can be optimized after the tunnel has been created to make use of a new or
modified topology (whether new links, new NEs, or increased capacity). Tunnel re-optimization can be
triggered either manually, or automatically by the NE Control Plane.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 807
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To enable optimization for a tunnel, configure the following parameters during tunnel provisioning.
PARAMETER DESCRIPTION
The API call for provisioning a tunnel is described above. An example of an API call that includes the
optimization parameters is shown below.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 808
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"aliasNames": [
{
"aliasType": "MANAGEMENT_NAME",
"name": "MyDynTn08"
}
],
"label": "myDynTn08",
"turnUpDateTime": "2117-11-19T11:37:29.739",
"layerRate": "MPLS_PROTECTION",
"protectionType": "UNPROTECTED",
"signaledTunnel": "true",
"bfdInterval": "100msec",
"bandwidth": {
"bookingFactor": 1,
"bandwidthLockout": false,
"assignedBandwidth": 10,
"assignedBandwidthUnit": "mbps",
"dynamicTunnelMinBandwidth": 1,
"dynamicTunnelMinBandwidthUnit": "mbps",
"dynamicTunnelBandwidthIncrements": 10,
"dynamicTunnelBandwidthIncrementUnit": "kbps",
"dynamicTunnelBandwidthMode" : "cac",
"dynamicTunnelBwAutoSize" : "enable",
"dynamicTunnelBwAutoSizeInterval" : 5,
"dynamicTunnelBwAutoSizeIntervalUnits": "minutes",
"dynamicTunnelBwAutoSizeFailureAction": "alarm"
},
"dynamicTunnelPathConstraints":{
"explicitTunnelPath": [
{
"hopAddress": "7.6.1.2",
"hopType": "MANDATORY"
},
{
"hopAddress": "7.7.2.1",
"hopType": "BEST_EFFORT"
}
],
"includeAllResourcesColorGroup": "colorGrpGreen",
"includeAnyResourcesColorGroup": "colorGrpRed",
"excludeAnyResourcesColorGroup": "colorGrpY"
},
"endPoints": [
{
"networkElement": {
"name": "8700-65"
}
},
{
"networkElement": {
"name": "MCP-8700-206"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 809
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The MCP REST API supports several types of constraints that can shape the set of valid paths the Control
Plane can consider for the tunnel. These constraints can be defined when provisioning the tunnel.
You can specify a set of rsvp-te paths (as IP interfaces) that must be included in any tunnel path. This
constraint can be qualified as either mandatory or best-effort.
These paths can be a partial set of IPs or a full set of IPs and can be pre-created on the NE as part of
commissioning.
Traffic Engineering constraints You can also specify Traffic Engineering parameters to shape valid tunnel
paths, in the form of an affinity (color-group) constraint. Tunnel paths must then include, or exclude, links
that support certain color groups. These color groups must be predefined on all nodes within the path.
When creating a dynamic tunnel, three types of Traffic Engineering constraint can be specified:
• include-all: constrains the path to links that contain all colors specified in the color group
• exclude-any: constrains the path to links that do not contain the colors specified in color group
• include-any: constrains the path to links that contains at a minimum one of color specified in color
group
Constraint Details:
• The constraints can be specified for primary tunnel only, for backup tunnel "Diversity" options can be
used.
• The affinity (colors and color-groups) have to be pre-created and applied to the IP links (IP interface
level) as part of comissioning. The color-groups and colors have to be created uniformly across all
NEs. It is not sufficient to simply use the same grop names; the color group’s bitmask and each color’s
bit id must also match.
• During the tunnel creation, you must specifiy these color groups by their correct names.
The sample below shows part of an API request that includes both explicity IP routing and affinity
constraints.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 810
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"aliasNames": [
{
"aliasType": "MANAGEMENT_NAME",
"name": "MyDynTn08"
}
],
"label": "myDynTn08",
"turnUpDateTime": "2117-11-19T11:37:29.739",
"layerRate": "MPLS_PROTECTION",
"protectionType": "UNPROTECTED",
"signaledTunnel": "true",
"bfdInterval": "100msec",
"bandwidth": {
"bookingFactor": 1,
"bandwidthLockout": false,
"assignedBandwidth": 10,
"assignedBandwidthUnit": "mbps",
"dynamicTunnelMinBandwidth": 1,
"dynamicTunnelMinBandwidthUnit": "mbps",
"dynamicTunnelBandwidthIncrements": 10,
"dynamicTunnelBandwidthIncrementUnit": "kbps",
"dynamicTunnelBandwidthMode" : "cac",
"dynamicTunnelBwAutoSize" : "enable",
"dynamicTunnelBwAutoSizeInterval" : 5,
"dynamicTunnelBwAutoSizeIntervalUnits": "minutes",
"dynamicTunnelBwAutoSizeFailureAction": "alarm"
},
"dynamicTunnelPathConstraints":{
"explicitTunnelPath": [
{
"hopAddress": "7.6.1.2",
"hopType": "MANDATORY"
},
{
"hopAddress": "7.7.2.1",
"hopType": "BEST_EFFORT"
}
],
"includeAllResourcesColorGroup": "colorGrpGreen",
"includeAnyResourcesColorGroup": "colorGrpRed",
"excludeAnyResourcesColorGroup": "colorGrpY"
},
"endPoints": [
{
"networkElement": {
"name": "8700-65"
}
},
{
"networkElement": {
"name": "MCP-8700-206"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 811
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
• Bandwidth properties
• auto-size properties:
• auto size Type ( CAC vs utilization is not editable )
• affinity constraints
• administrative state (enable/disable)
• setup/hold priorities
Note: Some properties cannot be modified unless the tunnel has first been disabled.
Edit Bandwidth
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 812
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/bandwidth/assignedBandwidth",
"value": 6
},
{
"op": "add",
"path": "/properties/bandwidth/assignedBandwidthUnit",
"value": "mbps"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelMinBandwidth",
"value": 6
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelMinBandwidthUnit",
"value": "kbps"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBandwidthIncrements",
"value": 6
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBandwidthIncrementUnit",
"value": "kbps"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBwAutoSize",
"value": "enable"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBwAutoSizeInterval",
"value": 6
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBwAutoSizeFailureAction",
"value": "mbb"
}
]
}
}
Parse the Operation OID, and use that value to retrieve the operation result. In the above sample, the OID
is: 5b28973e-71bf-4f3e-ac3c-863dbf1b04e5.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 813
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5b28973e-71bf-4f3e-ac3c-863dbf1b04e5",
"resourceId": "5b270243-4930-4815-8767-0b20f74c0d7f",
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/bandwidth/assignedBandwidth",
"value": 6
},
{
"op": "add",
"path": "/properties/bandwidth/assignedBandwidthUnit",
"value": "mbps"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelMinBandwidth",
"value": 6
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelMinBandwidthUnit",
"value": "kbps"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBandwidthIncrements",
"value": 6
},
{
"op": "add",
"path":
"/properties/bandwidth/dynamicTunnelBandwidthIncrementUnit",
"value": "kbps"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBwAutoSize",
"value": "enable"
},
{
"op": "add",
"path": "/properties/bandwidth/dynamicTunnelBwAutoSizeInterval",
"value": 6
},
{
"op": "add",
"path":
"/properties/bandwidth/dynamicTunnelBwAutoSizeFailureAction",
"value": "mbb"
}
]
},
"outputs": {},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 814
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-06-19T05:40:14.434Z",
"updatedAt": "2018-06-19T05:40:14.434Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
To see whether the operation has succeeded or failed, use the OID to retrieve the operation result:
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations/{{OID}}
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/dynamicMplsTunnelAdditionalProperties/setupPriority",
"value": 5
},
{
"op": "add",
"path": "/properties/dynamicMplsTunnelAdditionalProperties/holdPriority",
"value": 5
},
{
"op": "add",
"path": "/properties/dynamicMplsTunnelAdditionalProperties/softPreemption",
"value": "disable"
}
]
}
}
Parse the Operation ID (OID) and use this value to retrieve the operation result. In the sample above, the
OID is: 5b289786-01a6-49d6-9b4d-c75486888d84.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 815
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5b289786-01a6-49d6-9b4d-c75486888d84",
"resourceId": "5b270243-4930-4815-8767-0b20f74c0d7f",
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path":
"/properties/dynamicMplsTunnelAdditionalProperties/setupPriority",
"value": 5
},
{
"op": "add",
"path":
"/properties/dynamicMplsTunnelAdditionalProperties/holdPriority",
"value": 5
},
{
"op": "add",
"path":
"/properties/dynamicMplsTunnelAdditionalProperties/softPreemption",
"value": "disable"
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-06-19T05:41:26.945Z",
"updatedAt": "2018-06-19T05:41:26.945Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
To see whether the operation has succeeded or failed, use the OID to retrieve the operation result:
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations/{{OID}}
Edit Affinity
Use the Market API to edit a tunnel’s Affinity setting. Two samples using different affinity settings are
shown below.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 816
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/dynamicTunnelPathConstraints",
"value": {
"includeAllResourcesColorGroup": "cg-indigo",
"includeAnyResourcesColorGroup": "cg-indigo",
"excludeAnyResourcesColorGroup": "cg-red"
}
}
]
}
}
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path":
"/properties/dynamicTunnelPathConstraints/includeAllResourcesColorGroup",
"value": "cg-green"
},
{
"op": "add",
"path":
"/properties/dynamicTunnelPathConstraints/includeAnyResourcesColorGroup",
"value": "cg-green"
},
{
"op": "add",
"path":
"/properties/dynamicTunnelPathConstraints/excludeAnyResourcesColorGroup",
"value": "cg-red"
}
]
}
}
Parse the Operation OID, and use that value to retrieve the operation result. In the above sample, the OID
is: 5b2896c9-6d3a-461a-83e8-4226d6aecb22
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 817
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5b2896c9-6d3a-461a-83e8-4226d6aecb22",
"resourceId": "5b270243-4930-4815-8767-0b20f74c0d7f",
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/dynamicTunnelPathConstraints",
"value": {
"includeAllResourcesColorGroup": "cg-indigo",
"includeAnyResourcesColorGroup": "cg-indigo",
"excludeAnyResourcesColorGroup": "cg-red"
}
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-06-19T05:38:17.558Z",
"updatedAt": "2018-06-19T05:38:17.558Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
To see whether the operation has succeeded or failed, use the OID to retrieve the operation result:
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations/{{OID}}
Edit Optimization
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 818
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/dynamicTunnelReOptimizationInterval",
"value": 6
},
{
"op": "add",
"path": "/properties/dynamicTunnelReOptimization",
"value": "PERIODIC"
}
]
}
}
Parse the Operation OID, and use that value to retrieve the operation result. In the above sample, the OID
is: 5b28999c-8202-4e3d-82ac-462a10a1c81a
{
"id": "5b28999c-8202-4e3d-82ac-462a10a1c81a",
"resourceId": "5b270243-4930-4815-8767-0b20f74c0d7f",
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/dynamicTunnelReOptimizationInterval",
"value": 6
},
{
"op": "add",
"path": "/properties/dynamicTunnelReOptimization",
"value": "PERIODIC"
}
]
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-06-19T05:50:20.997Z",
"updatedAt": "2018-06-19T05:50:20.997Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
To see whether the operation has succeeded or failed, use the OID to retrieve the operation result:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 819
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations/{{OID}}
AdminState Enable/Disable
Editing a tunnel’s Administrative State (AdminState) uses the resource MplsOperationContainer. So, first
obtain an MplsOperationContainer resource ID.
GET
{{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v5.resourceTypes.MplsOperationCon
tainer
Sample request
{
"items": [
{
"id": "5b326569-cf08-48ee-88cb-3ce419fb4fa1",
"label": "Resource for ifd.v5.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v5.resourceTypes.MplsOperationContainer",
"productId": "5b32654e-82c9-48aa-9685-3ba76353dddd",
"tenantId": "024755a8-4872-4db4-b29f-7b210564ce66",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-06-26T16:10:17.970Z",
"createdAt": "2018-06-26T16:10:17.705Z",
"autoClean": false
},
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 820
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modifyAdminState",
"inputs": {
"freId": "109^2E109^2E109^2E109_108^2E108^2E108^2E108_Demo13-5_TE",
"operation": "enable"
}
}
POST Result
Parse the Operation OID, and use that value to retrieve the operation result. In the above sample, the OID
is: 5b2897ef-e637-4f21-aa52-118c3ac05a5d.
{
"id": "5b2897ef-e637-4f21-aa52-118c3ac05a5d",
"resourceId": "5b1f09fc-89a7-4265-8b7b-1ae7488b47ef",
"interface": "modifyAdminState",
"inputs": {
"freId": "109^2E109^2E109^2E109_108^2E108^2E108^2E108_Demo13-5_TE",
"operation": "enable"
},
"outputs": {},
"state": "requested",
"reason": "",
"progress": [],
"providerData": {},
"createdAt": "2018-06-19T05:43:11.488Z",
"updatedAt": "2018-06-19T05:43:11.488Z",
"resourceStateConstraints": {},
"executionGroup": "lifecycle"
}
To see whether the operation has succeeded or failed, use the OID to retrieve the operation result:
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{FACADE_ID}}/operations/{{OID}}
1. MCP will perform a best-effort cleanup of the tunnel configuration during undeploy/delete. A failure to
delete the tunnel configuration on one NE will not prevent deletion of the same tunnel configuration on
the rest of the NEs).
2. If a tunnel deployment has failed (it is in an INCOMPLETE_DEPLOYMENT state), then trying delete the
tunnel will do the following:
◦ A best-effort cleanup of all devices will be attempted, including partial configurations on NEs for
which deployment failed.
◦ All resources (facade, intent, expectations) will be deleted even if there are failures during
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 821
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
undeploy.
3. If the tunnel was deployed properly, attempting delete will do the following:
◦ A best-effort cleanup of all devices will be attempted.
◦ If the deletion fails on a device then the resources (façade, intent, expectations) will NOT be
deleted. You will still see a tunnel in an “INCOMPLETE_UNDEPLOYMENT state.
GET
{{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v5.resourceTypes.ManagedServices
Container
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 822
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "5b4e39e2-f5b8-4ba9-b16e-e9ea1ce122b2",
"label": "Resource for ifd.v5.resourceTypes.ManagedServicesContainer",
"resourceTypeId": "ifd.v5.resourceTypes.ManagedServicesContainer",
"productId": "5b4e39d3-0dd2-40c8-9eaf-a516f61c29e4",
"tenantId": "729b91fd-a571-4538-85ad-4980a868647b",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-07-17T18:48:02.264Z",
"createdAt": "2018-07-17T18:48:02.059Z",
"autoClean": false
},
{
"id": "5b4e39e3-1109-4ba2-ac70-81c144d42a07",
"label": "Resource for ifd.v5.resourceTypes.ManagedServicesContainer",
"resourceTypeId": "ifd.v5.resourceTypes.ManagedServicesContainer",
"productId": "5b4e39d3-0dd2-40c8-9eaf-a516f61c29e4",
"tenantId": "729b91fd-a571-4538-85ad-4980a868647b",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-07-17T18:48:03.647Z",
"createdAt": "2018-07-17T18:48:03.250Z",
"autoClean": false
},
Multiple instances of the ManagedServicesContainer resources will be returned. For the Delete operation,
select one resource instance; for example, the first one, as the RID for the next step: 5b4e39e2-f5b8-4ba9-
b16e-e9ea1ce122b2
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations
Sample body:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 823
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "manageService",
"inputs": {
"service": {
"managedOperation": "Delete",
"freId": "-4964036073725228033"
}
}
}
Retain the operation ID, since the custom operation is an ASYNC operation. In the example above, the
operation ID (OID) is: 589928bc-180a-45a9-aa57-58d9e5ea317a.
To check whether the operation was successful, use the OID to retrieve the operation result with a call
resembling the following:
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations/{{OID}}
The response will indicate whether the Delete operation was successful, or failed.
When successful, the tunnel is deleted from the supporting NEs and from the MCP database.
Unidirectional tunnels
The Blue Planet MCP REST API supports the discovery, inventory, provisioning, and management of
dynamic unidirectional MPLS TE tunnels.
Much like the dynamic co-routed tunnels that are also supported by MCP, dynamic TE tunnels are directly
provisioned only on the two tunnel endpoints. The tunnel routing between those endpoints is then
configured by the node-driven Control Plane and updats dynamically over time; this route is maintained as
a list of IP links that constitute the current tunnel path. The sizing and bandwidth properties and routing
constraints that are already used with dynamic co-routed tunnels also apply to unidirectional tunnels.
Protection for unidirectional tunnels is provided by Fast Rerouting (FRR) to a Facilty Bypass (FB) tunnel,
which provides an alternative path to replace a single failed link. Each unidirectional tunnel should have
access to an FRR profile, a list that is maintained on participating nodes of the protecting FB tunnels that
can be used in the place of failed links along the tunnel path.
FB tunnels are provsioned individually, and function themselves much like the unidirectional tunnels they
support; howver they are not intended to carry services normally. They serve exclusively as protective
entities for the unidirectional tunnels they support. However an FB tunnel is cleary identified during
provisioning as a protecting entity, and unlike conventional unidirectional tunnels they do not support
bandwidth properties or auto-sizing. Also, FB tunnels are not themselves protected.
Note: FB tunnels can also be automatically provisioned by nodes when required by unidirectional tunnels
that encounter a link failure.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 824
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Use the NSI API to retreive the tunnel inventory. In the API call, include the following filters:
• serviceClass=Tunnel
• directionality=unidirectional
GET {{BP_SERVER}}/nsi/api//v4/fres?serviceClass=Tunnel&directionality=unidirectional
The response to this call will include all unidirectional TE and Faciilty Bypass (FB) tunnels.
Sample response:
{
"meta": {
"total": 68
},
"links": {
"next": "https://onc-bwen-
01.ciena.com/nsi/api/v4/fres?serviceClass=Tunnel&directionality=unidirectional&offs
et=30&limit=30",
"current": "https://onc-bwen-
01.ciena.com/nsi/api/v4/fres?serviceClass=Tunnel&directionality=unidirectional"
},
"data": [
{
"id": "107^2E107^2E107^2E107_108^2E108^2E108^2E108_APr11-50_TE",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "e9410082-4a91-33ae-83a7-
d50b51fd7517",
"nodalId":
"107^2E107^2E107^2E107_108^2E108^2E108^2E108_APr11-50_TE"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "discovered",
"bookingData": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 825
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"bandwidthLockout": false
},
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "Tunnel",
"userLabel": "APr11-50",
"mgmtName": "APr11-50",
"layerRate": "MPLS",
"networkRole": "FREAP",
"directionality": "unidirectional",
"topologySources": [
"discovered",
"stitched"
],
"adminState": "In Service",
"signalContentType": "LSP",
"mplsPackage": {
"lspName": "APr11-50",
"coRouted": false,
"signaled": true,
"subType": "TE",
"direction": "unidirectional",
"ctrlPlaneId": "107.107.107.107_108.108.108.108_APr11-50",
"srcIp": "107.107.107.107",
"destIp": "108.108.108.108",
"bw": {
"unit": "kbps",
"used": "0",
"minimum": "1000",
"maximum": "3000",
"increment": "15",
"requested": "1000",
"operational": "1000",
"autoSize": "enable",
"autoSizingMode": "cac",
"autoSizeFailureAction": "alarm",
"autoSizeIntervalMinutes": "5"
},
"explicitRouteObject": [
"100.100.2.1",
"100.100.2.2"
],
"facilityBypass": false,
"frr": {
"frrProtected": true
}
},
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 826
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"capacity": 1,
"capacitySize": {
"size": [
"3.0"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"active": true,
"additionalAttributes": {
"protectionRole": "primary",
"signalingState": "up",
"isActual": "true"
},
"domainTypes": [
"FRR"
],
"resilienceLevel": "protected"
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "107^2E107^2E107^2E107_108^2E108^2E108^2E108_APr11-
50_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id":
"107^2E107^2E107^2E107_108^2E108^2E108^2E108_APr11-50_TE::EP0"
},
{
"type": "endPoints",
"id":
"107^2E107^2E107^2E107_108^2E108^2E108^2E108_APr11-50_TE::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "e9410082-4a91-33ae-83a7-d50b51fd7517"
}
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-5115278723235723991"
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 827
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
}
}
},
{
"id": "107^2E107^2E107^2E107_108^2E108^2E108^2E108_Auto_facility-6-
2001_TE",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "e9410082-4a91-33ae-83a7-
d50b51fd7517",
"nodalId":
"107^2E107^2E107^2E107_108^2E108^2E108^2E108_Auto_facility-6-2001_TE"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "discovered",
"bookingData": {
"bandwidthLockout": false
},
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "Tunnel",
"userLabel": "Auto_facility-6-2001",
"mgmtName": "Auto_facility-6-2001",
"layerRate": "MPLS",
"networkRole": "FREAP",
"directionality": "unidirectional",
"topologySources": [
"discovered",
"stitched"
],
"adminState": "In Service",
"signalContentType": "LSP",
"mplsPackage": {
"lspName": "Auto_facility-6-2001",
"coRouted": false,
"signaled": true,
"subType": "TE",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 828
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"direction": "unidirectional",
"ctrlPlaneId": "107.107.107.107_108.108.108.108_Auto_facility-
6-2001",
"srcIp": "107.107.107.107",
"destIp": "108.108.108.108",
"bw": {
"unit": "kbps",
"used": "0",
"minimum": "0",
"maximum": "0",
"increment": "0",
"requested": "0",
"operational": "0",
"autoSize": "disable",
"autoSizingMode": "cac",
"autoSizeFailureAction": "alarm",
"autoSizeIntervalMinutes": "0"
},
"explicitRouteObject": [
"100.100.3.2"
],
"facilityBypass": true
},
You can also use the REST API to retrieve the list of FRR tunnels that are being protected by a given FB
tunnel.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
With this call you can provide the FRE ID of an FB tunnel, and the call will return a list of FRR tunnels
supported by that FB tunnel. This requires two steps:
{
"productId": "{{PID}}",
"label": "getFbProtectedTunnels956",
"properties": {
"operationName": "getFbProtectedTunnels",
"objectId": "4.4.4.4_6.6.6.6_Auto_facility-2-2001_TE",
"input": {
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 829
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5b10356b-9110-45a9-89d0-77febabad4ec",
"label": "getFbProtectedTunnels956",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b0efc15-a4f4-4df3-a2d8-078f80e2433e",
"tenantId": "ec5d7efe-9e19-4503-8402-b0fc8b78ba8c",
"shared": false,
"properties": {
"objectId": "4.4.4.4_6.6.6.6_Auto_facility-2-2001_TE",
"operationName": "getFbProtectedTunnels",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-05-31T17:48:27.618Z",
"createdAt": "2018-05-31T17:48:27.618Z",
"autoClean": false
}
Retrieve the AsyncTask execution result using the following API call:
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/5b1028cf-b3c7-4d6e-a4dd-de9199bfb0d9
Sample response
{
"items": [
{
"id": "5b103ae6-983b-4673-a6fa-40bf68d9d060",
"label": "getFbProtectedTunnels956",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b06566a-5e7f-40ec-b9c2-463c5ae83156",
"tenantId": "89a13712-c857-4364-b7e8-ec30d37861af",
"shared": false,
"properties": {
"startTime": "2018-05-31T18:11:51.488273+0000",
"state": "completed",
"stateData": {
"state": "completed",
"freId": "1.1.1.1_4.4.4.4_Auto_facility-47-2008_TE",
"startTime": "2018-05-31 18:11:51.491552+00:00"
},
"endTime": "2018-05-31T18:12:35.603145+0000",
"objectId": "1.1.1.1_4.4.4.4_Auto_facility-47-2008_TE",
"maximumTime": 30,
"output": {
"data": [
{
"relationships": {
"freDiscovered": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 830
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"data": {
"type": "freDiscovered",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-lpbk_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-
lpbk_TE::EP0"
},
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-
lpbk_TE::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2d5b56cf-6f2e-3436-a1bf-
776ceaec245b"
}
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "67a42211-14f0-34ad-96f1-
1b6158782303::FRE_1_EQPTGRP_41_MPLS_K1-Ucons-lpbk_transit_32779_32826_1.1.1.1"
},
{
"type": "fres",
"id": "6009473649510034634"
},
{
"type": "fres",
"id": "de94fa9a-060c-33f6-b852-
6c94d06308f2::FRE_1_EQPTGRP_41_MPLS_K1-Ucons-lpbk_transit_32826_32786_1.1.1.1"
},
{
"type": "fres",
"id": "6236978574003829479"
},
{
"type": "fres",
"id": "-406428413080187401"
}
]
}
},
"attributes": {
"additionalAttributes": {
"resiliency": "Protected",
"isActual": "true"
},
"userLabel": "K1-Ucons-lpbk",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 831
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"signalContentType": "LSP",
"serviceClass": "Tunnel",
"topologySources": [
"discovered"
],
"deploymentState": "discovered",
"derivedAttributes": {
"intentDeploymentState": "waiting to adopt",
"intentLifeCyclePhase": "adopting discovered"
},
"directionality": "unidirectional",
"identifiers": [
{
"nodalId": "1.1.1.1_6.6.6.6_K1-Ucons-
lpbk_TE",
"networkConstructId": "2d5b56cf-6f2e-3436-
a1bf-776ceaec245b"
}
],
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacitySize": {
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps",
"size": [
"2.0"
]
},
"capacity": 1
}
],
"resourceState": "discovered",
"operationState": "In Service",
"displayData": {
"operationState": "Up",
"adminState": "Enabled",
"intentLifeCyclePhaseString": "Discovered"
},
"adminState": "In Service",
"mplsPackage": {
"direction": "unidirectional",
"destIp": "6.6.6.6",
"facilityBypass": false,
"signaled": true,
"subType": "TE",
"lspName": "K1-Ucons-lpbk",
"bw": {
"bwMinKbps": "2000",
"bwIncrKbps": "2",
"bwUsedKbps": "0",
"bwAutoSizeIntervalMinutes": "8",
"bwMaxKbps": "2000",
"bwMode": "cac",
"bwAutoSize": "enable",
"bwAutoSizeFailureAction": "alarm"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 832
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"srcIp": "1.1.1.1",
"explicitRouteObject": [
"13.101.2.1",
"13.101.2.2",
"34.101.10.2",
"46.101.11.2"
],
"coRouted": false,
"ctrlPlaneId": "1.1.1.1_6.6.6.6_K1-Ucons-lpbk"
},
"layerRate": "MPLS",
"mgmtName": "K1-Ucons-lpbk",
"policies": {
"defaultAttributeSourcePolicy":
"discoveredOverPlanned",
"overrides": [
{
"attributeName":
"attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"networkRole": "FREAP",
"active": true,
"bookingData": {
"bandwidthLockout": false
}
},
"type": "fres",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-lpbk_TE"
}
]
},
"operationName": "getFbProtectedTunnels",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-05-31T18:12:35.661Z",
"createdAt": "2018-05-31T18:11:51.001Z",
"autoClean": false
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 833
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Similarly, you can use the API to retrieve the set of protecting FB tunnels associated with an FRR tunnel.
By providing the top FRR ID of a unidirectional protected tunnel, you can retrieve:
• data
◦ id: MPLS top FREAP ID
◦ type: frrProtections
◦ attributes:
▪ frrProtection:
▪ primaryPath: IP link FREAPs of the primary path
▪ activePath: FREAPs of IP links and FB tunnels
▪ protections: a list of nodal protection
▪ NetworkContruct
▪ ip
▪ protectionAvailable: true/false
▪ protectionType: link-protect, node-protect, none
▪ protectionInUse: true/false
▪ protectionFbName: FB tunnel name
▪ protectionFb
• included:
◦ A list of referred IP link FREAPs, FB Tunnel FREAPs and NetworkConstructs
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Sample body
{
"productId": "{{PID}}",
"label": "getUnidirTunnelProtectionInfo1109",
"properties": {
"operationName": "getUnidirTunnelProtectionInfo",
"objectId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"input": {
}
}
}
Sample output
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 834
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5b1028cf-b3c7-4d6e-a4dd-de9199bfb0d9",
"label": "getUnidirTunnelProtectionInfo1109",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b0efc15-a4f4-4df3-a2d8-078f80e2433e",
"tenantId": "ec5d7efe-9e19-4503-8402-b0fc8b78ba8c",
"shared": false,
"properties": {
"objectId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"operationName": "getUnidirTunnelProtectionInfo",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-05-31T16:54:40.004Z",
"createdAt": "2018-05-31T16:54:40.004Z",
"autoClean": false
}
Retrieve the AsyncTask execution result using a call resembling the following:
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/5b1028cf-b3c7-4d6e-a4dd-de9199bfb0d9
An incomplete tunnel is a set of tunnel segments that do not yet constitute a full, end-to-end path because
either the head endpoint, tail endpoint, or both are not yet defined or discovered.
When you retrieve the data for a complete tunnel, there are two indications that the tunnel is complete:
When you retrieve a partial tunnel’s data using the API, there are two inidcations in the response that
indicate that the tunnel is incomplete:
• topologySources: ["discovered"]
• The FRE’s endpoint with role z has empty relationships; the tailEnd does not exist, and so the tailEnd
reference link is a soft link.
{
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 835
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-UNIDIR-1-1_TE",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "2d5b56cf-6f2e-3436-a1bf-776ceaec245b",
"nodalId": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-UNIDIR-1-1_TE"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "discovered",
"bookingData": {
"bandwidthLockout": false
},
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "Tunnel",
"userLabel": "DYNAMIC-UNIDIR-1-1",
"mgmtName": "DYNAMIC-UNIDIR-1-1",
"layerRate": "MPLS",
"networkRole": "FREAP",
"directionality": "unidirectional",
"topologySources": [
"discovered"
],
"adminState": "In Service",
"signalContentType": "LSP",
"mplsPackage": {
"lspName": "DYNAMIC-UNIDIR-1-1",
"coRouted": false,
"signaled": true,
"subType": "TE",
"direction": "unidirectional",
"ctrlPlaneId": "1.1.1.1_2.2.2.2_DYNAMIC-UNIDIR-1-1",
"srcIp": "1.1.1.1",
"destIp": "2.2.2.2",
"bw": {
"unit": "kbps",
"used": "0",
"minimum": "0",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 836
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"maximum": "1000000000",
"increment": "0",
"requested": "0",
"autoSize": "enable",
"autoSizingMode": "cac",
"autoSizeFailureAction": "alarm",
"autoSizeIntervalMinutes": "0"
},
"facilityBypass": false,
"frr": {
"frrProtected": false
}
},
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"1000000.0"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"active": true,
"additionalAttributes": {
"signalingState": "down",
"isActual": "true",
"resiliency": "Normal"
},
"resilienceLevel": "unprotected"
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-UNIDIR-1-1_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-UNIDIR-1-
1_TE::EP0"
},
{
"type": "endPoints",
"id": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-UNIDIR-1-
1_TE::EP1"
}
]
},
"networkConstruct": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 837
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"data": {
"type": "networkConstructs",
"id": "2d5b56cf-6f2e-3436-a1bf-776ceaec245b"
}
}
}
},
"included": [
{
"id": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-UNIDIR-1-1_TE::EP0",
"type": "endPoints",
"attributes": {
"role": "z",
"directionality": "transmit egress",
"associations": [
{
"relationship": "tpes",
"identifier": {
"logicalId": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-
UNIDIR-1-1_TE"
}
}
]
},
"relationships": {}
},
{
"id": "1^2E1^2E1^2E1_2^2E2^2E2^2E2_DYNAMIC-UNIDIR-1-1_TE::EP1",
"type": "endPoints",
"attributes": {
"role": "a",
"directionality": "receive ingress"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2d5b56cf-6f2e-3436-a1bf-
776ceaec245b::TPE_1_CTPServerToClient_EQPTGRP_41_LSP_DYNAMIC-UNIDIR-1-
1_headEnd_1^2E1^2E1^2E1"
}
]
}
}
}
]
}
{
"data": {
"id": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-UNIDIR-1-1_TE",
"type": "fres",
"attributes": {
"operationState": "In Service",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 838
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"deploymentState": "discovered",
"identifiers": [
{
"networkConstructId": "6c66c638-7a81-31c2-8a47-a6a0c480a7b7",
"nodalId": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-UNIDIR-1-1_TE"
}
],
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "discovered",
"bookingData": {
"bandwidthLockout": false
},
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "Tunnel",
"userLabel": "DYNAMIC-UNIDIR-1-1",
"mgmtName": "DYNAMIC-UNIDIR-1-1",
"layerRate": "MPLS",
"networkRole": "FREAP",
"directionality": "unidirectional",
"topologySources": [
"discovered",
"stitched"
],
"adminState": "In Service",
"signalContentType": "LSP",
"mplsPackage": {
"lspName": "DYNAMIC-UNIDIR-1-1",
"coRouted": false,
"signaled": true,
"subType": "TE",
"direction": "unidirectional",
"ctrlPlaneId": "2.2.2.2_1.1.1.1_DYNAMIC-UNIDIR-1-1",
"srcIp": "2.2.2.2",
"destIp": "1.1.1.1",
"bw": {
"unit": "kbps",
"used": "0",
"minimum": "0",
"maximum": "1000000000",
"increment": "0",
"requested": "0",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 839
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"operational": "0",
"autoSize": "disable",
"autoSizingMode": "cac",
"autoSizeFailureAction": "alarm",
"autoSizeIntervalMinutes": "0"
},
"explicitRouteObject": [
"12.101.5.1"
],
"facilityBypass": false,
"frr": {
"frrProtected": false
}
},
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"0.0"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"active": true,
"additionalAttributes": {
"signalingState": "up",
"isActual": "true",
"resiliency": "Normal"
},
"resilienceLevel": "unprotected"
},
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-UNIDIR-1-1_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-UNIDIR-1-
1_TE::EP0"
},
{
"type": "endPoints",
"id": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-UNIDIR-1-
1_TE::EP1"
}
]
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 840
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "6c66c638-7a81-31c2-8a47-a6a0c480a7b7"
}
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-3937143407364792189"
}
]
}
}
},
"included": [
{
"id": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-UNIDIR-1-1_TE::EP0",
"type": "endPoints",
"attributes": {
"role": "z",
"directionality": "transmit egress",
"associations": [
{
"relationship": "tpes",
"identifier": {
"logicalId": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-
UNIDIR-1-1_TE"
}
}
]
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2d5b56cf-6f2e-3436-a1bf-
776ceaec245b::TPE_1_CTPServerToClient_EQPTGRP_41_LSP_DYNAMIC-UNIDIR-1-
1_tailEnd_2^2E2^2E2^2E2"
}
]
}
}
},
{
"id": "2^2E2^2E2^2E2_1^2E1^2E1^2E1_DYNAMIC-UNIDIR-1-1_TE::EP1",
"type": "endPoints",
"attributes": {
"role": "a",
"directionality": "receive ingress"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "6c66c638-7a81-31c2-8a47-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 841
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
a6a0c480a7b7::TPE_1_CTPServerToClient_EQPTGRP_41_LSP_DYNAMIC-UNIDIR-1-
1_headEnd_2^2E2^2E2^2E2"
}
]
}
}
}
]
}
MCP supports the provisioning of dynamic MPLS unidirectional tunnels using the following devices as
LER or LSRs:
Restrictions
The auto-fb-profile (for auto generated fb tunnel) and FRR profiles (tunnel-frr-profile) must already have
been created on the participating nodes (usually as part of commissioning)
Bidirectional Forwarding Detection (BFD) must be enabled for all dynamic tunnels manage by MCP. An
attempt to create a tunnel with BFD disbled will be rejected.
Unidirectional FRR tunnels do not support LSP-BFD; they support only IP-BFD. An IP-BFD profile should be
set up on the endpoint nodes (usually as part of commissioning).
The primary tunnel name cannot end with "_facility" or start with "Auto_facility", as these are reserved for
Facility Bypass (FB) tunnels
Prerequisites
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 842
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
GET {{BP_SERVER}}/bpocore/market/api/v1/products
sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 843
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "5b4e39d3-5dd3-4a1b-95e0-d6144d7c8408",
"resourceTypeId": "ifd.v5.resourceTypes.MplsTunnelIntentFacade",
"title": "product for ifd.v5.resourceTypes.MplsTunnelIntentFacade",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v5.serviceTemplates.MplsTunnelIntentFacade"
}
}
],
"total": 126,
"offset": 0,
"limit": 1000
}
Once you have the tunnel Product ID, use the following API all to create the unidirectional FRR protected
tunnel:
POST {{BP_SERVER}}/bpocore/market/api/v1/resources
Sample body
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 844
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{TUNNEL_FACADE_PID}}",
"label": "{{TUNNEL_NAME}}",
"properties": {
"turnDownDateTime": "2117-12-19T11:37:29.739",
"name": "{{TUNNEL_NAME}}",
"protectionType": "UNPROTECTED",
"signaledTunnel": true,
"directionality": "unidirectional",
"dynamicMplsTunnelFrr": {
"frrProtected": true,
"frrProfile": "DefaultFrrProfile"
},
"dynamicMplsTunnelAdditionalProperties": {
"setupPriority" : 3,
"holdPriority" : 4,
"softPreemption" : "enable"
},
"dynamicTunnelPathConstraints":{
"explicitTunnelPath": [
{
"hopAddress": "14.101.3.2",
"hopType": "BEST_EFFORT"
},
{
"hopAddress": "46.101.11.2",
"hopType": "BEST_EFFORT"
}
]
},
"bandwidth": {
"bookingFactor": 1,
"bandwidthLockout": false,
"assignedBandwidth": 11,
"assignedBandwidthUnit": "mbps",
"dynamicTunnelMinBandwidth": 2,
"dynamicTunnelMinBandwidthUnit": "mbps",
"dynamicTunnelBandwidthIncrements": 15,
"dynamicTunnelBandwidthIncrementUnit": "kbps",
"dynamicTunnelBandwidthMode" : "cac",
"dynamicTunnelBwAutoSize" : "enable",
"dynamicTunnelBwAutoSizeInterval" : 5,
"dynamicTunnelBwAutoSizeIntervalUnits": "minutes",
"dynamicTunnelBwAutoSizeFailureAction": "alarm"
},
"endPointA": {
"networkElement": {
"name": "SIM1"
}
},
"endPointZ": {
"networkElement": {
"name": "SIM6"
}
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 845
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
You can include soft or hard pre-emption parameters in the call, resembling the following:
"dynamicMplsTunnelAdditionalProperties": {
"setupPriority" : 3,
"holdPriority" : 4,
"softPreemption" : "enable"
},
"dynamicTunnelPathConstraints": {
"includeAllResourcesColorGroup": "cg-indigo",
"includeAnyResourcesColorGroup": "cg-indigo",
"excludeAnyResourcesColorGroup": "cg-red"
},
"dynamicTunnelPathConstraints":{
"explicitTunnelPath": [
{
"hopAddress": "14.101.3.2",
"hopType": "BEST_EFFORT"
},
{
"hopAddress": "46.101.11.2",
"hopType": "BEST_EFFORT"
}
]
},
The API call used to provision an FB tunnel resembles that used to provision a conventional unidirectional
tunnel, but uses the following attribute values to distinguish the FB tunnel as a purely protective entity:
Sample body
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 846
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{TUNNEL_FACADE_PID}}",
"label": "{{TUNNEL_NAME}}",
"properties": {
"turnDownDateTime": "2117-12-19T11:37:29.739",
"name": "{{TUNNEL_NAME}}",
"protectionType": "UNPROTECTED",
"signaledTunnel": true,
"directionality": "unidirectional",
"facilityBypassTunnel": true,
"dynamicMplsTunnelFb": {
"protectedInterface": "IP-PORT106",
"excludeIp": "12.101.5.2"
},
"dynamicMplsTunnelAdditionalProperties": {
"setupPriority" : 3,
"holdPriority" : 4,
"softPreemption" : "enable"
},
"bandwidth": {
"bookingFactor": 1,
"bandwidthLockout": false,
"assignedBandwidth": 11,
"assignedBandwidthUnit": "mbps",
"dynamicTunnelMinBandwidth": 2,
"dynamicTunnelMinBandwidthUnit": "mbps",
"dynamicTunnelBandwidthIncrements": 15,
"dynamicTunnelBandwidthIncrementUnit": "kbps"
},
"endPointA": {
"networkElement": {
"name": "SIM1"
}
},
"endPointZ": {
"networkElement": {
"name": "SIM2"
}
}
}
}
Note the following parameters that can be used within the API call to configure additinal unidirectional
tunnel properties:
Configure a setup priority value for a unidirectional Fast Reroute (FRR) tunnel:
"ifd.lsp.dynamicUniFrrTunnelSetupPriority":{
"default": "5",
"supportedValues": "0-7",
"description": "The setup priority value to be used for creating Dynamic
Unidirectional FRR Tunnel"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 847
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Configure a hold priority value for a unidirectional Fast Reroute (FRR) tunnel
"ifd.lsp.dynamicUniFrrTunnelHoldPriority":{
"default": "5",
"supportedValues": "0-7",
"description": "The hold priority value to be used for creating Dynamic
Unidirectional FRR Tunnel"
},
Enable or disable soft pre-emption for a unidirectional Fast Reroute (FRR) tunnel
"ifd.lsp.dynamicUniFrrTunnelEnableSoftPreemption":{
"default": "true",
"supportedValues": "true, false",
"description": "Enabled/Disable soft-preemption during creation of Dynamic
Unidirectional FRR Tunnel"
},
"ifd.lsp.dynamicUniFbTunnelSetupPriority":{
"default": "7",
"supportedValues": "0-7",
"description": "The setup priority value to be used for creating Dynamic
Unidirectional FB Tunnel"
},
"ifd.lsp.dynamicUniFbTunnelHoldPriority":{
"default": "2",
"supportedValues": "0-7",
"description": "The hold priority value to be used for creating Dynamic
Unidirectional FB Tunnel"
},
"ifd.lsp.dynamicUniFbTunnelEnableSoftPreemption":{
"default": "true",
"supportedValues": "true, false",
"description": "Enabled/Disable soft-preemption during creation of Dynamic
Unidirectional FB Tunnel"
}
To edit any of the tunnel’s properties, use the fllowing GET and PATCH calls.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 848
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
GET {{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v5.resourceTypes.IfdConfig
Note the "ID" value in the response to the above call, and use it in a PATCH request to edit the
configuration property as shown below below.
PATCH BP_SERVER/bpocore/market/api/v1/resources/RESOURCE_ID_V5_IFD_CONFIG
{
"properties": {
"configurationProperties": {
"ifd.lsp.dynamicUniFrrTunnelSetupPriority":{ "value": "3" }
}
}
}
Refresh states
You can use the REST API to refresh tunnel state data in MCP. The method is the same for unidirectional
tunnels as for other dynamic tunnels.
For the procedure to refresh state and other data for an MPLS tunnel, see Refreshing properties for links
and tunnels.
You can use the REST API to immediately optimize a dynamic FRR or FB tunnel so that it makes the best
use of current network resources.
For the procedure to immediately optimize an MPLS tunnel, see Manually invoke an immediate
optimization for a unidirectional tunnel
You can use the REST API to retrieve the latest information about FRR and FB tunnels. For an FRR tunnel,
this includes the set of FB tunnels that are supporting it. For an FB tunnel, this includes the list of FRR
tunnels that it supports.
For the procedure to retrieve the latest path data for a tunnel, see Manually invoke an immediate
optimization for a unidirectional tunnel
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 849
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
You can use the REST API to resize an LSP, including a unidirectional FRR or FB tunnel. "Re-sizing" a
dynamic tunnel increases or decreases the associated LSP bandwidth to reflect the committed service
load. Although a tunnel configured to auto-resize will perform this operation automatically given time, you
can use this procedure to trigger the resize operation immediately.
The steps to resize a unidirectional tunnel using the API follows the same sequence as for any dynamic
MPLS tunnel. For the procedure to resize an LSP, see Perform LSP resize for a dynamic MPLS tunnel.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
Sample response
{
"data": {
"id": "-3372689638961213769",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "ETHERNET",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"adjacency"
],
"signalContentType": "mac_transport",
"userData": {
"bandwidthBookingFactor": "1",
"bandwidthBookingLockout": "false"
},
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"1000"
],
"pattern": {
"type": "POOL",
"format": "number"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 850
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"unit": "mbps"
}
}
],
"usedBandwidth": [
{
"layer": "ETHERNET",
"capacity": 1,
"capacitySize": {
"size": [
"1000"
],
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps"
}
}
],
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-3372689638961213769:1"
},
{
"type": "endPoints",
"id": "-3372689638961213769:2"
}
]
}
}
},
"included": [
{
"id": "-3372689638961213769:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "56ce5ae8-5ac3-34eb-b28b-05e89385aed6::TPE_8_PTP"
}
]
}
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 851
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
...,
}
}
]
}
For details, see the section “maxReservableBandwidth” and “usedBandwidth” in the Sample response.
Sample request
PUT {{MCP_SERVER}}/nsi/api/fres/<freID>/bookingData/<bookingDataKey>
Specify the new attribute value, as applicable. The attributes that can be modified are as follows:
• "assignedBandwidth"
• "assignedBandwidthUnit"
• "bandwidthLockout" (for example, true or false)
• "bookingFactor"
Note: The <bookingDataKey> in the PUT URL relates to the attributes listed above.
Sample response
To modify the tunnel, use following POST API call described below.
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{TUNNEL_FACADE_ID}}/operations
You can use this call to make the following modifications to an existing tunnel (identified by
{{TUNNEL_FACADE_ID}})
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 852
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
You can also modify bandwidth and call admission control (CAC) properties (including assigned
bandwidth, booking factor, and bandwidth lockout); these are described separately in Modify MPLS-TP
LSP tunnel bandwidth call admission control (CAC).
Requirements You must know the following values before issuing this call:
Viewing results of modification Due to the asynchronous nature of custom operations, you should use a
GET call to retrieve the operation result.
The original operation to modify the tunnel will return the tunnel OID. Use that value to retrieve details for
the modified tunnel:
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/{{TUNNEL_FACADE_ID}}/operations/{{OID}}
Sample requests
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/aisRefreshTimer",
"value": "20sec"
},
{
"op": "add",
"path": "/properties/bfdInterval",
"value": "1sec"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 853
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/aisRefreshTimer",
"value": ""
},
{
"op": "add",
"path": "/properties/bfdInterval",
"value": ""
}
]
}
}
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/autoReversionPossible",
"value": true
},
{
"op": "add",
"path": "/properties/waitToRevertDelay",
"value": 180
},
{
"op": "add",
"path": "/properties/reversionTimeUnit",
"value": "seconds"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 854
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
}
]
}
}
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
},
{
"op": "add",
"path": "/properties/routingConstraints/1",
"value": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["MCP-8700-206"]
}
]
}
}
]
}
}
To modify the tunnel, use following POST API call described below.
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{TUNNEL_FACADE_ID}}/operations
You can use this call to add a backup tunnel to an existing, unprotected tunnel. You identify the
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 855
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Requirements You must know the following values before issuing this call:
Viewing results of modification Due to the asynchronous nature of custom operations, you should use a
GET call to retrieve the operation result.
The original operation to modify the tunnel will return the tunnel OID. Use that value to retrieve details for
the modified tunnel:
GET
{{BP_SERVER}}/bpocore/market/api/v1/resources/{{TUNNEL_FACADE_ID}}/operations/
{{OID}}
Sample requests
{ "interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 856
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{ "interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
},
{
"op": "add",
"path": "/properties/endPointA/backup",
"value": {
"port": "8"
}
},
{
"op": "add",
"path": "/properties/endPointZ/backup",
"value": {
"port": "9"
}
}
]
}
}
In this example, the original, unprotected tunnel was created without routing constraints.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 857
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{ "interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
},
{
"op": "add",
"path": "/properties/routingConstraints",
"value": [
{},
{
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": [
"A",
"B"
]
},
{
"objectType": "NODE_NAME",
"value": [
"C",
"D"
]
}
]
}
]
}
]
}
}
In this example, the original, unprotected tunnel was created with routing constraints.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 858
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
},
{
"op": "add",
"path": "/properties/routingConstraints/1",
"value": {
"includeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["MCP-8700-206"]
}
]
}
}
]
}
}
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
},
{
"op": "add",
"path": "/properties/routingConstraints/1",
"value": {
"excludeRouteObjects": [
{
"objectType": "NODE_NAME",
"value": ["MCP-8700-206"]
}
]
}
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 859
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "replace",
"path": "/properties/protectionType",
"value": "PROTECTED"
},
{
"op": "add",
"path": "/properties/backupPathName",
"value": "Backup-sankar-9"
}
]
}
}
*PATCH {{BP_SERVER}}/bpocore/market/api/v1/resources/{{config_resource_id}}
When the tunnel bandwidth CAC is off, no bandwidth CAC will be performed during tunnel creation or
tunnel bandwidth modification.
When the tunnel bandwidth CAC is on, bandwidth CAC will be applied to tunnel creation and tunnel
bandwidth modification.
When bandwidth CAC is on, the tunnel creation with bandwidth will be validated by PCE path finding. The
PCE path will be selected only if (assignedBW x bookingFactor) is less than or equal to the minimal link
available BW along the path.
When editing a tunnel’s assigned bandwidth, the booking factor and lockout can be modified, subject to
the following restrictions:
• When decreasing bandwidth, if (new assignedBW x bookingFactor) is greather than or equal to the
current usedBW, then the decrease is allowed; otherwise, it is disallowed.
• When increasing bandwidth, if the increased bandwidth amount is less than or equal to the minimal
link available bandwidth along the path, the increase is allowed.
• When increasing bandwidth, if the increased bandwidth amount is greater than the minimal link
available bandwidth along the path, but (new assignedBW x bookingFactor) is less than or equal to the
current usedBW, then the increase is allowed; otherwise, it is disallowed.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 860
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To modify a tunnel, first use the the GET API call described below to obtain the ifdConfig resource ID for
the service you plan to alter. The following GET call should retrieve one IfdConfig resource:
GET {{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v2.resourceTypes.IfdConfig
Extract the resource ID from the result and use the resource ID for the subsequent PATCH request. In the
sample response below, the IfdConfig resource ID is 592e633d-1d00-481e-a019-3b2d9d83d4de
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 861
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "592e633d-1d00-481e-a019-3b2d9d83d4de",
"label": "Resource for ifd.v2.resourceTypes.IfdConfig",
"resourceTypeId": "ifd.v2.resourceTypes.IfdConfig",
"productId": "592e6328-1451-4ea4-995b-63f4e31309ba",
"tenantId": "697827c1-cdf6-4433-9d0f-2c565ba05be8",
"shared": false,
"properties": {
"configurationProperties": {
"ifd.l2.autoReversionPossible": {
"default": "true",
"supportedValues": "true, false",
"description": "Whether Auto Reversion is Possible for Protected
Pseudowire.",
"value": "true"
},
"ifd.l2.cac": {
"default": "on",
"supportedValues": "on, off",
"description": "Flag to turn on L2 service bandwidth CAC.",
"value": "on"
},
"ifd.lsp.cac": {
"default": "on",
"supportedValues": "on, off",
"description": "Flag to turn on MPLS tunnel bandwidth CAC.",
"value": "on"
},
"ifd.l2.protectionScheme": {
"default": "ONE_PLUS_ONE",
"supportedValues": "ONE_FOR_ONE, ONE_PLUS_ONE",
"description": "Protection scheme for Protected Pseudowire.",
"value": "ONE_PLUS_ONE"
}
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-05-31T06:31:29.658Z",
"createdAt": "2017-05-31T06:31:25.704Z",
"autoClean": false
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
Then issue the following PATCH call to modify the CAC settings for the tunnel.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 862
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
PATCH {{BP_SERVER}}/bpocore/market/api/v1/resources/{{config_resource_id}}
For example, the following call will disable CAC for the tunnel:
{
"properties": {
"configurationProperties": {
"ifd.lsp.cac": {
"value": "off"
}
}
}
}
Viewing results of modification Due to the asynchronous nature of custom operations, you should use a
GET call to retrieve the operation result.
The original operation to modify the tunnel will return the tunnel OID. Use that value to retrieve details for
the modified tunnel:
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/{{TUNNEL_FACADE_ID}}/operations/{{OID}}
Sample request: add bandwidth properties Use this call to add bandwidth properties to a tunnel for which
they are not currently defined. These properties include:
• assigned bandwidth
• assigned bandwidth unit
• booking factor
• bandwidth lockout
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 863
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/bandwidth",
"value": {
"assignedBandwidth": 300,
"assignedBandwidthUnit": "mbps",
"bookingFactor": 1,
"bandwidthLockout": true
}
}
]
}
}
Sample request: modify tunnel bandwidth Provided bandwidth properties are already defined for a tunnel,
you can use a call like the one shown below to modify these properties.
If the bandwidth properties are not yet defined, use the Add Tunnel Bandwidth call described above to
define them first.
{
"interface": "modify",
"inputs": {
"differences": [
{
"op": "add",
"path": "/properties/bandwidth/assignedBandwidth",
"value": 399
},
{
"op": "add",
"path": "/properties/bandwidth/assignedBandwidthUnit",
"value": "mbps"
},
{
"op": "add",
"path": "/properties/bandwidth/bookingFactor",
"value": 3.99
},
{
"op": "add",
"path": "/properties/bandwidth/bandwidthLockout",
"value": true
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 864
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "592316b5-a071-4312-8a57-fe5198a0022e",
"resourceId": "59231685-623c-49fc-be28-5d0f167ad917",
"interface": "modify",
"inputs": {...},
"outputs": {},
"state": "failed",
"reason": "Failed task(s): (1) modify: Failed plan 'modify' (exit code:
42):\n:\n'NoneType' object has no attribute '__getitem__'",
"createdAt": "2017-05-22T16:49:57.420Z",
"updatedAt": "2017-05-22T16:49:58.606Z",
"resourceStateConstraints": {}
}
{
"id": "592316b5-a071-4312-8a57-fe5198a0022e",
"resourceId": "59231685-623c-49fc-be28-5d0f167ad917",
"interface": "modify",
"inputs": {...},
"outputs": {},
"state": "successful",
"reason": "",
"createdAt": "2017-05-22T18:32:15.694Z",
"updatedAt": "2017-05-22T18:32:21.538Z",
"resourceStateConstraints": {}
}
As a user, you want the ability to modify and delete 'discovered' LSP tunnels and EVCs (i.e. discovered
'services' with no intent) so you can properly manage your L2 network. This includes:
• Ability to manually promote a discovered LSP tunnel which does not have an intent and have intent
generated for the LSP tunnel
• Ability to manually promote a discovered EVC service which does not have an intent and have intent
generated for the EVC
• Promoted tunnels and EVCs can be modified or deleted in the same way as can MCP created tunnels
and EVCs
Note: Service is a general term used here that represents MPLS tunnels (transport services) and L2/L0
services.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 865
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"interface": "promoteService",
"inputs": {
"service": {
"freId": "5713422440907523218"
},
"settings": {
"lsp": {
"bandwidth": {
"assignedBandwidth": 180,
"assignedBandwidthUnit": "mbps",
"bookingFactor": 1.8,
"bandwidthLockout": false
}
}
}
}
}
• id is the operation ID and needs to be extracted for later result query as OID.
• state could be in one of the following: executing, pending, requested
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 866
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "58ffb8bc-777f-462c-8858-3d536cf82ed1",
"resourceId": "58fd866d-5436-4dd1-b6e2-edfb19b592b6",
"interface": "promoteService",
"inputs": {...},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2017-04-25T20:59:40.773Z",
"updatedAt": "2017-04-25T20:59:40.773Z",
"resourceStateConstraints": {}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 867
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"inputs": {
"service": {
"serviceType": "LSP",
"deploymentState": "discovered",
"managementName": "Bo_202-203_UP_11-50",
"userLabel": "",
"freId": "-8171524784057169337",
"details": {}
}
},
"resourceId": "58fd866c-a124-4dde-95c1-7275281ef9ec",
"updatedAt": "2017-04-24T07:15:23.728Z",
"reason": "",
"resourceStateConstraints": {},
"state": "successful",
"outputs": {
"result": {
"status": "succeeded",
"serviceType": "LSP",
"deploymentState": "discovered",
"managementName": "Bo_202-203_UP_11-50",
"userLabel": "",
"intentFacadeId": "58fda5fb-3dca-43fe-8147-98ad1b1bbb56",
"freId": "-8171524784057169337",
"details": {},
"intentIds": [
"58fda5fe-f9e3-4d33-b778-65474ef09b60"
],
"message": ""
}
},
"interface": "promoteService",
"id": "58fda5e8-3ba8-42b1-b3c5-a99929c48840",
"createdAt": "2017-04-24T07:14:48.128Z"
}
Promote an L2 service
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 868
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "promoteService",
"inputs": {
"service": {
"freId": "{{FRE_ID}}"
}
}
}
The rest of the steps are the same as for tunnel promotion: getting the immediate response and getting
the final promotion result.
• The user can switch traffic without specifying the desired outcome, in which case MCP will switch
traffic away from the currently active LSP.
• The user can specify the desire to switch and the newly designated active tunnel, in which case MCP
will ensure that the switch operation is performed if required.
Note: Through API it is possible to specify the desired outcome; i.e you can specify whether the primary
or backup should be active as part of the switch operation.
Sample request
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v2.resourceTypes.MplsOperation
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 869
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Container
Sample response
{
"items": [
{
"id": "5955a92c-a8fa-4337-9036-875eafe449c2",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-30T01:28:13.249Z",
"createdAt": "2017-06-30T01:28:12.558Z",
"autoClean": false
},
{
"id": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-30T01:28:15.786Z",
"createdAt": "2017-06-30T01:28:14.392Z",
"autoClean": false
},
{
"id": "5955a92f-219f-440b-8be1-a1507bda8e83",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 870
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"tags": {},
"providerData": {},
"updatedAt": "2017-06-30T01:28:17.995Z",
"createdAt": "2017-06-30T01:28:16.443Z",
"autoClean": false
},
{
"id": "5955a933-0811-4e98-9676-1b243e3b5c59",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-30T01:28:21.620Z",
"createdAt": "2017-06-30T01:28:19.593Z",
"autoClean": false
},
{
"id": "5955a936-cfe0-4c4d-9a03-bdbde2ecaf09",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-30T01:28:23.742Z",
"createdAt": "2017-06-30T01:28:22.469Z",
"autoClean": false
}
],
"total": 5,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 871
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To execute the tunnel group protection switch, use the Market API.
Sample request
{
"interface": "protectionSwitch",
"inputs": {
"freId": "-3770626729195966017",
"switchToTunnelRole" : "primary"
}
}
PARAMETER DESCRIPTION
Possible values:
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 872
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5956d1d6-d0e1-45d7-a636-587815eb9736",
"resourceId": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"interface": "protectionSwitch",
"inputs": {
"freId": "-3770626729195966017",
"switchToTunnelRole": "primary"
},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2017-06-30T22:33:58.889Z",
"updatedAt": "2017-06-30T22:33:58.889Z",
"resourceStateConstraints": {}
}
Note: The “id” in the response (above) is the protection switch operation id.
• RID is the MplsOperationContainer resource ID used as part of executing the protection switch
operation.
• OID is the operation ID generated as part of tunnel group protection switch operation.
To retrieve the status of the tunnel group protection switch, use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{NIWF_ID}}/operations/{{OID}}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 873
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5956d1d6-d0e1-45d7-a636-587815eb9736",
"resourceId": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"interface": "protectionSwitch",
"inputs": {
"freId": "-3770626729195966017",
"switchToTunnelRole": "primary"
},
"outputs": {},
"state": "successful",
"reason": "",
"createdAt": "2017-06-30T22:33:58.889Z",
"updatedAt": "2017-06-30T22:34:04.846Z",
"resourceStateConstraints": {}
}
PARAMETER DESCRIPTION
• successful
• failed
• aborted
• In the case of best effort, the LSP switch would still proceed and the user is given the list of tunnels
that could not be switched.
• If the operation is not best effort, the operation should fail if some LSPs cannot be switched away.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 874
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/products
Sample response
{
"items": [
{
"id": "5953f3f2-f72c-4f07-95e9-a3fb21d0cbd9",
"resourceTypeId": "ifd.v2.resourceTypes.NodeInsertionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeInsertionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeInsertionWorkflow"
}
},
{
"id": "5953f3f3-e8c1-4e12-a950-b7e76bead5f3",
"resourceTypeId": "ifd.v2.resourceTypes.NodeDeletionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeDeletionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeDeletionWorkflow"
}
},
],
"total": 2,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 875
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"productId": "{{NIWF_PRODUCT_ID}}",
"label": "Node Insertion Workflow {{NIWF_NAME}}",
"properties": {
"name": "Node Insertion Workflow {{NIWF_NAME}}",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "5"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_7"
},
"port": "6"
}
}
}
PARAMETER DESCRIPTION
"primary": {
“shelf” : "{{SHELF_NUM}}",
“slot”: “{{SLOT_NUM}}”,
"port": "{{TUNNEL_AEND_PORT}}"}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 876
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5956be60-bb3e-4e81-94e3-4c68d7378981",
"label": "Node Insertion Workflow NI-14-10",
"resourceTypeId": "ifd.v2.resourceTypes.NodeInsertionWorkflow",
"productId": "5955a910-314b-4123-89e8-5249d77e51ac",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {
"name": "Node Insertion Workflow NI-14-10",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "5"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_7"
},
"port": "6"
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-30T21:10:56.218Z",
"createdAt": "2017-06-30T21:10:56.218Z",
"autoClean": false
}
Note: The “id” in the response (above) is the “id” of the NodeInsertionWorfklow created.
Note: Use the ID of the NodeInsertionWorkflow resource created in the previous step.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 877
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "protectionSwitch",
"inputs" : {
"bestEffort" : false
}
}
PARAMETER DESCRIPTION
Sample response
{
"id": "5956bf8e-0a0d-4041-a1cd-531b75963edd",
"resourceId": "5956be60-bb3e-4e81-94e3-4c68d7378981",
"interface": "protectionSwitch",
"inputs": {
"bestEffort": false
},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2017-06-30T21:15:58.208Z",
"updatedAt": "2017-06-30T21:15:58.208Z",
"resourceStateConstraints": {}
}
Note: The “id” in the response (above) is the protection switch operation “id”.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 878
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To retrieve the status of the protection switch, use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{NIWF_ID}}/operations/{{OID}}
PARAMETER DESCRIPTION
* COMPLETED
* IN_PROGRESS
* FAILED
* ABORTED
Sample response
{
"id": "5956c7ac-f084-4b28-a60c-748f7569e8fc",
"resourceId": "5956c7a2-a164-43bf-94c2-24a80894bd2c",
"interface": "protectionSwitch",
"inputs": {
"bestEffort": true
},
"outputs": {
"affectedServices": [
{
"userLabel": "17-15-2",
"operationStatuses": [
{
"status": "FAILED",
"operation": "protectionSwitch",
"message": " Found an unprotected FRE with name 17-15-2 and ID
6263444378437617250. Switch will not be executed on active LSPs "
}
],
"freId": "6263444378437617250",
"layerRate": "MPLS_PROTECTION",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 879
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"managementName": "17-15-2"
},
{
"userLabel": "sankar-17-4",
"operationStatuses": [
{
"status": "FAILED",
"operation": "protectionSwitch",
"message": " Found an unprotected FRE with name sankar-17-4 and ID
7472456680727832158. Switch will not be executed on active LSPs "
}
],
"freId": "7472456680727832158",
"layerRate": "MPLS_PROTECTION",
"managementName": "sankar-17-4"
},
{
"userLabel": "pce-issue-4",
"operationStatuses": [
{
"status": "FAILED",
"operation": "protectionSwitch",
"message": " Found an unprotected FRE with name pce-issue-4 and ID
-7284860917466852734. Switch will not be executed on active LSPs "
}
],
"freId": "-7284860917466852734",
"layerRate": "MPLS_PROTECTION",
"managementName": "pce-issue-4"
},
{
"userLabel": "sankar-2",
"operationStatuses": [
{
"status": "FAILED",
"operation": "protectionSwitch",
"message": " Found an unprotected FRE with name sankar-2 and ID
6761413956652697696. Switch will not be executed on active LSPs "
}
],
"freId": "6761413956652697696",
"layerRate": "MPLS_PROTECTION",
"managementName": "sankar-2"
},
{
"userLabel": "pce-issue",
"operationStatuses": [
{
"status": "FAILED",
"operation": "protectionSwitch",
"message": " Found an unprotected FRE with name pce-issue and ID
-4950113752260381898. Switch will not be executed on active LSPs "
}
],
"freId": "-4950113752260381898",
"layerRate": "MPLS_PROTECTION",
"managementName": "pce-issue"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 880
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"userLabel": "4-7-6",
"operationStatuses": [
{
"status": "SUCCEEDED",
"operation": "protectionSwitch",
"message": " Protection switch operation completed on LSP 4-7-6 "
}
],
"freId": "6919222813551950071",
"layerRate": "MPLS_PROTECTION",
"managementName": "4-7-6"
},
{
"userLabel": "4-7-6-prot",
"operationStatuses": [
{
"status": "SUCCEEDED",
"operation": "protectionSwitch",
"message": " Protection switch operation completed on LSP 4-7-6-prot "
}
],
"freId": "6662969006268401008",
"layerRate": "MPLS_PROTECTION",
"managementName": "4-7-6-prot"
}
]
},
"state": "successful",
"reason": "",
"createdAt": "2017-06-30T21:50:36.628Z",
"updatedAt": "2017-06-30T21:50:56.985Z",
"resourceStateConstraints": {}
}
• Any operationally up but inactive primary LSP configured over this link should be reverted back to it.
• Any backup LSP configured over this link may be left alone.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 881
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/products
Sample response
{
"items": [
{
"id": "5953f3f2-f72c-4f07-95e9-a3fb21d0cbd9",
"resourceTypeId": "ifd.v2.resourceTypes.NodeInsertionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeInsertionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeInsertionWorkflow"
}
},
{
"id": "5953f3f3-e8c1-4e12-a950-b7e76bead5f3",
"resourceTypeId": "ifd.v2.resourceTypes.NodeDeletionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeDeletionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeDeletionWorkflow"
}
},
],
"total": 2,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 882
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Sample request
{
"productId": "{{NIWF_PRODUCT_ID}}",
"label": "Node Insertion Workflow {{NIWF_NAME}}",
"properties": {
"name": "Node Insertion Workflow {{NIWF_NAME}}",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "5"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_7"
},
"port": "6"
}
}
}
PARAMETER DESCRIPTION
"primary": {
“shelf” : "{{SHELF_NUM}}",
“slot”: “{{SLOT_NUM}}”,
"port": "{{TUNNEL_AEND_PORT}}"}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 883
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"id": "5956c6a6-2d95-4cec-8fdd-c3e6adcab1d8",
"label": "Node Insertion Workflow NI-14-10",
"resourceTypeId": "ifd.v2.resourceTypes.NodeInsertionWorkflow",
"productId": "5955a910-314b-4123-89e8-5249d77e51ac",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {
"name": "Node Insertion Workflow NI-14-10",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "5"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_7"
},
"port": "6"
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-30T21:46:14.335Z",
"createdAt": "2017-06-30T21:46:14.335Z",
"autoClean": false
}
Note: The “id” in the response (above) is the “id” of the NodeInsertionWorfklow created.
Note: Use the ID of the NodeInsertionWorkflow resource created in the previous step.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 884
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "protectionRestore"
}
Sample response
{
"id": "5956c6d4-90b8-4d10-b5b0-f2273d2f66aa",
"resourceId": "5956c6a6-2d95-4cec-8fdd-c3e6adcab1d8",
"interface": "protectionRestore",
"inputs": {},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2017-06-30T21:47:00.235Z",
"updatedAt": "2017-06-30T21:47:00.235Z",
"resourceStateConstraints": {}
}
Note: The “id” in the response (above) is the protection restore operation “id”.
To retrieve the status of the protection restore, use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{NIWF_ID}}/operations/{{OID}}
PARAMETER DESCRIPTION
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 885
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
PARAMETER DESCRIPTION
* COMPLETED
* IN_PROGRESS
* FAILED
* ABORTED
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 886
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "5956c6d4-90b8-4d10-b5b0-f2273d2f66aa",
"resourceId": "5956c6a6-2d95-4cec-8fdd-c3e6adcab1d8",
"interface": "protectionRestore",
"inputs": {},
"outputs": {
"affectedServices": [
{
"userLabel": "4-7-6_B",
"operationStatuses": [
{
"status": "SUCCEEDED",
"operation": "protectionRestore",
"message": " Protection switch operation completed on LSP 4-7-6_B "
}
],
"freId": "-622834540878803332",
"layerRate": "MPLS_PROTECTION",
"managementName": "4-7-6"
},
{
"userLabel": "4-7-6-prot_B",
"operationStatuses": [
{
"status": "SUCCEEDED",
"operation": "protectionRestore",
"message": " Protection switch operation completed on LSP 4-7-6-prot_B
"
}
],
"freId": "5175356512573164481",
"layerRate": "MPLS_PROTECTION",
"managementName": "4-7-6-prot"
}
]
},
"state": "successful",
"reason": "",
"createdAt": "2017-06-30T21:47:00.235Z",
"updatedAt": "2017-06-30T21:47:12.285Z",
"resourceStateConstraints": {}
}
• An unprotected tunnel group consists of a single LSP between two LER nodes with or without
intermediate transit nodes (LSRs).
• A protected tunnel group consists of two such LSPs, one being the primary and the other being the
backup. Only one LSP (primary or backup) is active at a given time.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 887
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Requirements
As part of commissioning the new IP interfaces, the user should not change or delete the existing
interface.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/products
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 888
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "5953f3f2-f72c-4f07-95e9-a3fb21d0cbd9",
"resourceTypeId": "ifd.v2.resourceTypes.NodeInsertionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeInsertionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeInsertionWorkflow"
}
},
{
"id": "5953f3f3-e8c1-4e12-a950-b7e76bead5f3",
"resourceTypeId": "ifd.v2.resourceTypes.NodeDeletionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeDeletionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeDeletionWorkflow"
}
},
],
"total": 2,
"offset": 0,
"limit": 1000
}
In the response, note the “ifd.v2.resourceTypes.NodeInsertionWorkflow”. Use this ID as the “product Id” in
Create the NodeInsertionWorkflow resource (step 2).
Note: Use the original link that was removed and provide that as part of endpoints while creating the
NodeInsertionWorkflow resource.
Assumption: If X is the new node that is inserted between A-B, use the port from A (connected to X) and
port from B (connected to X) to create the workflow resource.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 889
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{NIWF_PRODUCT_ID}}",
"label": "Node Insertion Workflow {{NIWF_NAME}}",
"properties": {
"name": "Node Insertion Workflow {{NIWF_NAME}}",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "3"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_6"
},
"port": "8"
}
}
}
PARAMETER DESCRIPTION
"primary": {
"shelf" : "{{SHELF_NUM}}",
"slot": "{{SLOT_NUM}}",
"port": "{{TUNNEL_AEND_PORT}}"}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 890
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "59540dc6-6112-4577-aa76-fad0eb0cf2fa",
"label": "Node Insertion Workflow NI-19-37",
"resourceTypeId": "ifd.v2.resourceTypes.NodeInsertionWorkflow",
"productId": "5953f3f2-f72c-4f07-95e9-a3fb21d0cbd9",
"tenantId": "b050c434-46cd-4c15-95b2-b33c22586d43",
"shared": false,
"properties": {
"name": "Node Insertion Workflow NI-19-37",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "3"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_6"
},
"port": "8"
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-28T20:12:55.082Z",
"createdAt": "2017-06-28T20:12:55.082Z",
"autoClean": false
}
Note: The “id” in the response (above) is the “id” of the NodeInsertionWorkflow created.
Note: Use the ID of the NodeInsertionWorkflow resource created in the previous step.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 891
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "serviceCorrect"
}
Sample response
{
"id": "595411e5-b669-4e82-9cc1-1e62b556ac32",
"resourceId": "59540dc6-6112-4577-aa76-fad0eb0cf2fa",
"interface": "serviceCorrect",
"inputs": {},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2017-06-28T20:30:29.274Z",
"updatedAt": "2017-06-28T20:30:29.274Z",
"resourceStateConstraints": {}
}
Note: The “id” in the response (above) is the LSP correction operation “id”.
To retrieve the status of the LSP correction, use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{NIWF_ID}}/operations/{{OID}}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 892
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "58a22de7-bd0a-43c0-91aa-dc96a30014da",
"resourceId": "58a22d2c-94e6-401d-8905-13dd0695bc48",
"interface": "serviceCorrect",
"inputs": {},
"outputs": {},
"state": "successful",
"reason": "",
"createdAt": "2017-02-13T22:06:31.946Z",
"updatedAt": "2017-02-13T22:06:38.027Z",
"resourceStateConstraints": {}
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
PARAMETER DESCRIPTION
• successful
• failed
• aborted
To retrieve the workflow resource (to know the details of the corrected LSPs), use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{NIWF_ID}}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 893
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "59540dc6-6112-4577-aa76-fad0eb0cf2fa",
"label": "Node Insertion Workflow NI-19-37",
"resourceTypeId": "ifd.resourceTypes.NodeInsertionWorkflow",
"productId": "5953f3f2-f72c-4f07-95e9-a3fb21d0cbd9",
"tenantId": "b050c434-46cd-4c15-95b2-b33c22586d43",
"shared": false,
"properties": {
"stage": {
"state": "COMPLETED",
"id": "SERVICE_CORRECT"
},
"name": "Node Insertion Workflow NI-13-59",
"affectedServices": [
{
"userLabel": "Demo-13-38",
"operationStatuses": [
{
"status": "SUCCEEDED",
"operation": "serviceCorrect",
"message": "LSP Correction finished for the FRE 2522365656947898119 "
}
],
"freId": "2522365656947898119",
"layerRate": "MPLS_PROTECTION",
"managementName": ""
}
],
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "3"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_6"
},
"port": "8"
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-28T20:12:59.082Z",
"createdAt": "2017-06-28T20:12:59.082Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 894
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
PARAMETER DESCRIPTION
* INIT
* SERVICE_CORRECT
* COMPLETED
* IN_PROGRESS
* FAILED
* ABORTED
LSP correction on node deletion will correct the LSPs terminating on A or B and LSPs transiting through
nodes A or B.
Requirements
1. Physically disconnect the nodes and connect the two nodes A & B.
2. Pre-provision the following on the devices:
◦ loopback IP and interface IP addresses (for IP links)
3. Pre-assign a loopback IP address to each node in the tunnel path (including LER and LSR nodes)
4. Provision interface IP addresses and VLANs for every port on CES devices over which a tunnel could
be routed.
5. Configure IFNUM for all ports connected to 6200 devices.
6. Enable static ARP on ports facing the 6200 devices.
7. Rediscover the affected nodes. (two nodes)
As part of commissioning the new IP interfaces, the user should not change or delete the existing
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 895
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
interface.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/products
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 896
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "5953f3f2-f72c-4f07-95e9-a3fb21d0cbd9",
"resourceTypeId": "ifd.v2.resourceTypes.NodeInsertionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeInsertionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeInsertionWorkflow"
}
},
{
"id": "5953f3f3-e8c1-4e12-a950-b7e76bead5f3",
"resourceTypeId": "ifd.v2.resourceTypes.NodeDeletionWorkflow",
"title": "product for ifd.v2.resourceTypes.NodeDeletionWorkflow",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v2.serviceTemplates.NodeDeletionWorkflow"
}
},
],
"total": 2,
"offset": 0,
"limit": 1000
}
In the response, note the “ifd.v2.resourceTypes.NodeDeletionWorkflow”. Use this ID as the “product Id” in
Create the NodeInsertionWorkflow resource (step 2).
Note: Use the original link that was removed and provide that as part of endpoints while creating the
NodeDeletionWorkflow resource.
Assumption: If X is the new node that is deleted between A-B, use the port from A (connected to B) and
port from B (connected to A) to create the node deletion workflow resource.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 897
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"productId": "{{NDWF_PRODUCT_ID}}",
"label": "Node Deletion Workflow {{NDWF_NAME}}",
"properties": {
"name": "Node Deletion Workflow {{NDWF_NAME}}",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "3"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_15"
},
"port": "7"
}
}
}
PARAMETER DESCRIPTION
"primary": {
"shelf" : "{{SHELF_NUM}}",
"slot": "{{SLOT_NUM}}",
"port": "{{TUNNEL_AEND_PORT}}"}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 898
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "595423f8-138f-4ffe-ba6e-aa5a819ed37a",
"label": "Node Deletion Workflow ND-15-43",
"resourceTypeId": "ifd.v2.resourceTypes.NodeDeletionWorkflow",
"productId": "5953f3f3-e8c1-4e12-a950-b7e76bead5f3",
"tenantId": "b050c434-46cd-4c15-95b2-b33c22586d43",
"shared": false,
"properties": {
"name": "Node Deletion Workflow ND-15-43",
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "3"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_15"
},
"port": "7"
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-28T21:47:36.726Z",
"createdAt": "2017-06-28T21:47:36.726Z",
"autoClean": false
}
Note: The “id” in the response (above) is the “id” of the NodeDeletionWorkflow resource created.
Note: Use the ID of the NodeDeletionWorkflow resource created in the previous step.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 899
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"interface": "serviceCorrect"
}
Sample response
{
"id": "595411e5-b669-4e82-9cc1-1e62b556ac32",
"resourceId": "59540dc6-6112-4577-aa76-fad0eb0cf2fa",
"interface": "serviceCorrect",
"inputs": {},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2017-06-28T20:30:29.274Z",
"updatedAt": "2017-06-28T20:30:29.274Z",
"resourceStateConstraints": {}
}
Note: The “id” in the response (above) is the LSP correction operation “id”.
To retrieve the status of the LSP correction, use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{NIWF_ID}}/operations/{{OID}}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 900
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "58a22de7-bd0a-43c0-91aa-dc96a30014da",
"resourceId": "58a22d2c-94e6-401d-8905-13dd0695bc48",
"interface": "serviceCorrect",
"inputs": {},
"outputs": {},
"state": "successful",
"reason": "",
"createdAt": "2017-02-13T22:06:31.946Z",
"updatedAt": "2017-02-13T22:06:38.027Z",
"resourceStateConstraints": {}
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
PARAMETER DESCRIPTION
• successful
• failed
• aborted
To retrieve the workflow resource (to know the details of the corrected LSPs), use the Market API.
Sample request
GET {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{NIWF_ID}}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 901
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"id": "595423f8-138f-4ffe-ba6e-aa5a819ed37a",
"label": "Node Deletion Workflow ND-15-43",
"resourceTypeId": "ifd.v2.resourceTypes.NodeDeletionWorkflow",
"productId": "5953f3f3-e8c1-4e12-a950-b7e76bead5f3",
"tenantId": "b050c434-46cd-4c15-95b2-b33c22586d43",
"shared": false,
"properties": {
"stage": {
"state": "COMPLETED",
"id": "SERVICE_CORRECT"
},
"name": "Node Deletion Workflow NI-13-59",
"affectedServices": [
{
"userLabel": "Demo-13-38",
"operationStatuses": [
{
"status": "SUCCEEDED",
"operation": "serviceCorrect",
"message": "LSP Correction finished for the FRE 2522365656947898119 "
}
],
"freId": "2522365656947898119",
"layerRate": "MPLS_PROTECTION",
"managementName": ""
}
],
"endPointA": {
"networkElement": {
"name": "3930_MCP_4"
},
"port": "3"
},
"endPointB": {
"networkElement": {
"name": "3930_MCP_6"
},
"port": "8"
}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-06-28T21:47:52.726Z",
"createdAt": "2017-06-28T21:47:52.726Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 902
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
PARAMETER DESCRIPTION
* INIT
* SERVICE_CORRECT
* COMPLETED
* IN_PROGRESS
* FAILED
* ABORTED
"Re-sizing" a dynamic tunnel increases or decreases the associated LSP bandwidth to reflect the
committed service load. Although a tunnel configured to auto-resize will perform this operation
automatically given time, you can use this procedure to trigger the resize operation immediately.
When you trigger the re-size operation, MCP will send the auto-resize trigger command to the supporting
device. This operation will only trigger the auto-resize insruction to the NE; whether the tunnel is atually
auto-resized or not is controlled by NE.
Use the Market API GET operation to obtain the tunnel’s resource ID.
Sample request:
GET
{{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v2.resourceTypes.MplsOperationCo
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 903
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
ntainer
Sample response:
{
"items": [
{
"id": "5955a92c-a8fa-4337-9036-875eafe449c2",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:13.249Z",
"createdAt": "2018-01-30T01:28:12.558Z",
"autoClean": false
},
{
"id": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:15.786Z",
"createdAt": "2018-01-30T01:28:14.392Z",
"autoClean": false
},
{
"id": "5955a92f-219f-440b-8be1-a1507bda8e83",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 904
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:17.995Z",
"createdAt": "2018-01-30T01:28:16.443Z",
"autoClean": false
},
{
"id": "5955a933-0811-4e98-9676-1b243e3b5c59",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:21.620Z",
"createdAt": "2018-01-30T01:28:19.593Z",
"autoClean": false
},
{
"id": "5955a936-cfe0-4c4d-9a03-bdbde2ecaf09",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:23.742Z",
"createdAt": "2018-01-30T01:28:22.469Z",
"autoClean": false
}
],
"total": 5,
"offset": 0,
"limit": 1000
}
The response includes the list of MplsOperationContainer resources; and every resource in the response
will have an attribute named "id".
Select one resource from the returned list of resources, and use the value of id property to execute the
tunnel group Resize.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 905
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Use the Market API POST operation to reize the tunnel group.
Sample request:
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations
Request data :
PARAMETER DESCRIPTION
{
"interface": "resize",
"inputs": {
"freId": "6515318274086203180"
}
}
Sample response:
{
"id": "5956d1d6-d0e1-45d7-a636-587815eb9736",
"resourceId": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"interface": "resize",
"inputs": {
"freId": "6515318274086203180"
},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2018-01-30T22:33:58.889Z",
"updatedAt": "2018-01-30T22:33:58.889Z",
"resourceStateConstraints": {}
}
Note: The “id” in the response (above) is the unique id number that assigned to the resize operation.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 906
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Note:
• RID is the MplsOperationContainer resource ID used as part of executing the resize operation.
• OID is the operation ID generated as part of tunnel group resize operation (Step 3)
{{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations/{{OID}}
Using the resize operation ID, you can obtain the status of the operation to verify its successful execution.
Sample Request
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations/{{OID}}
Sample Response
PARAMETER DESCRIPTION
• successful
• failed
• aborted
{
"id": "5956d1d6-d0e1-45d7-a636-587815eb9736",
"resourceId": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"interface": "resize",
"inputs": {
"freId": "-3770626729195966017"
},
"outputs": {},
"state": "successful",
"reason": "",
"createdAt": "2018-01-30T22:33:58.889Z",
"updatedAt": "2018-01-30T22:34:04.846Z",
"resourceStateConstraints": {}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 907
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The tunnel resynchronization process is an asynchronous process, and the latest tunnel information is
available only after the resynchronization is completed.
MCP now uses an easy-to-use REST API call, the AsyncTask, to wrap all three steps together.
To create an AsyncTask, we first need to get its product ID. This is a common step that is frequently used
to begin a chain of related API calls.
GET {BP_SERVER}/bpocore/market/api/v1/products
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 908
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"items": [
{
"id": "5b0efc15-a4f4-4df3-a2d8-078f80e2433e",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"title": "product for ifd.v5.resourceTypes.AsyncTask",
"active": true,
"domainId": "built-in",
"constraints": {},
"providerData": {
"template": "ifd.v5.serviceTemplates.AsyncTask"
}
}
],
"total": 125,
"offset": 0,
"limit": 1000
}
5b0efc15-a4f4-4df3-a2d8-078f80e2433e
For a unidirectional Fast Reroute (FRR) protected tunnel, you retrieve the set of protecting FB tunnels and
the tunnel’s current active paty.
• data
◦ id: MPLS top FREAP ID
◦ type: frrProtections
◦ attributes:
◦ frrProtection:
◦ primaryPath: IP link FREAPs of the primary path
◦ activePath: FREAPs of IP links and FB tunnels
◦ protections: a list of nodal protection
▪ NetworkContruct
▪ ip
▪ protectionAvailable: true/false
▪ protectionType: link-protect, node-protect, none
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 909
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
▪ protectionInUse: true/false
▪ protectionFbName: FB tunnel name
▪ protectionFb
• included
◦ a list of referred IP link FREAPs, FB Tunnel FREAPs and NetworkConstructs
POST {BP_SERVER}/bpocore/market/api/v1/resources
{
"productId": "{PID}",
"label": "getUnidirTunnelProtectionInfo1109",
"properties": {
"operationName": "getUnidirTunnelProtectionInfo",
"objectId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"input": {
}
}
}
Sample response
{
"id": "5b1028cf-b3c7-4d6e-a4dd-de9199bfb0d9",
"label": "getUnidirTunnelProtectionInfo1109",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b0efc15-a4f4-4df3-a2d8-078f80e2433e",
"tenantId": "ec5d7efe-9e19-4503-8402-b0fc8b78ba8c",
"shared": false,
"properties": {
"objectId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"operationName": "getUnidirTunnelProtectionInfo",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-05-31T16:54:40.004Z",
"createdAt": "2018-05-31T16:54:40.004Z",
"autoClean": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 910
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Next, retrieve the AsyncTask execution result using an API call like the following:
GET {BP_SERVER}/bpocore/market/api/v1/resources/5b1028cf-b3c7-4d6e-a4dd-de9199bfb0d9
{
"id": "5b1033b6-64b8-4b79-8fc9-70869ceff6b5",
"label": "getUnidirTunnelProtectionInfo1109",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b0efc15-a4f4-4df3-a2d8-078f80e2433e",
"tenantId": "ec5d7efe-9e19-4503-8402-b0fc8b78ba8c",
"shared": false,
"properties": {
"startTime": "2018-05-31T17:41:12.202638+0000",
"state": "executing",
"key": "getUnidirTunnelProtectionInfo",
"stateData": {
"state": "started",
"freId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"startTime": "2018-05-31 17:41:12.210000+00:00"
},
"objectId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"maximumTime": 30,
"operationName": "getUnidirTunnelProtectionInfo",
"schedulerCallbackId": "0x000000020002-d2bc8cc5-50f5-4ed3-8990-c4e3b827eaf4",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "activating",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-05-31T17:41:33.566Z",
"createdAt": "2018-05-31T17:41:11.013Z",
"autoClean": false
}
{
"items": [
{
"id": "5b1033b6-64b8-4b79-8fc9-70869ceff6b5",
"label": "getUnidirTunnelProtectionInfo1109",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b0efc15-a4f4-4df3-a2d8-078f80e2433e",
"tenantId": "ec5d7efe-9e19-4503-8402-b0fc8b78ba8c",
"shared": false,
"properties": {
"startTime": "2018-05-31T17:41:12.202638+0000",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 911
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"state": "completed",
"stateData": {
"state": "completed",
"freId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"startTime": "2018-05-31 17:41:12.210000+00:00"
},
"endTime": "2018-05-31T17:42:10.436755+0000",
"objectId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"maximumTime": 30,
"output": {
"included": [
{
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "-4592148412769551661"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-4592148412769551661:1"
},
{
"type": "endPoints",
"id": "-4592148412769551661:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2d5b56cf-6f2e-3436-a1bf-
776ceaec245b::FRE_1_EQPTGRP_41_IP_MPLS-VS-PORT104"
},
{
"type": "fres",
"id": "-1031751064053921088"
},
{
"type": "fres",
"id": "de94fa9a-060c-33f6-b852-
6c94d06308f2::FRE_1_EQPTGRP_41_IP_MPLS-VS-PORT104"
}
]
}
},
"attributes": {
"additionalAttributes": {
"isActual": "true"
},
"userLabel": "",
"signalContentType": "IP",
"topologySources": [
"stitched"
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 912
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"deploymentState": "discovered",
"derivedAttributes": {
"intentDeploymentState": "waiting to adopt",
"intentLifeCyclePhase": "adopting discovered"
},
"directionality": "bidirectional",
"serviceClass": "IP",
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacitySize": {
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps",
"size": [
"10000.0"
]
},
"capacity": 1
}
],
"resourceState": "discovered",
"operationState": "In Service",
"displayData": {
"operationState": "Up",
"adminState": "Enabled",
"intentLifeCyclePhaseString": "Discovered"
},
"adminState": "In Service",
"reliability": "manual",
"layerRate": "ETHERNET",
"mgmtName": "MPLS-VS-PORT104",
"policies": {
"defaultAttributeSourcePolicy":
"discoveredOverPlanned",
"overrides": [
{
"attributeName":
"attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"networkRole": "FREAP",
"active": true,
"bookingData": {
"bookingFactor": "1",
"bandwidthLockout": false
},
"nativeName": ""
},
"type": "fres",
"id": "-4592148412769551661"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 913
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "6009473649510034634"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "6009473649510034634:1"
},
{
"type": "endPoints",
"id": "6009473649510034634:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "267de837-45d6-3fe9-9528-
e19a6765b481::FRE_1_EQPTGRP_7_IP_MPLS-VS-PORT113"
},
{
"type": "fres",
"id": "-6006188797243146606"
},
{
"type": "fres",
"id": "de94fa9a-060c-33f6-b852-
6c94d06308f2::FRE_1_EQPTGRP_41_IP_MPLS-VS-PORT113"
}
]
}
},
"attributes": {
"additionalAttributes": {
"isActual": "true"
},
"userLabel": "",
"signalContentType": "IP",
"topologySources": [
"stitched"
],
"deploymentState": "discovered",
"derivedAttributes": {
"intentDeploymentState": "waiting to adopt",
"intentLifeCyclePhase": "adopting discovered"
},
"directionality": "bidirectional",
"serviceClass": "IP",
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacitySize": {
"pattern": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 914
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "POOL",
"format": "number"
},
"unit": "mbps",
"size": [
"10000.0"
]
},
"capacity": 1
}
],
"resourceState": "discovered",
"operationState": "In Service",
"displayData": {
"operationState": "Up",
"adminState": "Enabled",
"intentLifeCyclePhaseString": "Discovered"
},
"adminState": "In Service",
"reliability": "manual",
"layerRate": "ETHERNET",
"mgmtName": "MPLS-VS-PORT113",
"policies": {
"defaultAttributeSourcePolicy":
"discoveredOverPlanned",
"overrides": [
{
"attributeName":
"attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"networkRole": "FREAP",
"active": true,
"bookingData": {
"bookingFactor": "1",
"bandwidthLockout": false
},
"nativeName": ""
},
"type": "fres",
"id": "6009473649510034634"
},
{
"relationships": {
"managementSession": {
"data": {
"type": "managementSessions",
"id": "11584ea8-f6c3-437a-9157-
36129eb1b64b"
}
}
},
"attributes": {
"l2Data": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 915
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"loopbackAddresses": [
"1.1.1.1"
],
"shelf": "1",
"dynamicLabelRange": {
"maxValue": 1044479,
"minValue": 32768
},
"benchmarkMacs": [
"00:20:d8:01:35:0a"
],
"staticVcLabelRange": {
"maxValue": 32767,
"minValue": 16384
},
"eqptGrp": "41",
"staticTunnelLabelRange": {
"maxValue": 16383,
"minValue": 16
}
}
],
"macAddress": "00:01:02:03:33:00",
"softwareType": "POTS",
"resourceState": "discovered",
"displayData": {
"displayMACAddress": "00:01:02:03:33:00",
"displaySyncState": "synchronized",
"displayName": "SIM1",
"displayIpAddress": "10.182.244.1"
},
"softwareImage": "",
"longName": "SIM1",
"accessIdentifier": "SHELF-1",
"numberOfShelves": 1,
"typeGroup": "Ciena6500",
"deviceType": "6500-T12 Packet-Optical Shelf
Assembly",
"networkConstructType": "networkElement",
"capabilitySpecRef": "6500.json",
"syncState": {
"state": "synchronized",
"additionalText": "Sync completed 2018-05-
31T16:47:14.048Z"
},
"userData": {
"latitudeLongitudeString": "39.14390396497397,-
55.3715818199921",
"SHELF-1-SUBNETNAME": ""
},
"associationState": "GOA",
"additionalAttributes": {
"slte": "false",
"eqptGroups": "EQPTGRP-1-41",
"subtending_passive": "false",
"repeaterSystem": "",
"tidc": "disabled",
"isFlexCapable": "true"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 916
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"name": "SIM1",
"resourceType": "6500",
"serialNumber": "NNTMSIMQ0001",
"softwareVersion": "13.0.0",
"subnetName": "",
"ipAddress": "10.182.244.1",
"deviceVersion": "6500-T12 PACKET-OPTICAL"
},
"type": "networkConstructs",
"id": "2d5b56cf-6f2e-3436-a1bf-776ceaec245b"
},
{
"relationships": {
"managementSession": {
"data": {
"type": "managementSessions",
"id": "e7bd878a-371b-43f4-ab54-
ed3c36004a1e"
}
}
},
"attributes": {
"l2Data": [
{
"loopbackAddresses": [
"4.4.4.4"
],
"shelf": "1",
"dynamicLabelRange": {
"maxValue": 1044479,
"minValue": 32768
},
"benchmarkMacs": [
"00:20:d8:04:35:0a"
],
"staticVcLabelRange": {
"maxValue": 32767,
"minValue": 16384
},
"eqptGrp": "41",
"staticTunnelLabelRange": {
"maxValue": 16383,
"minValue": 16
}
}
],
"macAddress": "00:01:02:03:3F:00",
"softwareType": "POTS",
"resourceState": "discovered",
"displayData": {
"displayMACAddress": "00:01:02:03:3F:00",
"displaySyncState": "synchronized",
"displayName": "SIM4",
"displayIpAddress": "10.182.244.4"
},
"softwareImage": "",
"longName": "SIM4",
"accessIdentifier": "SHELF-1",
"numberOfShelves": 1,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 917
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"typeGroup": "Ciena6500",
"deviceType": "6500-T12 Packet-Optical Shelf
Assembly",
"networkConstructType": "networkElement",
"capabilitySpecRef": "6500.json",
"syncState": {
"state": "synchronized",
"additionalText": "Sync completed 2018-05-
30T20:27:38.406Z"
},
"userData": {
"latitudeLongitudeString": "16.44752511559136,-
26.017972180478214",
"SHELF-1-SUBNETNAME": ""
},
"associationState": "GOA",
"additionalAttributes": {
"slte": "false",
"eqptGroups": "EQPTGRP-1-41",
"subtending_passive": "false",
"repeaterSystem": "",
"tidc": "disabled",
"isFlexCapable": "true"
},
"name": "SIM4",
"resourceType": "6500",
"serialNumber": "NNTMSIMQ0001",
"softwareVersion": "13.0.0",
"subnetName": "",
"ipAddress": "10.182.244.4",
"deviceVersion": "6500-T12 PACKET-OPTICAL"
},
"type": "networkConstructs",
"id": "de94fa9a-060c-33f6-b852-6c94d06308f2"
},
{
"relationships": {
"managementSession": {
"data": {
"type": "managementSessions",
"id": "2374773f-d7a1-4df4-8dde-
6c01606eb885"
}
}
},
"attributes": {
"l2Data": [
{
"loopbackAddresses": [
"6.6.6.6"
],
"shelf": "1",
"dynamicLabelRange": {
"maxValue": 984479,
"minValue": 32768
},
"benchmarkMacs": [
"00:20:d8:06:35:0a"
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 918
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"staticVcLabelRange": {
"maxValue": 32767,
"minValue": 16384
},
"eqptGrp": "7",
"staticTunnelLabelRange": {
"maxValue": 16383,
"minValue": 2016
}
}
],
"macAddress": "00:01:02:03:47:00",
"softwareType": "OCP",
"resourceState": "discovered",
"displayData": {
"displayMACAddress": "00:01:02:03:47:00",
"displaySyncState": "synchronized",
"displayName": "SIM6",
"displayIpAddress": "10.182.244.6"
},
"softwareImage": "",
"longName": "SIM6",
"accessIdentifier": "SHELF-1",
"numberOfShelves": 1,
"typeGroup": "Ciena6500",
"deviceType": "6500 14-Slot Packet-Optical Shelf
Assembly",
"networkConstructType": "networkElement",
"capabilitySpecRef": "6500.json",
"syncState": {
"state": "synchronized",
"additionalText": "Sync completed 2018-05-
30T20:30:22.657Z"
},
"userData": {
"latitudeLongitudeString":
"30.227748642153202,-10.006912377107005",
"SHELF-1-SUBNETNAME": ""
},
"associationState": "GOA",
"additionalAttributes": {
"slte": "false",
"eqptGroups": "EQPTGRP-1-7",
"subtending_passive": "false",
"repeaterSystem": "",
"tidc": "disabled",
"isFlexCapable": "true"
},
"name": "SIM6",
"resourceType": "6500",
"serialNumber": "NNTMSIMP0001",
"softwareVersion": "13.0.0",
"subnetName": "",
"ipAddress": "10.182.244.6",
"deviceVersion": "6500 OPTICAL"
},
"type": "networkConstructs",
"id": "267de837-45d6-3fe9-9528-e19a6765b481"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 919
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "1.1.1.1_6.6.6.6_Auto_facility-2-
2002_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_Auto_facility-2-
2002_TE::EP0"
},
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_Auto_facility-2-
2002_TE::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2d5b56cf-6f2e-3436-a1bf-
776ceaec245b"
}
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "5420039198703853488"
},
{
"type": "fres",
"id": "-3937143407364792189"
},
{
"type": "fres",
"id": "6c66c638-7a81-31c2-8a47-
a6a0c480a7b7::FRE_1_EQPTGRP_41_MPLS_Auto_facility-2-
2002_transit_32775_32772_1.1.1.1"
}
]
}
},
"attributes": {
"additionalAttributes": {
"resiliency": "Normal",
"isActual": "true"
},
"userLabel": "Auto_facility-2-2002",
"signalContentType": "LSP",
"serviceClass": "Tunnel",
"topologySources": [
"discovered"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 920
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
],
"deploymentState": "discovered",
"derivedAttributes": {
"intentDeploymentState": "waiting to adopt",
"intentLifeCyclePhase": "adopting discovered"
},
"directionality": "unidirectional",
"identifiers": [
{
"nodalId": "1.1.1.1_6.6.6.6_Auto_facility-
2-2002_TE",
"networkConstructId": "2d5b56cf-6f2e-3436-
a1bf-776ceaec245b"
}
],
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacitySize": {
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps",
"size": [
"0.0"
]
},
"capacity": 1
}
],
"resourceState": "discovered",
"operationState": "In Service",
"displayData": {
"operationState": "Up",
"adminState": "Enabled",
"intentLifeCyclePhaseString": "Discovered"
},
"adminState": "In Service",
"mplsPackage": {
"direction": "unidirectional",
"destIp": "6.6.6.6",
"facilityBypass": true,
"signaled": true,
"subType": "TE",
"lspName": "Auto_facility-2-2002",
"bw": {
"bwMinKbps": "0",
"bwIncrKbps": "0",
"bwUsedKbps": "0",
"bwAutoSizeIntervalMinutes": "0",
"bwMaxKbps": "0",
"bwMode": "cac",
"bwAutoSize": "disable",
"bwAutoSizeFailureAction": "alarm"
},
"srcIp": "1.1.1.1",
"explicitRouteObject": [
"12.101.5.2",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 921
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"26.101.8.2"
],
"coRouted": false,
"ctrlPlaneId": "1.1.1.1_6.6.6.6_Auto_facility-
2-2002"
},
"layerRate": "MPLS",
"mgmtName": "Auto_facility-2-2002",
"policies": {
"defaultAttributeSourcePolicy":
"discoveredOverPlanned",
"overrides": [
{
"attributeName":
"attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"networkRole": "FREAP",
"active": true,
"bookingData": {
"bandwidthLockout": false
}
},
"type": "fres",
"id": "1.1.1.1_6.6.6.6_Auto_facility-2-2002_TE"
},
{
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "4.4.4.4_6.6.6.6_Auto_facility-2-
2001_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "4.4.4.4_6.6.6.6_Auto_facility-2-
2001_TE::EP0"
},
{
"type": "endPoints",
"id": "4.4.4.4_6.6.6.6_Auto_facility-2-
2001_TE::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "de94fa9a-060c-33f6-b852-
6c94d06308f2"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 922
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-7398221656540929317"
},
{
"type": "fres",
"id": "5420039198703853488"
}
]
}
},
"attributes": {
"additionalAttributes": {
"resiliency": "Normal",
"isActual": "true"
},
"userLabel": "Auto_facility-2-2001",
"signalContentType": "LSP",
"serviceClass": "Tunnel",
"topologySources": [
"discovered"
],
"deploymentState": "discovered",
"derivedAttributes": {
"intentDeploymentState": "waiting to adopt",
"intentLifeCyclePhase": "adopting discovered"
},
"directionality": "unidirectional",
"identifiers": [
{
"nodalId": "4.4.4.4_6.6.6.6_Auto_facility-
2-2001_TE",
"networkConstructId": "de94fa9a-060c-33f6-
b852-6c94d06308f2"
}
],
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacitySize": {
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps",
"size": [
"0.0"
]
},
"capacity": 1
}
],
"resourceState": "discovered",
"operationState": "In Service",
"displayData": {
"operationState": "Up",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 923
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"adminState": "Enabled",
"intentLifeCyclePhaseString": "Discovered"
},
"adminState": "In Service",
"mplsPackage": {
"direction": "unidirectional",
"destIp": "6.6.6.6",
"facilityBypass": true,
"signaled": true,
"subType": "TE",
"lspName": "Auto_facility-2-2001",
"bw": {
"bwMinKbps": "0",
"bwIncrKbps": "0",
"bwUsedKbps": "0",
"bwAutoSizeIntervalMinutes": "0",
"bwMaxKbps": "0",
"bwMode": "cac",
"bwAutoSize": "disable",
"bwAutoSizeFailureAction": "alarm"
},
"srcIp": "4.4.4.4",
"explicitRouteObject": [
"24.101.7.1",
"26.101.8.2"
],
"coRouted": false,
"ctrlPlaneId": "4.4.4.4_6.6.6.6_Auto_facility-
2-2001"
},
"layerRate": "MPLS",
"mgmtName": "Auto_facility-2-2001",
"policies": {
"defaultAttributeSourcePolicy":
"discoveredOverPlanned",
"overrides": [
{
"attributeName":
"attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"networkRole": "FREAP",
"active": true,
"bookingData": {
"bandwidthLockout": false
}
},
"type": "fres",
"id": "4.4.4.4_6.6.6.6_Auto_facility-2-2001_TE"
}
],
"data": {
"relationships": {
"freDiscovered": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 924
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"type": "freDiscovered",
"id": "1.1.1.1_6.6.6.6_anUni5to6_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_anUni5to6_TE::EP0"
},
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_anUni5to6_TE::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2d5b56cf-6f2e-3436-a1bf-776ceaec245b"
}
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-4592148412769551661"
},
{
"type": "fres",
"id": "6009473649510034634"
},
{
"type": "fres",
"id": "de94fa9a-060c-33f6-b852-
6c94d06308f2::FRE_1_EQPTGRP_41_MPLS_anUni5to6_transit_32773_32776_1.1.1.1"
}
]
}
},
"attributes": {
"resourceState": "discovered",
"displayData": {
"operationState": "Up",
"adminState": "Enabled",
"intentLifeCyclePhaseString": "Discovered"
},
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacitySize": {
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps",
"size": [
"0.1"
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 925
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
},
"capacity": 1
}
],
"mplsPackage": {
"direction": "unidirectional",
"destIp": "6.6.6.6",
"facilityBypass": false,
"signaled": true,
"subType": "TE",
"lspName": "anUni5to6",
"bw": {
"bwMinKbps": "10",
"bwIncrKbps": "10",
"bwUsedKbps": "0",
"bwAutoSizeIntervalMinutes": "0",
"bwMaxKbps": "100",
"bwMode": "cac",
"bwAutoSize": "enable",
"bwAutoSizeFailureAction": "alarm"
},
"srcIp": "1.1.1.1",
"explicitRouteObject": [
"14.101.3.1",
"14.101.3.2",
"46.101.11.2"
],
"coRouted": false,
"ctrlPlaneId": "1.1.1.1_6.6.6.6_anUni5to6"
},
"topologySources": [
"discovered"
],
"deploymentState": "discovered",
"userLabel": "anUni5to6",
"adminState": "In Service",
"bookingData": {
"bandwidthLockout": false
},
"derivedAttributes": {
"intentDeploymentState": "waiting to adopt",
"intentLifeCyclePhase": "adopting discovered"
},
"frrProtection": {
"activePath": [
{
"type": "fres",
"id": "-4592148412769551661"
},
{
"type": "fres",
"id": "6009473649510034634"
}
],
"protections": [
{
"networkConstruct": {
"type": "networkConstructs",
"id": "2d5b56cf-6f2e-3436-a1bf-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 926
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
776ceaec245b"
},
"ip": "14.101.3.1",
"bwProtected": false,
"protectionFbName": "Auto_facility-2-2002",
"protectionInUse": false,
"protectionFb": {
"type": "fres",
"id": "1.1.1.1_6.6.6.6_Auto_facility-2-
2002_TE"
},
"protectionAvailable": true,
"protectionType": "node-protect"
},
{
"networkConstruct": {
"type": "networkConstructs",
"id": "de94fa9a-060c-33f6-b852-
6c94d06308f2"
},
"ip": "14.101.3.2",
"bwProtected": false,
"protectionFbName": "Auto_facility-2-2001",
"protectionInUse": false,
"protectionFb": {
"type": "fres",
"id": "4.4.4.4_6.6.6.6_Auto_facility-2-
2001_TE"
},
"protectionAvailable": true,
"protectionType": "link-protect"
},
{
"ip": "46.101.11.2",
"bwProtected": false,
"networkConstruct": {
"type": "networkConstructs",
"id": "267de837-45d6-3fe9-9528-
e19a6765b481"
},
"protectionInUse": false,
"protectionType": "none"
}
],
"primaryPath": [
{
"type": "fres",
"id": "-4592148412769551661"
},
{
"type": "fres",
"id": "6009473649510034634"
}
]
},
"serviceClass": "Tunnel",
"mgmtName": "anUni5to6",
"layerRate": "MPLS",
"active": true,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 927
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"additionalAttributes": {
"resiliency": "Protected",
"isActual": "true"
},
"signalContentType": "LSP",
"identifiers": [
{
"nodalId": "1.1.1.1_6.6.6.6_anUni5to6_TE",
"networkConstructId": "2d5b56cf-6f2e-3436-a1bf-
776ceaec245b"
}
],
"directionality": "unidirectional",
"operationState": "In Service",
"networkRole": "FREAP",
"policies": {
"defaultAttributeSourcePolicy":
"discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
}
},
"type": "frrProtections",
"id": "1.1.1.1_6.6.6.6_anUni5to6_TE"
}
},
"operationName": "getUnidirTunnelProtectionInfo",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-05-31T17:42:10.762Z",
"createdAt": "2018-05-31T17:41:11.013Z",
"autoClean": false
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 928
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Similarly, you can use an AsyncTask to retrieve the set of FRR tunnels that are being protected by a given
FB tunnel.
Input:
Output:
• data
◦ A list of protected unidirectional FRR tunnel FREs
POST {BP_SERVER}/bpocore/market/api/v1/resources
sample body
Sample reponse
{
"id": "5b10356b-9110-45a9-89d0-77febabad4ec",
"label": "getFbProtectedTunnels956",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b0efc15-a4f4-4df3-a2d8-078f80e2433e",
"tenantId": "ec5d7efe-9e19-4503-8402-b0fc8b78ba8c",
"shared": false,
"properties": {
"objectId": "4.4.4.4_6.6.6.6_Auto_facility-2-2001_TE",
"operationName": "getFbProtectedTunnels",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "requested",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-05-31T17:48:27.618Z",
"createdAt": "2018-05-31T17:48:27.618Z",
"autoClean": false
You can retrieve the AsyncTask execution result with the following call:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 929
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
GET {BP_SERVER}/bpocore/market/api/v1/resources/5b1028cf-b3c7-4d6e-a4dd-de9199bfb0d9
Sample response
{
"items": [
{
"id": "5b103ae6-983b-4673-a6fa-40bf68d9d060",
"label": "getFbProtectedTunnels956",
"resourceTypeId": "ifd.v5.resourceTypes.AsyncTask",
"productId": "5b06566a-5e7f-40ec-b9c2-463c5ae83156",
"tenantId": "89a13712-c857-4364-b7e8-ec30d37861af",
"shared": false,
"properties": {
"startTime": "2018-05-31T18:11:51.488273+0000",
"state": "completed",
"stateData": {
"state": "completed",
"freId": "1.1.1.1_4.4.4.4_Auto_facility-47-2008_TE",
"startTime": "2018-05-31 18:11:51.491552+00:00"
},
"endTime": "2018-05-31T18:12:35.603145+0000",
"objectId": "1.1.1.1_4.4.4.4_Auto_facility-47-2008_TE",
"maximumTime": 30,
"output": {
"data": [
{
"relationships": {
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-lpbk_TE"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-
lpbk_TE::EP0"
},
{
"type": "endPoints",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-
lpbk_TE::EP1"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "2d5b56cf-6f2e-3436-a1bf-
776ceaec245b"
}
},
"partitionFres": {
"data": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 930
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"type": "fres",
"id": "67a42211-14f0-34ad-96f1-
1b6158782303::FRE_1_EQPTGRP_41_MPLS_K1-Ucons-lpbk_transit_32779_32826_1.1.1.1"
},
{
"type": "fres",
"id": "6009473649510034634"
},
{
"type": "fres",
"id": "de94fa9a-060c-33f6-b852-
6c94d06308f2::FRE_1_EQPTGRP_41_MPLS_K1-Ucons-lpbk_transit_32826_32786_1.1.1.1"
},
{
"type": "fres",
"id": "6236978574003829479"
},
{
"type": "fres",
"id": "-406428413080187401"
}
]
}
},
"attributes": {
"additionalAttributes": {
"resiliency": "Protected",
"isActual": "true"
},
"userLabel": "K1-Ucons-lpbk",
"signalContentType": "LSP",
"serviceClass": "Tunnel",
"topologySources": [
"discovered"
],
"deploymentState": "discovered",
"derivedAttributes": {
"intentDeploymentState": "waiting to adopt",
"intentLifeCyclePhase": "adopting discovered"
},
"directionality": "unidirectional",
"identifiers": [
{
"nodalId": "1.1.1.1_6.6.6.6_K1-Ucons-
lpbk_TE",
"networkConstructId": "2d5b56cf-6f2e-3436-
a1bf-776ceaec245b"
}
],
"maxReservableBandwidth": [
{
"layer": "ETHERNET",
"capacitySize": {
"pattern": {
"type": "POOL",
"format": "number"
},
"unit": "mbps",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 931
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"size": [
"2.0"
]
},
"capacity": 1
}
],
"resourceState": "discovered",
"operationState": "In Service",
"displayData": {
"operationState": "Up",
"adminState": "Enabled",
"intentLifeCyclePhaseString": "Discovered"
},
"adminState": "In Service",
"mplsPackage": {
"direction": "unidirectional",
"destIp": "6.6.6.6",
"facilityBypass": false,
"signaled": true,
"subType": "TE",
"lspName": "K1-Ucons-lpbk",
"bw": {
"bwMinKbps": "2000",
"bwIncrKbps": "2",
"bwUsedKbps": "0",
"bwAutoSizeIntervalMinutes": "8",
"bwMaxKbps": "2000",
"bwMode": "cac",
"bwAutoSize": "enable",
"bwAutoSizeFailureAction": "alarm"
},
"srcIp": "1.1.1.1",
"explicitRouteObject": [
"13.101.2.1",
"13.101.2.2",
"34.101.10.2",
"46.101.11.2"
],
"coRouted": false,
"ctrlPlaneId": "1.1.1.1_6.6.6.6_K1-Ucons-lpbk"
},
"layerRate": "MPLS",
"mgmtName": "K1-Ucons-lpbk",
"policies": {
"defaultAttributeSourcePolicy":
"discoveredOverPlanned",
"overrides": [
{
"attributeName":
"attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"networkRole": "FREAP",
"active": true,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 932
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"bookingData": {
"bandwidthLockout": false
}
},
"type": "fres",
"id": "1.1.1.1_6.6.6.6_K1-Ucons-lpbk_TE"
}
]
},
"operationName": "getFbProtectedTunnels",
"input": {}
},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {
"templateResources": {}
},
"updatedAt": "2018-05-31T18:12:35.661Z",
"createdAt": "2018-05-31T18:11:51.001Z",
"autoClean": false
}
],
"total": 1,
"offset": 0,
"limit": 1000
}
Note: This operation will fail if executed on an LSP that has been configured as "Never optimize".
GET
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 933
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v2.resourceTypes.MplsOperationCon
tainer
Sample request
GET
{{BP_SERVER}}/bpocore/market/api/v1/resources?exactTypeId=ifd.v2.resourceTypes.MplsOperationCon
tainer
Sample response
{
"items": [
{
"id": "5955a92c-a8fa-4337-9036-875eafe449c2",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:13.249Z",
"createdAt": "2018-01-30T01:28:12.558Z",
"autoClean": false
},
{
"id": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:15.786Z",
"createdAt": "2018-01-30T01:28:14.392Z",
"autoClean": false
},
{
"id": "5955a92f-219f-440b-8be1-a1507bda8e83",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 934
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:17.995Z",
"createdAt": "2018-01-30T01:28:16.443Z",
"autoClean": false
},
{
"id": "5955a933-0811-4e98-9676-1b243e3b5c59",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:21.620Z",
"createdAt": "2018-01-30T01:28:19.593Z",
"autoClean": false
},
{
"id": "5955a936-cfe0-4c4d-9a03-bdbde2ecaf09",
"label": "Resource for ifd.v2.resourceTypes.MplsOperationContainer",
"resourceTypeId": "ifd.v2.resourceTypes.MplsOperationContainer",
"productId": "5955a910-5b13-4c6f-b8bc-32a5b80662ae",
"tenantId": "748d7633-80b7-4d1a-98e5-aa27e38ccdb3",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2018-01-30T01:28:23.742Z",
"createdAt": "2018-01-30T01:28:22.469Z",
"autoClean": false
}
],
"total": 5,
"offset": 0,
"limit": 1000
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 935
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
In the response, note the list of MplsOperationContainer resources. Every resource in the response has an
attribute named "id".
You can choose one resource from the returned list, and use the value of the id property to execute the
tunnel reoptimization.
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations
Sample request
POST {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations
{
"interface": "reoptimize",
"inputs": {
"freId": "6515318274086203180"
}
}
Parameter Description
Sample response
{
"id": "5956d1d6-d0e1-45d7-a636-587815eb9736",
"resourceId": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"interface": "reoptimize",
"inputs": {
"freId": "6515318274086203180"
},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2018-01-30T22:33:58.889Z",
"updatedAt": "2018-01-30T22:33:58.889Z",
"resourceStateConstraints": {}
}
Note: The “id” in the response (above) is the reoptimize operation id.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 936
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
Retrieve the status of the optimization using the following API call:
{{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations/{{OID}}
• RID is the MplsOperationContainer resource ID used as part of executing the reoptimize operation.
• OID is the operation ID generated as part of tunnel group reoptimize operation.
Sample Request
GET {{BP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations/{{OID}}
Sample Response
{
"id": "5956d1d6-d0e1-45d7-a636-587815eb9736",
"resourceId": "5955a92d-1f6a-4b41-aa36-8019be2dfd84",
"interface": "reoptimize",
"inputs": {
"freId": "-3770626729195966017"
},
"outputs": {},
"state": "successful",
"reason": "",
"createdAt": "2018-01-30T22:33:58.889Z",
"updatedAt": "2018-01-30T22:34:04.846Z",
"resourceStateConstraints": {}
}
MCP supports the creation, editing, and deletion of FRR profiles on SAOS 6.x and 8700 devices using the
REST API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 937
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
To create an FRR profile, use the Configuration Management (configmgmt) API. As part of the API call to
create the profile, provide the values described in the table below.
Sample request
POST {{BP_SERVER}}/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 938
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "frrProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "create",
"frrProfileName": "fr_test1",
"setupPriority": 3,
"holdPriority": 4,
"hopLimit": 100,
"bandwidth": 1000,
"bwProtection": "yes",
"nodeProtection": "yes",
"protectionMethod": "detour",
"colourGroupIncludeAny": 10,
"colourGroupIncludeAll": 11,
"colourGroupExcludeAny": 12
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 939
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The action in this case is "update", and you must provide the values to configure the FRR profile including
the new values you are setting.
Sample request
POST {{BP_SERVER}}/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 940
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "frrProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "update",
"frrProfileName": "fr_test1",
"setupPriority": 3,
"holdPriority": 4,
"hopLimit": 100,
"bandwidth": 1000,
"bwProtection": "yes",
"nodeProtection": "yes",
"protectionMethod": "detour",
"colourGroupIncludeAny": 10,
"colourGroupIncludeAll": 11,
"colourGroupExcludeAny": 12
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 941
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
The action in this case is "delete", and you must provide the name of the FRR profile you are deleting.
Sample request
POST {{BP_SERVER}}/configmgmt/api/v1/jobs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 942
Blue Planet MCP API Reference Guide, Release 18.06 Packet service management
{
"data": {
"type": "jobs",
"attributes": {
"maxConnections": "10",
"scheduleTime": "2017-05-13T04:31:28.211+0000",
"scripts": [
{
"scriptName": "frrProfileConfig",
"inputs": [
{
"data": [
{
"attributes": {
"action": "delete",
"frrProfileName": "fr_test1"
}
}
]
}
]
}
]
},
"relationships": {
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "{{MANAGEMENT_SESSION_ID}}"
}
]
}
}
},
"included": [
{
"id": "{{MANAGEMENT_SESSION_ID}}",
"type": "networkElement",
"attributes": {
"ncId": "{{MANAGEMENT_SESSION_ID}}",
"neName": "{{NE_NAME}}",
"ipAddress": "{{NE_IP_ADDRESS}}",
"neType": "{{NE_TYPE}}"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 943
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Note: The IFD API version numbers (for example, “v2” in “ifd.v2.resourceTypes”) that appear in this
chapter do not necessarily reflect the IFD API version numbers associated with this current Blue Planet
MCP release. They are provided only as an example. IFD API version numbers may be higher than those
shown in this chapter. For a list of supported releases and their related version numbers, see the
"Versioning" section in the MCP REST API overview chapter.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 944
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Requirements
• have the required parameter. In your request, you must specify at least one of the following
parameters:
◦ tpeId
◦ networkConstruct.id
◦ ncId (Deprecated)
◦ group
◦ freExpectations.serviceIntent.id
◦ freExpectations.equipmentIntent.id
◦ childFreId
◦ endpoint.tpe.concrete
◦ identifiers
• identify one, or more FREs for which to retrieve optical power data, for example,
-8032246870464230076.
Sample request
GET {{MCP_SERVER}}/nsi/api/fres
Sample response
{
"meta": {
"total": 7,
"aggregations": []
},
"links": {},
"data": [
{
"id": "-8562028732694322491",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTU4",
"networkRole": "FREAP",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 945
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"directionality": "bidirectional",
"userData": {
"ossLabel": "line_0210"
},
"identifiers": [
{
"ossLabel": "line_0210"
}
],
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-8562028732694322491:1"
},
{
"type": "endPoints",
"id": "-8562028732694322491:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-5579483252134356916"
}
]
}
}
},
{
"id": "-8032246870464230076",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTU4",
"networkRole": "FREAP",
"directionality": "bidirectional",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "8032246870464230076:1"
},
{
"type": "endPoints",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 946
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "8032246870464230076:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "2953964013045314283"
}
]
}
}
},
{
"id": "8437235193544607970",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTU4",
"networkRole": "FREAP",
"directionality": "bidirectional",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "8437235193544607970:1"
},
{
"type": "endPoints",
"id": "8437235193544607970:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-4431525917090832543"
}
]
}
}
},
{
"id": "3539955230191161553",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTU4",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 947
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"networkRole": "FREAP",
"directionality": "bidirectional",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "3539955230191161553:1"
},
{
"type": "endPoints",
"id": "3539955230191161553:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "4816616886895359187"
}
]
}
}
},
{
"id": "3c27dfba-1bf5-4af5-a9ee-aa2443c3a8e5",
"type": "fres",
"attributes": {
"userLabel": "1026",
"nativeName": "SNC0-15-1026",
"layerRate": "OTSi",
"networkRole": "IFRE",
"directionality": "bidirectional",
"operationState": "fully operating",
"controlActivityState": "activating",
"modelType": "controlPlane",
"identifiers": [
{
"incarnation": "1",
"circuitId": "PV0210FGA_SNC0-11-2"
},
{
"networkConstructId": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7",
"nodalId": "OSRP0-15-1::SNC0-15-1026"
}
],
"freType": "snc",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 948
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"type": "endPoints",
"id": "PV0210FGD::SNC0-15-1026:local"
},
{
"type": "endPoints",
"id": "PV0210FGA::SNC0-15-1026:remote"
}
]
},
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "c02d80b3-a793-4fc8-8c5d-04ed4e2259f3"
}
}
}
},
{
"id": "64247e32-edb9-459e-be87-f5cc44360d71",
"type": "fres",
"attributes": {
"userLabel": "1025",
"nativeName": "SNC0-15-1025",
"layerRate": "OTSi",
"networkRole": "IFRE",
"directionality": "bidirectional",
"operationState": "fully operating",
"controlActivityState": "activating",
"modelType": "controlPlane",
"identifiers": [
{
"incarnation": "1",
"circuitId": "PV0210FGA_SNC0-11-1"
},
{
"networkConstructId": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7",
"nodalId": "OSRP0-15-1::SNC0-15-1025"
}
],
"freType": "snc",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "PV0210FGD::SNC0-15-1025:local"
},
{
"type": "endPoints",
"id": "PV0210FGA::SNC0-15-1025:remote"
}
]
},
"networkConstruct": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 949
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"data": {
"type": "networkConstructs",
"id": "c02d80b3-a793-4fc8-8c5d-04ed4e2259f3"
}
}
}
},
{
"id": "-1884506336637256749",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "DSR_ETHERNET",
"networkRole": "IFRE",
"directionality": "bidirectional",
"additionalAttributes": {
"isActual": "true"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-1884506336637256749:1"
},
{
"type": "endPoints",
"id": "-1884506336637256749:2"
}
]
},
"partitionFres": {
"data": [
{
"type": "fres",
"id": "-1747614666174387782"
}
]
}
}
}
],
"included": [
{
"id": "-8562028732694322491:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa::TPE_16ccf074-3620-3f70-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 950
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
904c-fb72e5bb54fa::EQPT_11_37-1-PTP"
}
]
}
}
},
{
"id": "-8562028732694322491:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7::TPE_a2c36396-1c5f-3108-
84b6-ed97c1fc52b7::EQPT_15_36-1-PTP"
}
]
}
}
},
{
"id": "-7607509881844076435:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::TPE_153879ff-2c37-3d17-
9d5c-c5f02e25fd6b::EQPT_15_18-1-PTP"
}
]
}
}
},
{
"id": "-7607509881844076435:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::TPE_aa5580f5-aa3c-36b5-
8172-dcaf0fbcf2e5::EQPT_11_18-1-PTP"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 951
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
]
}
}
},
{
"id": "8437235193544607970:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa::TPE_16ccf074-3620-3f70-
904c-fb72e5bb54fa::EQPT_11_21-1-PTP"
}
]
}
}
},
{
"id": "8437235193544607970:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7::TPE_a2c36396-1c5f-3108-
84b6-ed97c1fc52b7::EQPT_15_11-1-PTP"
}
]
}
}
},
{
"id": "3539955230191161553:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::TPE_153879ff-2c37-3d17-
9d5c-c5f02e25fd6b::EQPT_15_11-1-PTP"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 952
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
}
},
{
"id": "3539955230191161553:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::TPE_aa5580f5-aa3c-36b5-
8172-dcaf0fbcf2e5::EQPT_11_21-1-PTP"
}
]
}
}
},
{
"id": "PV0210FGD::SNC0-15-1026:local",
"type": "endPoints",
"attributes": {
"role": "a"
},
"relationships": {}
},
{
"id": "PV0210FGA::SNC0-15-1026:remote",
"type": "endPoints",
"attributes": {
"role": "z"
},
"relationships": {}
},
{
"id": "PV0210FGD::SNC0-15-1025:local",
"type": "endPoints",
"attributes": {
"role": "a"
},
"relationships": {}
},
{
"id": "PV0210FGA::SNC0-15-1025:remote",
"type": "endPoints",
"attributes": {
"role": "z"
},
"relationships": {}
},
{
"id": "-1884506336637256749:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 953
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::TPE_153879ff-2c37-3d17-
9d5c-c5f02e25fd6b::EQPT_15_12_1-PTP"
}
]
}
}
},
{
"id": "-1884506336637256749:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::TPE_aa5580f5-aa3c-36b5-
8172-dcaf0fbcf2e5::EQPT_11_22_1-PTP"
}
]
}
}
},
{
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa::TPE_16ccf074-3620-3f70-904c-
fb72e5bb54fa::EQPT_11_37-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "11",
"slot": "37",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa::EQPT_11_37"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 954
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
}
}
},
{
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7::TPE_a2c36396-1c5f-3108-84b6-
ed97c1fc52b7::EQPT_15_36-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "15",
"slot": "36",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7::EQPT_15_36"
}
}
}
},
{
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::TPE_153879ff-2c37-3d17-9d5c-
c5f02e25fd6b::EQPT_15_18-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "15",
"slot": "18",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::EQPT_15_18"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 955
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
}
}
}
},
{
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::TPE_aa5580f5-aa3c-36b5-8172-
dcaf0fbcf2e5::EQPT_11_18-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "11",
"slot": "18",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::EQPT_11_18"
}
}
}
},
{
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa::TPE_16ccf074-3620-3f70-904c-
fb72e5bb54fa::EQPT_11_21-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "11",
"slot": "21",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa"
}
},
"equipment": {
"data": {
"type": "equipment",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 956
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "16ccf074-3620-3f70-904c-fb72e5bb54fa::EQPT_11_21"
}
}
}
},
{
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7::TPE_a2c36396-1c5f-3108-84b6-
ed97c1fc52b7::EQPT_15_11-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "15",
"slot": "11",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "a2c36396-1c5f-3108-84b6-ed97c1fc52b7::EQPT_15_11"
}
}
}
},
{
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::TPE_153879ff-2c37-3d17-9d5c-
c5f02e25fd6b::EQPT_15_11-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "15",
"slot": "11",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b"
}
},
"equipment": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 957
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "equipment",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::EQPT_15_11"
}
}
}
},
{
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::TPE_aa5580f5-aa3c-36b5-8172-
dcaf0fbcf2e5::EQPT_11_21-1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "11",
"slot": "21",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::EQPT_11_21"
}
}
}
},
{
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::TPE_153879ff-2c37-3d17-9d5c-
c5f02e25fd6b::EQPT_15_12_1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "15",
"slot": "12",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b"
}
},
"equipment": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 958
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"data": {
"type": "equipment",
"id": "153879ff-2c37-3d17-9d5c-c5f02e25fd6b::EQPT_15_12_1"
}
}
}
},
{
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::TPE_aa5580f5-aa3c-36b5-8172-
dcaf0fbcf2e5::EQPT_11_22_1-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"locations": [
{
"managementType": "tl1",
"shelf": "11",
"slot": "22",
"port": "1"
}
]
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "aa5580f5-aa3c-36b5-8172-dcaf0fbcf2e5::EQPT_11_22_1"
}
}
}
}
]
}
Channel power
To retrieve real-time optical power (Channel) from all power reporting endpoints in the service path, use
the Test and diagnostics API.
Requirements
Before you start, you must have identified one, or more FREs for which to retrieve optical power data, for
example, -8032246870464230076.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 959
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
POST {{MCP_SERVER}}/tdc/api/vi/diag/powers
{
"data": {
"freIds": [
"-8032246870464230076"
],
"pmType": "CHANNEL_POWER",
"synchronous": true,
"pollInterval": 0
}
Sample response
{
"data": {
"id": "1beeb3ac-0bb9-4973-8347-4b2619c25879" ,
"type": "pmDiagnostics" ,
"attributes": {
"timeStamp": "2017-02-23T20:56:54.397Z" ,
"pmType": "CHANNEL_POWER" ,
"pmTpes": [
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_11_36-1-PTP" ,
"isReporting": g true ,
"reportingFacility": "OTM4-11-36-1" ,
"pmReadings": [
{
"binType": "24_HOUR" ,
"parameter": "RX_CHANNEL_POWER_AVG" ,
"parameterNative": "OPRAVG-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPRMAX-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_CHANNEL_POWER_MIN" ,
"parameterNative": "OPRMIN-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_AVG" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 960
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"parameterNative": "OPTAVG-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPTMAX-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MIN" ,
"parameterNative": "OPTMIN-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "UNTIMED" ,
"parameter": "RX_CHANNEL_POWER" ,
"parameterNative": "OPR-OCH" ,
"value": "-10.7" ,
"time": "2017-02-23T20:56-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_CHANNEL_POWER" ,
"parameterNative": "OPT-OCH" ,
"value": "-14.1" ,
"time": "2017-02-23T20:56-00:00" ,
"binState": "PARTIAL"
}
]
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-6-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_1-6-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-7-PTP" ,
"isReporting": g true ,
"reportingFacility": "NMCMON-15-1-7-193700000" ,
"pmReadings": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 961
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_AVG" ,
"parameterNative": "OPTAVG-OCH" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPTMAX-OCH" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MIN" ,
"parameterNative": "OPTMIN-OCH" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_CHANNEL_POWER" ,
"parameterNative": "OPT-OCH" ,
"value": "0" ,
"time": "2017-02-09T16:37-00:00" ,
"binState": "NOT AVAILABLE"
}
],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_1-7-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_2-7-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_2-7-7-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 962
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
a8e5-ac0432fcddb2::EQPT_15_2-7-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_2-7-7-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-26-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_4-26-1-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-25-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_4-25-1-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_2-9-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_2-9-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-1-PTP" ,
"isReporting": g true ,
"reportingFacility": "OPTMON-15-4-1" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 963
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"pmReadings": [
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_AVG" ,
"parameterNative": "OPRAVG-OTS" ,
"value": "-7.6" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPRMAX-OTS" ,
"value": "-5.6" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPRMIN-OTS" ,
"value": "-9.6" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "UNTIMED" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPR-OTS" ,
"value": "-7.6" ,
"time": "2017-02-03T17:11-00:00" ,
"binState": "COMPLETED"
}
],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_4-1-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-5-PTP" ,
"isReporting": g true ,
"reportingFacility": "NMCMON-15-1-5-193700000" ,
"pmReadings": [
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_AVG" ,
"parameterNative": "OPTAVG-OCH" ,
"value": "-37.25" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 964
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPTMAX-OCH" ,
"value": "-34.8" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MIN" ,
"parameterNative": "OPTMIN-OCH" ,
"value": "-39.7" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_CHANNEL_POWER" ,
"parameterNative": "OPT-OCH" ,
"value": "-36.6" ,
"time": "2017-02-09T16:37-00:00" ,
"binState": "COMPLETED"
}
],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_1-5-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-7-PTP" ,
"isReporting": g true ,
"reportingFacility": "NMCMON-12-1-7-193700000" ,
"pmReadings": [
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_AVG" ,
"parameterNative": "OPTAVG-OCH" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPTMAX-OCH" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MIN" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 965
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"parameterNative": "OPTMIN-OCH" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_CHANNEL_POWER" ,
"parameterNative": "OPT-OCH" ,
"value": "0" ,
"time": "2017-02-09T16:37-00:00" ,
"binState": "NOT AVAILABLE"
}
],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_1-7-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-5-PTP" ,
"isReporting": g true ,
"reportingFacility": "NMCMON-12-1-5-193700000" ,
"pmReadings": [
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_AVG" ,
"parameterNative": "OPTAVG-OCH" ,
"value": "-37.25" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPTMAX-OCH" ,
"value": "-34.8" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MIN" ,
"parameterNative": "OPTMIN-OCH" ,
"value": "-39.7" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_CHANNEL_POWER" ,
"parameterNative": "OPT-OCH" ,
"value": "0" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 966
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"time": "2017-02-09T16:37-00:00" ,
"binState": "NOT AVAILABLE"
}
],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_1-5-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_2-9-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_2-9-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-25-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_4-25-1-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-26-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_4-26-1-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-8-PTP" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 967
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_1-8-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-1-PTP" ,
"isReporting": g true ,
"reportingFacility": "OPTMON-12-4-1" ,
"pmReadings": [
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_AVG" ,
"parameterNative": "OPRAVG-OTS" ,
"value": "-7.6" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPRMAX-OTS" ,
"value": "-5.6" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPRMIN-OTS" ,
"value": "-9.6" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "UNTIMED" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPR-OTS" ,
"value": "0" ,
"time": "2017-02-03T17:11-00:00" ,
"binState": "NOT AVAILABLE"
}
],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_4-1-CTPServerToClient-193.700000"
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 968
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_21-1-PTP" ,
"isReporting": g true ,
"reportingFacility": "OTM4-15-21-1" ,
"pmReadings": [
{
"binType": "24_HOUR" ,
"parameter": "RX_CHANNEL_POWER_AVG" ,
"parameterNative": "OPRAVG-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPRMAX-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_CHANNEL_POWER_MIN" ,
"parameterNative": "OPRMIN-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_AVG" ,
"parameterNative": "OPTAVG-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MAX" ,
"parameterNative": "OPTMAX-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_CHANNEL_POWER_MIN" ,
"parameterNative": "OPTMIN-OCH" ,
"value": "0" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "UNTIMED" ,
"parameter": "RX_CHANNEL_POWER" ,
"parameterNative": "OPR-OCH" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 969
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"value": "-15.6" ,
"time": "2017-02-23T20:56-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_CHANNEL_POWER" ,
"parameterNative": "OPT-OCH" ,
"value": "-11.9" ,
"time": "2017-02-23T20:56-00:00" ,
"binState": "PARTIAL"
}
]
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-2-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_4-2-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-8-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_1-8-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-2-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_4-2-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_2-10-PTP" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 970
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-
37c7-a8cb-6d71cf89e81e::EQPT_12_2-10-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_2-10-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_2-10-CTPServerToClient-193.700000"
}
}
}
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-6-PTP" ,
"pmReadings": [],
"relationships": {
"measurementpointTpes": {
"data": {
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-
318e-a8e5-ac0432fcddb2::EQPT_15_1-6-CTPServerToClient-193.700000"
}
}
}
}
],
"diagResults": {}
},
"relationships": {
"fres": {
"data": [
{
"type": "fres" ,
"id": "-8032246870464230076"
}
]
},
"tpes": {
"data": [
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_11_36-1-PTP"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 971
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-6-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-7-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_2-7-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_2-7-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-26-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-25-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_2-9-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-1-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-5-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-7-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-5-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_2-9-PTP"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 972
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-25-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-26-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-8-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-1-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_21-1-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-2-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_1-8-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-2-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_2-10-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_2-10-PTP"
},
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_1-6-PTP"
}
]
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 973
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
}cb1
}
Total power
To retrieve real-time optical power (Total power) from all power reporting endpoints in the service path,
you use the Test and diagnostics API.
Requirements
Before you start, you must have identified one, or more FREs for which to retrieve optical power data, for
example, -8032246870464230076.
Sample request
POST {{MCP_SERVER}}/tdc/api/vi/diag/powers
{
"data": {
"freIds": [
"-8032246870464230076"
],
"pmType": "TOTAL_POWER",
"synchronous": true,
"pollInterval": 0
}
Sample response
{
"data": {
"id": "210ab8af-ae4f-43cf-8aee-7b1b48713764" ,
"type": "pmDiagnostics" ,
"attributes": {
"timeStamp": "2017-02-23T21:06:15.499Z" ,
"pmType": "TOTAL_POWER" ,
"pmTpes": [
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_11_36-1-PTP" ,
"pmReadings": []
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-2-PTP" ,
"pmReadings": []
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 974
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
a8e5-ac0432fcddb2::EQPT_15_1-6-PTP" ,
"isReporting": g true ,
"reportingFacility": "AMP-15-1-6" ,
"pmReadings": [
{
"binType": "UNTIMED" ,
"parameter": "OPTICAL_RETURN_LOSS" ,
"parameterNative": "ORL-OTS" ,
"value": "48" ,
"time": "2017-02-03T17:11-00:00" ,
"threshold": "22" ,
"binState": "COMPLETED" ,
"alert": "false"
},
{
"binType": "UNTIMED" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPIN-OTS" ,
"value": "OOR" ,
"time": "2017-02-03T17:11-00:00" ,
"threshold": "6" ,
"binState": "COMPLETED" ,
"alert": "true"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_OPTICAL_POWER" ,
"parameterNative": "OPOUT-OTS" ,
"value": "OOR" ,
"time": "2017-02-03T17:11-00:00" ,
"threshold": "6" ,
"binState": "COMPLETED" ,
"alert": "true"
},
{
"binType": "BASELINE" ,
"parameter": "OPTICAL_RETURN_LOSS" ,
"parameterNative": "ORL-OTS" ,
"value": "0" ,
"time": "2017-01-01T00:00-00:00" ,
"binState": "NOT AVAILABLE"
},
{
"binType": "BASELINE" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPIN-OTS" ,
"value": "0" ,
"time": "2017-01-01T00:00-00:00" ,
"binState": "NOT AVAILABLE"
},
{
"binType": "BASELINE" ,
"parameter": "TX_OPTICAL_POWER" ,
"parameterNative": "OPOUT-OTS" ,
"value": "0" ,
"time": "2017-01-01T00:00-00:00" ,
"binState": "NOT AVAILABLE"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 975
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_AVG" ,
"parameterNative": "OPOUTAVG-OTS" ,
"value": "-50" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPOUTMIN-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "OPTICAL_RETURN_LOSS_MAX" ,
"parameterNative": "ORLMAX-OTS" ,
"value": "48" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_AVG" ,
"parameterNative": "OPINAVG-OTS" ,
"value": "-64" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "OPTICAL_RETURN_LOSS_AVG" ,
"parameterNative": "ORLAVG-OTS" ,
"value": "48" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "OPTICAL_RETURN_LOSS_MIN" ,
"parameterNative": "ORLMIN-OTS" ,
"value": "48" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPINMIN-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPINMAX-OTS" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 976
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"value": "-50" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPOUTMAX-OTS" ,
"value": "-50" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
}
]
},
{
"tpeId": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-25-PTP" ,
"isReporting": g true ,
"reportingFacility": "AMP-12-4-25" ,
"pmReadings": [
{
"binType": "UNTIMED" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPIN-OTS" ,
"value": "0" ,
"time": "2017-02-03T17:10-00:00" ,
"threshold": "6" ,
"binState": "NOT AVAILABLE" ,
"alert": "false"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_OPTICAL_POWER" ,
"parameterNative": "OPOUT-OTS" ,
"value": "0" ,
"time": "2017-02-03T17:10-00:00" ,
"threshold": "6" ,
"binState": "NOT AVAILABLE" ,
"alert": "false"
},
{
"binType": "BASELINE" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPIN-OTS" ,
"value": "0" ,
"time": "2017-01-01T00:00-00:00" ,
"binState": "NOT AVAILABLE"
},
{
"binType": "BASELINE" ,
"parameter": "TX_OPTICAL_POWER" ,
"parameterNative": "OPOUT-OTS" ,
"value": "0" ,
"time": "2017-01-01T00:00-00:00" ,
"binState": "NOT AVAILABLE"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_AVG" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 977
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"parameterNative": "OPOUTAVG-OTS" ,
"value": "-50" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPOUTMIN-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_AVG" ,
"parameterNative": "OPINAVG-OTS" ,
"value": "-64" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPINMIN-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPINMAX-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPOUTMAX-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "ADJUSTED"
}
]
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-25-PTP" ,
"isReporting": g true ,
"reportingFacility": "AMP-15-4-25" ,
"pmReadings": [
{
"binType": "UNTIMED" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPIN-OTS" ,
"value": "OOR" ,
"time": "2017-02-03T17:11-00:00" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 978
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"threshold": "6" ,
"binState": "COMPLETED" ,
"alert": "true"
},
{
"binType": "UNTIMED" ,
"parameter": "TX_OPTICAL_POWER" ,
"parameterNative": "OPOUT-OTS" ,
"value": "OOR" ,
"time": "2017-02-03T17:11-00:00" ,
"threshold": "6" ,
"binState": "COMPLETED" ,
"alert": "true"
},
{
"binType": "BASELINE" ,
"parameter": "RX_OPTICAL_POWER" ,
"parameterNative": "OPIN-OTS" ,
"value": "0" ,
"time": "2017-01-01T00:00-00:00" ,
"binState": "NOT AVAILABLE"
},
{
"binType": "BASELINE" ,
"parameter": "TX_OPTICAL_POWER" ,
"parameterNative": "OPOUT-OTS" ,
"value": "0" ,
"time": "2017-01-01T00:00-00:00" ,
"binState": "NOT AVAILABLE"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_AVG" ,
"parameterNative": "OPOUTAVG-OTS" ,
"value": "-50" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPOUTMIN-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_AVG" ,
"parameterNative": "OPINAVG-OTS" ,
"value": "-64" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MIN" ,
"parameterNative": "OPINMIN-OTS" ,
"value": "OOR" ,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 979
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "RX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPINMAX-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
},
{
"binType": "24_HOUR" ,
"parameter": "TX_OPTICAL_POWER_MAX" ,
"parameterNative": "OPOUTMAX-OTS" ,
"value": "OOR" ,
"time": "2017-02-23T00:00-00:00" ,
"binState": "PARTIAL"
}
]
},
{
"tpeId": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_21-1-PTP" ,
"pmReadings": []
}
],
"diagResults": {}
},
"relationships": {
"fres": {
"data": [
{
"type": "fres" ,
"id": "-8032246870464230076"
}
]
},
"tpes": {
"data": [
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_11_36-1-PTP"
},
{
"type": "tpes" ,
"id": "436911e8-da9a-37c7-a8cb-6d71cf89e81e::TPE_436911e8-da9a-37c7-
a8cb-6d71cf89e81e::EQPT_12_4-2-PTP"
},
...
{
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_4-25-PTP"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 980
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "tpes" ,
"id": "1e72e083-3ac9-318e-a8e5-ac0432fcddb2::TPE_1e72e083-3ac9-318e-
a8e5-ac0432fcddb2::EQPT_15_21-1-PTP"
}
]
}
}
}
}
Spectrum power
To retrieve real-time optical power (Spectrum power) of the network, you use the Test and diagnostics
API.
Requirements
Before you start, you must have identified an FRE (ROADM-line) for which to retrieve optical power data,
for example, -7311240502812995208-ROADMLINE_-8573074959516302103-ROADMLINE_.
Sample request
POST {MCP_HOST}/tdc/api/vi/diag/powers
{
"data": {
"freIds": [
"7311240502812995208-ROADMLINE_-8573074959516302103-
ROADMLINE"
],
"pmType": "SPECTRUM",
"synchronous": true,
"pollInterval": 0
}
}
Sample response
{
"data": {
"id": "5746bd94-d64a-49a0-93f1-b77960c586a0",
"type": "pmDiagnostics",
"attributes": {
"timeStamp": "2017-02-22T19:36:05.237Z",
"pmType": "SPECTRUM",
"pmTpes": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 981
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"tpeId": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-e45a-3248-
96e9-d0924d0d2eb3::EQPT_1_7-8-PTP",
"portDir": "IN",
"isReporting": true,
"pmReadings": [
{
"reportingFacility": "SDMON-1-7-7-19132500",
"facilityType": "SDMON",
"frequency": "19132500",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19133125",
"facilityType": "SDMON",
"frequency": "19133125",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19133750",
"facilityType": "SDMON",
"frequency": "19133750",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19134375",
"facilityType": "SDMON",
"frequency": "19134375",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19135000",
"facilityType": "SDMON",
"frequency": "19135000",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 982
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
},
{
"reportingFacility": "SDMON-1-7-7-19135625",
"facilityType": "SDMON",
"frequency": "19135625",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19136250",
"facilityType": "SDMON",
"frequency": "19136250",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19136875",
"facilityType": "SDMON",
"frequency": "19136875",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19137500",
"facilityType": "SDMON",
"frequency": "19137500",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19138125",
"facilityType": "SDMON",
"frequency": "19138125",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19138750",
"facilityType": "SDMON",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 983
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"frequency": "19138750",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19139375",
"facilityType": "SDMON",
"frequency": "19139375",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19140000",
"facilityType": "SDMON",
"frequency": "19140000",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19140625",
"facilityType": "SDMON",
"frequency": "19140625",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19141250",
"facilityType": "SDMON",
"frequency": "19141250",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19141875",
"facilityType": "SDMON",
"frequency": "19141875",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 984
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"value": "-28.7",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19142500",
"facilityType": "SDMON",
"frequency": "19142500",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19143125",
"facilityType": "SDMON",
"frequency": "19143125",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19143750",
"facilityType": "SDMON",
"frequency": "19143750",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-7-7-19144375",
"facilityType": "SDMON",
"frequency": "19144375",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-28.8",
"time": "2017-02-22T19:35-00:00",
"binState": "COMPLETED"
},
.
.
.
.
.
.
.
.
.
.
.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 985
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
.
{
"reportingFacility": "SDMON-1-2-7-19600000",
"facilityType": "SDMON",
"frequency": "19600000",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19600625",
"facilityType": "SDMON",
"frequency": "19600625",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19601250",
"facilityType": "SDMON",
"frequency": "19601250",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19601875",
"facilityType": "SDMON",
"frequency": "19601875",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.7",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19602500",
"facilityType": "SDMON",
"frequency": "19602500",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19603125",
"facilityType": "SDMON",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 986
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"frequency": "19603125",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19603750",
"facilityType": "SDMON",
"frequency": "19603750",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19604375",
"facilityType": "SDMON",
"frequency": "19604375",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19605000",
"facilityType": "SDMON",
"frequency": "19605000",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19605625",
"facilityType": "SDMON",
"frequency": "19605625",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.7",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19606250",
"facilityType": "SDMON",
"frequency": "19606250",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 987
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19606875",
"facilityType": "SDMON",
"frequency": "19606875",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19607500",
"facilityType": "SDMON",
"frequency": "19607500",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19608125",
"facilityType": "SDMON",
"frequency": "19608125",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19608750",
"facilityType": "SDMON",
"frequency": "19608750",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.8",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19609375",
"facilityType": "SDMON",
"frequency": "19609375",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.9",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 988
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"reportingFacility": "SDMON-1-2-7-19610000",
"facilityType": "SDMON",
"frequency": "19610000",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.9",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19610625",
"facilityType": "SDMON",
"frequency": "19610625",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.9",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19611250",
"facilityType": "SDMON",
"frequency": "19611250",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.9",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19611875",
"facilityType": "SDMON",
"frequency": "19611875",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-29.9",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
},
{
"reportingFacility": "SDMON-1-2-7-19612500",
"facilityType": "SDMON",
"frequency": "19612500",
"binType": "UNTIMED",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "OPT-OTS",
"value": "-30",
"time": "2017-02-22T19:36-00:00",
"binState": "COMPLETED"
}
]
}
],
"diagResults": {}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 989
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
},
"relationships": {
"fres": {
"data": [
{
"type": "fres",
"id": "7311240502812995208-ROADMLINE_-8573074959516302103-ROADMLINE"
}
]
},
"tpes": {
"data": [
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-e45a-3248-
96e9-d0924d0d2eb3::EQPT_1_7-8-PTP"
},
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-1db9-3c26-
b1d6-d0312e7e4510::EQPT_1_1-5-PTP"
},
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-e45a-3248-
96e9-d0924d0d2eb3::EQPT_1_7-5-PTP"
},
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-1db9-3c26-
b1d6-d0312e7e4510::EQPT_1_1-8-PTP"
}
]
}
}
}
}
In this section you create a service intent between OCLDs on two nodes. You can request a pre-FEC BER
test and add an inclusion constraint to specify which ROADM line the service should use.
You can also use this section to create an OTU4 service over an OCLD regen (back-to-back OCLD cards).
To create the service intent, use the Service Intent (CD fixed) API.
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 990
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
• The equipment (including pluggables) required by the service is installed in the network.
• If you are provisioning an OTU4 service over a regen, you must enable viability (see Plan equipment).
• You have an API token (see Obtain a token).
• You have enrolled ROADMs for both ends of the link (see the Blue Planet MCP User Guide, 450-3709-
301, for how to enroll a single network element). You have the TIDs and NCIDs for the enrolled
ROADMs.
• A suitable link with no OTU4 services exists.
• In the request:
◦ Specify the TID and location of the OCLDs for the A and Z ends.
• For an example of a basic intent request, see Sample request — basic intent.
• For an example of a basic intent request for a pre-FEC BER test, see Sample request — basic intent
request for a pre-FEC BER test.
• To explicitly specify an inclusion constraint, include a constraint object in the intent document. For an
example of an intent document that includes a constraint object, see Sample request — basic intent
with a constraint object. This example specifies the ROADM line on shelf 21.
For a full list of current constraints, see Layer 0 infrastructure service constraints.
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 991
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"data":{
"attributes": {
"label": "OTU4_11_31",
"directionality": "bidirectional",
"layerRate": "OTU4",
"endPoints": [
{
"networkElement": {
"name": "PV0270RPTB"
},
"shelf": "11",
"slot": "31",
"port": "1"
},
{
"networkElement": {
"name": "PV0270RPTC"
},
"shelf": "11",
"slot": "31",
"port": "1"
}
]
}
}
}
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents
To specify an optional pre-FEC BER test (OTU4/infrastructure services, only), add a section similar to this
in your basic intent, for example:
{
"postActivationTests":
{
"diagnostics": [
{ "diagnosticType": "PM_TEST", "pmType": "PREFEC_BER",
"degradeThreshold": "1.0e-3", "failThreshold": "10.0e-3" }
]
}
}
}
}
The test runs after the service intent is deployed to the network. The low and high thresholds are optional,
in which case the system defaults are used. See a sample response to this request as follows.
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 992
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
To explicitly specify an inclusion constraint, include a constraint object in the intent document. This
example specifies the ROADM line on shelf 21.
{
"constraints": {
"includeRouteObjects": [
{
"routeObjectType": "ROADM_LINE_NAME",
"roadmLineName": "{{NC_ID1}}::TPE_{{NC_ID1}}::EQPT_21_1-5-
PTP"
}
]
},
"userLabel": "100G Test Service",
...
"postActivationTests": {
"diagnostics": [
{ "diagnosticType": "PM_TEST", "pmType": "PREFEC_BER",
"degradeThreshold": 0.001, "failThreshold": 0.01 }
]
}
}
},
"discovered": false,
"postActivationTestStatus": {
"diagnosticStatuses": [
{ "diagnosticType": "PM_TEST", "pmType": "PREFEC_BER", "state":
"WAITING_FOR_SERVICE_ACTIVATED" }
]
In this section you create a service intent between OTR on two nodes.
You can also use this section to create a 100G service over an OCLD regen (back-to-back OCLD cards).
To create the service intent, use the Service Intent (CD fixed) API.
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 993
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 994
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"data":{
"attributes": {
"label": "config100GE_1",
"directionality": "bidirectional",
"layerRate": "DSR_ETHERNET",
"endPoints": [
{
"networkElement": {
"name": "PV0032RPTB"
},
"shelf": "11",
"slot": "26",
"port": "1",
"layerTerminations": [
{
"layerRate": "DSR_ETHERNET",
"additionalAttributes": {
"PROTOCOL": "ETH100G",
"MAPPING": "GMP"
}
}
]
},
{
"networkElement": {
"name": "PV0032RPTC"
},
"shelf": "11",
"slot": "26",
"port": "1",
"layerTerminations": [
{
"layerRate": "DSR_ETHERNET",
"additionalAttributes": {
"PROTOCOL": "ETH100G",
"MAPPING": "GMP"
}
}
]
}
]
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 995
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
In this section you create a service intent between MUX client facilities on two nodes.
You can also use this section to create a 10G service over an OCLD regen (back-to-back OCLD cards).
To create the service intent, use the Service Intent (CD fixed) API.
Requirements
• the equipment (including pluggables) required by the service is installed in the network.
• If you are provisioning a 10G service over a regen, you must enable viability (see Plan equipment).
• You have an API token (see Obtain a token).
• You have enrolled ROADMs for both ends of the link (see the Blue Planet MCP User Guide, 450-3709-
301, for how to enroll a single network element). You have the TIDs and NCIDs for the enrolled
ROADMs.
• An OTU4 service exists or is planned between the OCLDs (see Create an OTU4 service intent).
• in the request:
◦ Specify the TID and location of the MUX client facilities for the A and Z ends.
◦ Specify a turnUpDateTime (activation time) and, optionally, a turnDownDateTime (deactivation
time).
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 996
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"data":{
"attributes": {
"turnUpDateTime": "2016-11-19T11:37:29.739-0500",
"label": "config10GE_1",
"directionality": "bidirectional",
"layerRate": "DSR_ETHERNET",
"endPoints": [
{
"networkElement": {
"name": "PV0027A"
},
"shelf": "12",
"slot": "3",
"port": "5",
"layerTerminations": [
{
"layerRate": "DSR_ETHERNET",
"additionalAttributes": {
"PROTOCOL": "ETH10G",
"MAPPING": "PROP237"
}
}
]
},
{
"networkElement": {
"name": "PV0027B"
},
"shelf": "12",
"slot": "3",
"port": "5",
"layerTerminations": [
{
"layerRate": "DSR_ETHERNET",
"additionalAttributes": {
"PROTOCOL": "ETH10G",
"MAPPING": "PROP237"
}
}
]
}
]
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 997
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Blue Planet MCP supports the ability to create planned services over planned equipment for deployment
at a future date. While this is possible for all supported equipment and service types, this section
describes the specific example of provisioning an OTU4 service over a planned fiber route and planned
transponders.
Requirements
To add a new ROADM route to the network (new ROADMs) while omitting System line up and
testing (SLAT) and all subsequent steps
◦ Plan equipment
◦ Create an OTU4 service intent
Sample request
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents
Sample response
Sample request
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents/{id}/deploy
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 998
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
The API returns back the full path (in Revell format) of what the full end-to-end service looks like. Client-
client and line-line services are supported (including regens).
All checks that are normally done during service intent creation (not service intent deploy) are done also
in the service feasibility API.
The service feasibility API does not save any information on the server, that is, no service intent.
To retrieve a feasible route, access the Service provisioning (CD fixed) API.
Sample request
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntentss/getFeasibleRoute
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 999
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"data": {
"attributes": {
"turnUpDateTime": "2020-10-11T11:32:29.000+0000",
"label": "LINE_OTU4_NEW",
"directionality": "bidirectional",
"layerRate": "OTU4",
"endPoints": [{
"networkElement": {
"name": "{{SITEA}}"
},
"shelf": "12",
"slot": "1",
"port": "1"
},
{
"networkElement": {
"name": "{{SITEC}}"
},
"shelf": "22",
"slot": "1",
"port": "1"
}
]
}
}
Sample response
{
"data": {
"attributes": {
"cfmPackages": [],
"directionality": "bidirectional",
"identifiers": [],
"layerRate": "OTU4",
"maxReservableBandwidth": [],
"mgmtName": "service_1",
"networkRole": "FREAP",
"srlg": [],
"syncScopes": [],
"topologySources": [
"stitched"
],
"trails": [{
"protectionRole": "",
"rxDirection": [{
"id": "e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb",
"type": "networkConstruct"
},
{
"id": "e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb::EQPT_12_1",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1000
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "equipment"
},
{
"id": "e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb::TPE_e227a74e-
b7a4-3ccb-98a6-49d5ece1cbfb::EQPT_12_1-1-PTP",
"type": "tpes"
},
{
"id": "185842469282238163",
"type": "fres"
},
{
"id": "e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb::TPE_e227a74e-
b7a4-3ccb-98a6-49d5ece1cbfb::EQPT_11_21-2-PTP",
"type": "tpes"
},
. . .
{
"id": "9bb2deea-e24a-3ed1-80e4-86f631e3aa85::TPE_9bb2deea-
e24a-3ed1-80e4-86f631e3aa85::EQPT_22_1-1-PTP",
"type": "tpes"
},
{
"id": "9bb2deea-e24a-3ed1-80e4-86f631e3aa85::EQPT_22_1",
"type": "equipment"
}
],
"txDirection": [{
"id": "e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb",
"type": "networkConstruct"
},
{
"id": "e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb::EQPT_12_1",
"type": "equipment"
},
{
"id": "e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb::TPE_e227a74e-
b7a4-3ccb-98a6-49d5ece1cbfb::EQPT_12_1-1-PTP",
"type": "tpes"
},
. . .
{
"id": "9bb2deea-e24a-3ed1-80e4-86f631e3aa85::TPE_9bb2deea-
e24a-3ed1-80e4-86f631e3aa85::EQPT_22_1-1-PTP",
"type": "tpes"
},
{
"id": "9bb2deea-e24a-3ed1-80e4-86f631e3aa85::EQPT_22_1",
"type": "equipment"
}
]
}],
"usedBandwidth": [],
"userLabel": "x_viabilityOTU4_REGEN"
},
"id": "-4345358789047334452",
"relationships": {
"endPoints": {
"data": [{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1001
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "-4345358789047334452:1",
"type": "endPoints"
},
{
"id": "-4345358789047334452:2",
"type": "endPoints"
}
]
},
"partitionFres": {
"data": [{
"id": "8647848284423065670",
"type": "fres"
}]
}
},
"type": "serviceTrails"
},
"included": [{
"attributes": {
"directionality": "bidirectional",
"role": "symmetric"
},
"id": "-4345358789047334452:1",
"relationships": {
"tpes": {
"data": [{
"id": "e227a74e-b7a4-3ccb-98a6-
49d5ece1cbfb::TPE_e227a74e-b7a4-3ccb-98a6-49d5ece1cbfb::EQPT_12_1-1-PTP",
"type": "tpes"
}]
}
},
"type": "endPoints"
},
. . .
Undeploy (or remove/delete from the network) a service created by an intent that is deployed to the
network. Examples of service intents that can be undeployed (removed/deleted) are as follows: OTU4,
10G, or 100G.
To undeploy a service intent, use the Service Intent (CD fixed) API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1002
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
1. When you create the service intent, you can specify an optional “turnDownDateTime”. If specified, the
system will attempt to undeploy the service at the specified time.
2. At any point, assuming the service intent is “DEPLOYED” in the network, you can request that service
undeployment be immediate. This example undeploys the service immediately.
Requirements
Sample request
POST {{MCP_SERVER}}/ifd/api/v1/serviceIntents/{id}/undeploy
Note: For OTU4 services, the time required to undeploy the service can be lengthy.
Sample response
Note: This API retrieves spectral data on the path of one service. The spectral data are presented in the
TPE as usedCapacity.
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1003
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Sample request
GET {MCP_HOST}/tdc/api/v1/diag/spectral?freIds=7311240502812995208-ROADMLINE_-
8573074959516302103-ROADMLINE
Sample response
A partial sample response is provided below. A response code of 202 indicates the request was
accepted.
{
"data": {
"id": "f4fee368-e571-43a3-a799-fb720a65245f",
"type": "spectralResults",
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-
e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-CTPServerToClient-1"
},
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-
e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-8-CTPServerToClient-1"
},
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-
1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-5-CTPServerToClient-1"
},
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-
1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-8-CTPServerToClient-1"
},
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-
e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-PTP"
},
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-
e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-8-PTP"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1004
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-
1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-5-PTP"
},
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-
1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-8-PTP"
}
]
},
"fres": {
"data": [
{
"type": "fres",
"id": "64656d45-57ef-413e-92e6-7c07eb3b3be0"
},
{
"type": "fres",
"id": "c5580fb1-25a2-4d05-b5af-fd9105eea9f4"
},
{
"type": "fres",
"id": "d5020da5-bc91-469b-9470-1dc881c5eee1"
},
{
"type": "fres",
"id": "3e3bdea1-0503-4b12-a445-5ba54a30d123"
}
]
}
},
"resultsCode": "202",
"requestIds": [
"7311240502812995208-ROADMLINE_-8573074959516302103-ROADMLINE"
],
"invalidIds": []
},
"included": [
{
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-e45a-3248-
96e9-d0924d0d2eb3::EQPT_1_7-5-CTPServerToClient-1",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"tpeGroupSpecs": [],
"nativeName": "MCTTP-1-7-5-1",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "7",
"port": "5",
"mcId": "1"
}
],
"layerTerminations": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1005
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"layerRate": "MEDIA",
"structureType": "lone adapter",
"terminationState": "layer termination cannot terminate",
"active": true,
"photonicSpectrumPackage": {
"minFreqDeadBand": "0.000",
"maxFreqDeadBand": "0.000",
"targetMinFreq": "193.675000",
"targetMaxFreq": "193.800000"
},
"cfmPackages": [],
"signalIndex": {
"mappingTable": [],
"minFreq": "193.675000",
"maxFreq": "193.800000"
},
"layerProtocol": {
"termination": {
"connectionRulesInOwnLayer": [
{
"targetLayer": "MEDIA",
"rule": "toServerUsingClientExternalFGRule"
}
]
},
"adaptationPools": [
{
"name": "otsiFlexGrid",
"poolAdapters": [],
"memberAdaptationPools": []
}
],
"layeredAttributes": []
},
"additionalAttributes": {
"DISPLAY_ALIAS": "MCTTP-1-7-5-1",
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
}
],
"stackDirection": "client to server",
"displayAlias": "MCTTP-1-7-5-1",
"fgiSpecificationRefList": [],
"totalCapacity": [
{
"layer": "OTSi",
"capacityClass": "continuous",
"capacity": 0,
"capacitySize": {
"size": [
"193.675000:193.800000"
],
"pattern": {
"type": "LIST",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1006
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
],
"usedCapacity": [
{
"layer": "OTSi",
"capacityClass": "continuous",
"capacity": 2,
"capacitySize": {
"size": [
"193.681250:193.718750",
"193.756250:193.793750"
],
"pattern": {
"type": "LIST",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
],
"capacityReservations": [],
"cardType": "LIM",
"state": "IS",
"syncScopes": [],
"identifiers": [
{
"incarnation": "3",
"circuitId": "C204WEST_SNCG0-1-1"
},
{
"networkConstructId": "0fe32a05-e45a-3248-96e9-
d0924d0d2eb3",
"nodalId": "0fe32a05-e45a-3248-96e9-
d0924d0d2eb3::TPE_0fe32a05-e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-
CTPServerToClient-1"
}
],
"additionalAttributes": {
"mcId": "1",
"SYNCED_AT": "",
"tpeLifeCycleOwnerType": "SERVICEINVENTORY",
"reconcileRule": "sncGroup"
}
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7"
}
},
"owningServerTpe": {
"data": {
"type": "tpes",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1007
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-
e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-PTP"
}
},
"clientTpes": {
"data": [
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-
d0924d0d2eb3::TPE_0fe32a05-e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-
CTPServerToClient-193.775000"
},
{
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-
d0924d0d2eb3::TPE_0fe32a05-e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-
CTPServerToClient-193.700000"
}
]
}
}
},
{
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-e45a-3248-
96e9-d0924d0d2eb3::EQPT_1_7-5-CTPServerToClient-193.775000",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"tpeGroupSpecs": [],
"nativeName": "NMCLNCTP-1-7-5-1-3",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "7",
"port": "5",
"frequency": "193.775000",
"mcId": "1"
}
],
"layerTerminations": [
{
"layerRate": "OTSi",
"structureType": "exposed lone cp",
"terminationState": "layer termination cannot terminate",
"active": true,
"cfmPackages": [],
"signalIndex": {
"mappingTable": [],
"frequency": "193.775000",
"width": "37.500"
},
"additionalAttributes": {
"forwardingState": "FORWARDING_TO_LT_FROM_FRE"
}
}
],
"stackDirection": "client to server",
"displayAlias": "NMC-1-7-5-193.775000",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1008
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"fgiSpecificationRefList": [],
"totalCapacity": [
{
"layer": "OTSi",
"capacityClass": "continuous",
"capacity": 0,
"capacitySize": {
"size": [],
"pattern": {
"type": "LIST",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
],
"usedCapacity": [
{
"layer": "OTSi",
"capacityClass": "continuous",
"capacity": 0,
"capacitySize": {
"size": [],
"pattern": {
"type": "LIST",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
],
"capacityReservations": [],
"cardType": "LIM",
"state": "IS",
"syncScopes": [],
"identifiers": [
{
"networkConstructId": "0fe32a05-e45a-3248-96e9-
d0924d0d2eb3",
"nodalId": "0fe32a05-e45a-3248-96e9-
d0924d0d2eb3::TPE_0fe32a05-e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-
CTPServerToClient-193.775000"
}
],
"additionalAttributes": {
"SYNCED_AT": "",
"tpeLifeCycleOwnerType": "SERVICEINVENTORY",
"nmcId": "3"
}
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3"
}
},
"equipment": {
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1009
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "equipment",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7"
}
},
"owningServerTpe": {
"data": {
"type": "tpes",
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-
e45a-3248-96e9-d0924d0d2eb3::EQPT_1_7-5-CTPServerToClient-1"
}
}
}
},
{
"id": "0fe32a05-e45a-3248-96e9-d0924d0d2eb3::TPE_0fe32a05-e45a-3248-
96e9-d0924d0d2eb3::EQPT_1_7-5-CTPServerToClient-193.700000",
"type": "tpes",
"attributes": {
"structureType": "CTPServerToClient",
"tpeGroupSpecs": [],
"nativeName": "NMCLNCTP-1-7-5-1-1",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "7",
"port": "5",
"frequency": "193.700000",
"mcId": "1"
}
],
"layerTerminations": [
{
"layerRate": "OTSi",
"structureType": "exposed lone cp",
"terminationState": "layer termination cannot terminate",
"active": true,
"cfmPackages": [],
"signalIndex": {
"mappingTable": [],
"frequency": "193.700000",
"width": "37.500"
},
"additionalAttributes": {
"forwardingState": "FORWARDING_TO_LT_FROM_FRE"
}
}
],
.
.
.
.
.
.
.
.
.
.
.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1010
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
.
{
"layerRate": "OTS",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"cfmPackages": [],
"nativeName": "ADJ-1-1-5",
"additionalAttributes": {
"USER_LABEL": ""
}
},
{
"layerRate": "PHY",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"adjacencyPackage": {
"adjacencyType": "LINE",
"localTag": "C204EAST-1-1-5",
"remoteTag": "C204DGE-1-7-8",
"remoteTagFormat": "TID-SH-SL-PRT",
"topologySourceTag": "DISCOVERED"
},
"cfmPackages": [],
"nativeName": "ADJ-1-1-5",
"additionalAttributes": {
"userLabel": "",
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
}
],
"stackDirection": "client to server",
"displayAlias": "ADJ-1-1-5",
"fgiSpecificationRefList": [
"6500_CCMD12_Add_OTSi_FG:1:1",
"6500_Must_Not_Connect_OTSi_FG:1:1-1-5-8",
"6500_ROADM_Passthrough_OTSi_FG:1:100"
],
"totalCapacity": [
{
"layer": "MEDIA",
"capacityClass": "continuous",
"capacity": 0,
"capacitySize": {
"size": [
"191.325000:196.125000"
],
"pattern": {
"type": "RANGE",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
],
"usedCapacity": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1011
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"layer": "MEDIA",
"capacityClass": "continuous",
"capacity": 1,
"capacitySize": {
"size": [
"193.675000:193.800000"
],
"pattern": {
"type": "RANGE",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
],
"capacityReservations": [],
"cardType": "SAM",
"roadmLine": "OUT",
"state": "OOS",
"syncScopes": [],
"identifiers": [
{
"nativeName": "ADJ-1-1-5",
"networkConstructId": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510"
},
{
"networkConstructId": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510",
"nodalId": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510::TPE_d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-5-PTP"
}
],
"additionalAttributes": {
"ROADM_LINE_PAIR_TPE_LOC": "1-1-6",
"ROADM_LINE_NAME": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510::TPE_d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-5-PTP",
"OTS_TYPE": "CHA",
"SYNCED_AT": "",
"OTS_INSTANCE": "1-1",
"USER_LABEL": "",
"tpeLifeCycleOwnerType": "SERVICEINVENTORY",
"OTS_SUBTYPE": "ROADM"
}
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1"
}
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1012
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"clientTpes": {
"data": [
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510::TPE_d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-5-
CTPServerToClient-1"
}
]
},
"partnerTpe": {
"data": {
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-
1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-8-PTP"
}
}
}
},
{
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-1db9-3c26-
b1d6-d0312e7e4510::EQPT_1_1-8-PTP",
"type": "tpes",
"attributes": {
"structureType": "PTP",
"tpeGroupSpecs": [],
"nativeName": "",
"locations": [
{
"managementType": "tl1",
"shelf": "1",
"slot": "1",
"port": "8"
}
],
"layerTerminations": [
{
"layerRate": "OMS",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"cfmPackages": [],
"layerProtocol": {
"termination": {
"connectionRulesInOwnLayer": [
{
"targetLayer": "OMS",
"rule": "mustConnectInternally"
}
]
},
"adaptationPools": [
{
"name": "flexGridCBand",
"poolAdapters": [],
"memberAdaptationPools": []
}
],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1013
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"layeredAttributes": []
}
},
{
"layerRate": "OTS",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"cfmPackages": [],
"nativeName": "",
"additionalAttributes": {
"USER_LABEL": ""
}
},
{
"layerRate": "PHY",
"structureType": "full layer fixed",
"terminationState": "layer termination permanently
terminated",
"active": true,
"adjacencyPackage": {
"adjacencyType": "",
"localTag": "C204EAST-1-1-8",
"topologySourceTag": "DISCOVERED"
},
"cfmPackages": [],
"nativeName": "",
"additionalAttributes": {
"userLabel": "",
"forwardingState": "LT_CANNOT_FORWARD_TO_FROM_FRE"
}
}
],
"stackDirection": "server to client",
"displayAlias": "OPTMON-1-1-8",
"fgiSpecificationRefList": [
"6500_CCMD12_Drop_OTSi_FG:1:1",
"6500_Must_Not_Connect_OTSi_FG:1:1-1-5-8",
"6500_ROADM_Passthrough_OTSi_FG:1:100"
],
"totalCapacity": [
{
"layer": "MEDIA",
"capacityClass": "continuous",
"capacity": 0,
"capacitySize": {
"size": [
"191.325000:196.125000"
],
"pattern": {
"type": "RANGE",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
],
"usedCapacity": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1014
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"layer": "MEDIA",
"capacityClass": "continuous",
"capacity": 1,
"capacitySize": {
"size": [
"193.675000:193.800000"
],
"pattern": {
"type": "RANGE",
"format": "freqLowerBound:freqUpperBound"
},
"unit": "THz"
}
}
],
"capacityReservations": [],
"cardType": "SAM",
"roadmLine": "IN",
"state": "IS",
"syncScopes": [],
"identifiers": [
{
"networkConstructId": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510",
"nodalId": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510::TPE_d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-8-PTP"
}
],
"additionalAttributes": {
"ROADM_LINE_PAIR_TPE_LOC": "1-1-7",
"ROADM_LINE_NAME": "d4abd144-1db9-3c26-b1d6-
d0312e7e4510::TPE_d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-8-PTP",
"OTS_TYPE": "CHA",
"SYNCED_AT": "",
"OTS_INSTANCE": "1-1",
"USER_LABEL": "",
"tpeLifeCycleOwnerType": "EQUIPMENT",
"OTS_SUBTYPE": "ROADM"
}
},
"relationships": {
"networkConstruct": {
"data": {
"type": "networkConstructs",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510"
}
},
"equipment": {
"data": {
"type": "equipment",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1"
}
},
"clientTpes": {
"data": [
{
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1015
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
d0312e7e4510::TPE_d4abd144-1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-8-
CTPServerToClient-1"
}
]
},
"partnerTpe": {
"data": {
"type": "tpes",
"id": "d4abd144-1db9-3c26-b1d6-d0312e7e4510::TPE_d4abd144-
1db9-3c26-b1d6-d0312e7e4510::EQPT_1_1-5-PTP"
}
}
}
}
]
}
Requirements
Note: This sample test should be executed for new transponders (for example, OCLD, OTR line port) once
the transponder exists and the ADJ on the CMD for that transponder has been set. This test is not
required for ports not connected to a CMD.
Sample request
POST {MCP_HOST}/tdc/api/v1/tests/loopbackOperations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1016
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"data": {
"type": "loopback",
"localTpeId": "771550c5-66d7-4eda-9ca5-25d014d2de49::TPE_771550c5-66d7-4eda-
9ca5-25d014d2de49::EQPT_151_3-1-PTP",
"testParameters": {
"noParameter": "as of 17.02"
},
"userAnnotation": "Beili 2016.12.7 no TPE validation. The testParameters can be
left empty."
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1017
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"data": {
"id": "74e5dab4-0c21-43f2-a99a-9d207297a5f9",
"type": "testResults",
"attributes": {
"testResults": [],
"testType": "loopback",
"testStatus": "Started",
"localTpeId": "MockCcmdPtp1",
"remotePoints": [],
"localNcId": "MockNcPv0034b",
"remoteNcs": [],
"startTime": 1484525289237,
"lastUpdateTime": 1484525289237,
"testParameters": {
"slotBase": "true"
},
"userAnnotation": "string",
"slot": "21",
"port": "1",
"shelf": "11"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockCcmdPtp1"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNcPv0034b"
}
]
}
}
},
"resultsCode": "202"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1018
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Requirements
Sample request
GET {MCP_SERVER}/tdc/api/v1/tests/{testId}
Note: For retrieving test results, the only parameter required is the test id. Test results can only be
retrieved one record at a time using the retrieve test results API.
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1019
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"data": {
"id": "a7ff42f8-d757-4159-baff-ba4203026d29",
"type": "testResults",
"attributes": {
"testResults": [
{
"operationalStatus": "success",
"errorMessage": "successful create",
"dataType": "summary"
}
],
"testType": "loopback",
"testStatus": "In progress",
"localTpeId": "MockCcmdPtp1",
"remotePoints": [],
"localNcId": "MockNcPv0034b",
"remoteNcs": [],
"startTime": 1484533372246,
"lastUpdateTime": 1484533401794,
"testParameters": {
"slotBase": "true"
},
"userAnnotation": "string",
"limPort": "21-1-2 sh-sl-pt",
"loopbackWavelength": "152877",
"port": "1",
"slot": "21",
"cmdPort": "11-21-1 sh-sl-pt",
"shelf": "11"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "MockCcmdPtp1"
}
]
},
"networkConstructs": {
"data": [
{
"type": "networkConstructs",
"id": "MockNcPv0034b"
}
]
}
}
},
"resultsCode": 200,
"requestIds": "a7ff42f8-d757-4159-baff-ba4203026d29"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1020
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
While the bandwidth lockouts in effect for an FRE, its associated TPEs (ports) will be locked. MCP will not
include a locked TPE as part of any "deploy now" service route calculation.
However any "deploy in future" service planning will still include currently-locked TPEs as part of a route
calculation, with the expectation that they will be unlocked before the service is implemented.
• the OMS section was just created, and you want to soak-test it for a while before routing any customer
traffic over it
• maintenance is currently being performed on the OMS section, and you want to make sure new
services are not added to it during the maintenance period
• the OMS section is experiencing quality issues, and while you are troubleshooting you don’t want more
services to be added (since they would immediately be affected by the same issue)
When deploying or re-deploying a partially deployed service, in all cases where service deployment
time=now or future, MCP checks the administrative locks at the time of deployment. If such a lock is
found, the deployment will fail and the service will remain in the previous "planned" or "deploy_failed"
state. An auto deploy service will stay in the planned state it had before. If you attempt to redeploy the
service manually then the error message "admin lock" will be reported. This error is also stored in the log
file.
Note 1: Only inter-nodal OMS link sections can be locked out in this way.
Note 2: Service Feasibility will take the administrative lock into account, but only if time=now/past
Note 3: Re-deploying a service will do the same admin locks check as the initial deploy
You can use the API calls described here to set, and later remove, such a lockout from a specified OMS
link section. You an also use the API call described here to query for links that are currently subject to
bandwidth lockout.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1021
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Then use this FRE ID to issue the API call shown in either of the following sections:
PUT {{<MCP_HOST>}}/nsi/api/fres/{freID}/bookingData/bandwidthLockout
Sample response:
DELETE {{MCP_HOST>}}/nsi/api/fres/{freID}/bookingData/bandwidthLockout
Sample response:
GET {{MCP_HOST}}/nsi/api/fres?bookingData.lockout=true
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1022
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Sample response:
{
"meta": {
"total": 2,
"aggregations": []
},
"data": [
{
"id": "-757759126947706937",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "RAK-MPLS",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"deploymentState": "discovered",
"active": true,
"additionalAttributes": {
"protectionRole": "All",
"isActual": "true"
},
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"intentDeploymentStateString": "Not applicable"
},
"resourceState": "discovered",
"bookingData": {
"assignedBandwidth": "200.0",
"assignedBandwidthUnit": "mbps",
"bandwidthLockout": true,
"bookingFactor": "1"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-757759126947706937:1"
},
{
"type": "endPoints",
"id": "-757759126947706937:2"
}
]
},
"decomposedFres": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1023
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"data": [
{
"type": "fres",
"id": "1481258771465315756"
}
]
}
}
},
{
"id": "7610319834116549486",
"type": "fres",
"attributes": {
"userLabel": "",
"mgmtName": "Anoop-Primary",
"nativeName": "",
"layerRate": "MPLS_PROTECTION",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"deploymentState": "discovered",
"active": true,
"additionalAttributes": {
"protectionRole": "All",
"isActual": "true"
},
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"intentDeploymentStateString": "Not applicable"
},
"resourceState": "discovered",
"bookingData": {
"assignedBandwidth": "200.0",
"assignedBandwidthUnit": "mbps",
"bandwidthLockout": true,
"bookingFactor": "1"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "7610319834116549486:1"
},
{
"type": "endPoints",
"id": "7610319834116549486:2"
}
]
},
"decomposedFres": {
"data": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1024
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"type": "fres",
"id": "837761269376732920"
},
{
"type": "fres",
"id": "5027972606109232990"
}
]
}
}
}
],
"included": [
{
"id": "-757759126947706937:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::TPE_FTP_MPLS-
PROTECTION_RAK-MPLS_headEnd"
}
]
}
}
},
{
"id": "-757759126947706937:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::TPE_FTP_MPLS-
PROTECTION_RAK-MPLS_tailEnd"
}
]
}
}
},
{
"id": "7610319834116549486:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1025
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "2c06ee34-6e8f-30a8-9f1b-4be2828ad966::TPE_FTP_MPLS-
PROTECTION_Anoop-Primary_tailEnd"
}
]
}
}
},
{
"id": "7610319834116549486:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f240cfdf-bd82-32ea-9040-1cd2fcfc29e7::TPE_FTP_MPLS-
PROTECTION_Anoop-Primary_headEnd"
}
]
}
}
}
]
}
Note 1: MCP only supports the deletion of discovered services in those cases where MCP supports the
provisioning of the service.
Note 2: MCP 18.06 does not support 6500 control plane (CP) in-service takeovers on non-control plane
(NCP) services.
Promoting the discovered Layer 0 service allows MCP to manage a service that was not created using
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1026
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
MCP.
GET
{{MCP_SERVER}}/bpocore/market/api/v1/resources?exactTypeID=ifd.v2.resourceTypes.ServicePromoti
onContainer
Sample response
{
"items": [{
"id": "595d2de7-8c6b-4219-a608-fa8a1aadccb3",
"label": "Resource for ifd.v2.resourceTypes.ServicePromotionContainer",
"resourceTypeId": "ifd.v2.resourceTypes.ServicePromotionContainer",
"productId": "595d2de5-bae7-493f-bcfd-cc92707ab075",
"tenantId": "536e2d63-f640-4fa1-866f-c2bffa2c3c81",
"shared": false,
"properties": {},
"discovered": false,
"differences": [],
"desiredOrchState": "active",
"orchState": "active",
"reason": "",
"tags": {},
"providerData": {},
"updatedAt": "2017-07-05T18:20:25.071Z",
"createdAt": "2017-07-05T18:20:24.150Z",
"autoClean": false
}, {
...
...
}]
}
POST {{MCP_SERVER}}/bpocore/market/api/v1/resources/{{RID}}/operations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1027
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"interface": "promoteService",
"inputs": {
"service": {
"freId": "<<FRE ID OF Discovered Service>>"
}
}
}
Sample response
{
"id": "595e8834-eab3-4315-849f-c48527f466f0",
"resourceId": "595e7bf2-5c87-4935-b671-630248cfe4e5",
"interface": "promoteService",
"inputs": {
"service": {
"freId": "1305545905537334667"
}
},
"outputs": {},
"state": "requested",
"reason": "",
"createdAt": "2017-07-06T18:57:56.703Z",
"updatedAt": "2017-07-06T18:57:56.703Z",
"resourceStateConstraints": {}
}
Channel margins
This section includes the following:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1028
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Sample request
GET {{MCP_SERVER}}/nsi/api/fres?group=dwa&limit=3000&layerRate=OTSi
Sample response
"data": [
{
...
"id": "-8562028732694322491",
"type": "fres",
"attributes": {
"deploymentState": "discovered",
"userData": {
"marginData": {
\"minMargin\": 3.40,
\"upgrMargin\": 3.70,
\"sdMargin\": 0.50,
\"valid\": true,
\"status\": \"Good\"
}
...
},
},
},
]
Sample request
GET {{MCP_SERVER}}/perfg/api/v1/channelmargin
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1029
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Sample response
{
"services": [
{
"direction": "Tx",
"freId": "7497479283820796464",
"maxMargin": 9.5,
"meanMargin": 9.4,
"minMargin": 9.4,
"sdMargin": 1,
"status": "Upgrade",
"upgrMargin": 4.5,
"valid": true
},
{
"direction": "Rx",
"freId": "7497479283820796464",
"maxMargin": 4.8,
"meanMargin": 4.8,
"minMargin": 4.8,
"sdMargin": 1,
"status": "Good",
"upgrMargin": 4.5,
"valid": true
}
]
}
where:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1030
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
• timeEnd = last time stamp when the performance data was collected
• timeStart = the first time stamp since when the performance data is considered for time-series
analysis
• upgrRate = the next upgradable capacity or line rate
• valid = validity flag of the current data sets. "false" indicates insufficient data points to make a solid
recommendatation.
Sample requests
GET {{MCP_SERVER}}/perfg/api/v1/channelmargin/-2690535841732388624/Tx
GET {{MCP_SERVER}}/perfg/api/v1/channelmargin/-2690535841732388624/Rx
Sample response
{
"services": [
{
"histogram": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"intervals": 11,
"maxMargin": 9.1,
"meanMargin": 9.1,
"minMargin": 9,
"sdMargin": 1,
"status": "Upgrade",
"timeEnd": "2017-11-15T16:30:00Z",
"timeStart": "2017-11-15T14:00:00Z",
"upgrMargin": 4.5,
"upgrRate": 150.0G
"valid": false
}
]
}
A default check is performed to determine if a service is upgradable. This default check confirms whether
or not the time-series lower bound margin value will be above the signal degrade margin value after a
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1031
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
bandwidth upgrade. The upgrade safety factor enables you to set additional channel margin thresholds to
be considered before performing an upgrade.
Note: The safety factor can be a value between 0.0 and 10.0.
Sample request
PUT {{MCP_SERVER}}/perfg/api/v1/safety/0.5
Sample response A response code of 200 indicates that MCP was successfully updated.
Sample request
GET {{MCP_SERVER}}/perfg/api/v1/safety
Sample response
{
"factor": 0.5
}
Sample request
PUT {{MCP_SERVER}}/perfg/api/v1/validity/96
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1032
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Sample response A response code of 200 indicates that MCP was successfully updated.
Sample request
GET {{MCP_SERVER}}/perfg/api/v1/safety
Sample response
{
"factor": 96
}
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1033
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
GET {MCP_SERVER}/nsi/api/fres?coroutedFreId=-48362996977577746
Sample response
{
"meta": {
"total": 6,
"aggregations": []
},
"data": [
{
"id": "3461181939474856342",
"type": "fres",
"attributes": {
"operationState": "In Service",
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"frequency": "193.275000",
"operationState": "Up",
"adminState": "Enabled"
},
"resourceState": "discovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "Photonic",
"lqsData": {
"status": "upgrade",
"margin": {
"minMargin": 19.6,
"upgrMargin": 4.5,
"sdMargin": 1,
"valid": false,
"viableAtEol": "unknown"
}
},
"userLabel": "",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTSi",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1034
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Action
PATCH {{MCP_SERVER}}/nsi/api/v4/fres/{freid}
{
"operations": [
{
"op": "replace",
"attributes": {
"note": {
"noteMsg": "Your note message here",
"lastUpdatedBy": "Muntader"
},
"customerName": "Ciena"
}
}
]
}
PATCH {{MCP_SERVER}}/nsi/api/v4/fres/{freid}
{
"operations": [
{
"op": "delete",
"attribute": "note"
},
{
"op": "delete",
"attribute": "customerName"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1035
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
Action
1. Using the MCP UI, select Network > Services > Transport services.
2. Filter the OTSi service and select that service.
3. Click Details.
4. The URL at the top of the page includes the FRE ID. Use that FRE ID for the GET API. As an example,
you would be using -3155207493381222634 as the FRE ID, for a URL such as: https://<mcp-server>/
ui/#/photonics/-3155207493381222634
{
"data": {
"id": "-3155207493381222634",
"type": "frePlanned",
"attributes": {
"userLabel": "service_name_label",
"layerRate": "OTSi",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"active": true,
"additionalAttributes": {
"viabilityStatus": "VIABILITY_UNKNOWN",
"spectralWidthInGHz": "37.5",
"capacityInBps": "100.0"
}
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "a776afea-4c09-347d-be30-9c171718c2d8::TPE_a776afea-4c09-347d-
be30-9c171718c2d8::EQPT_1_27-1-PTP"
},
{
"type": "endPoints",
"id": "f1bcac91-566f-3b04-81ab-c7328c22a858::TPE_f1bcac91-566f-3b04-
81ab-c7328c22a858::EQPT_1_27-1-PTP"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1036
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "-3033361160375705738"
},
{
"type": "fres",
"id": "-121846333005516896"
}
]
}
}
},
"included": [
{
"id": "a776afea-4c09-347d-be30-9c171718c2d8::TPE_a776afea-4c09-347d-be30-
9c171718c2d8::EQPT_1_27-1-PTP",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "a776afea-4c09-347d-be30-9c171718c2d8::TPE_a776afea-4c09-
347d-be30-9c171718c2d8::EQPT_1_27-1-PTP"
}
]
}
}
},
{
"id": "f1bcac91-566f-3b04-81ab-c7328c22a858::TPE_f1bcac91-566f-3b04-81ab-
c7328c22a858::EQPT_1_27-1-PTP",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f1bcac91-566f-3b04-81ab-c7328c22a858::TPE_f1bcac91-566f-
3b04-81ab-c7328c22a858::EQPT_1_27-1-PTP"
}
]
}
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1037
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
5. Add or update the "userLabel" attribute in the retrieve frePlanned and send a PUT request to NSI to
update it.
Note: The Sample request to add the userLabel attribute shows the newly updated userLabel attribute.
Other attributes should kept unchanged.
PUT {{MCP_SERVER}}/nsi/api/v4/fres/{freid}/frePlanned
"data": {
"id": "-3155207493381222634",
"type": "frePlanned",
"attributes": {
"userLabel": "Updated_userLabel",
....
"additionalAttributes": {...}
},
"relationships": {...}
},
"included": [...]
}
Action
1. Using the MCP UI, select Network > Services > Transport services.
2. Filter the OTSi service and select that service.
3. Click Details.
4. The URL at the top of the page includes the FRE ID. Use that FRE ID for the GET API. As an example,
you would be using -3155207493381222634 as the FRE ID, for a URL such as: https://<mcp-server>/
ui/#/photonics/-3155207493381222634
{
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1038
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "-3155207493381222634",
"type": "fres",
"attributes": {
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"frequency": "193.750000",
"wavelength": "1547.32",
"channel": "CH-44"
},
"resourceState": "plannedAndDiscovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "userLabel",
"policies": [
"plannedOverDiscovered"
]
},
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"serviceClass": "Photonic",
"userLabel": "philip_userLabel",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTSi",
"layerRateQualifier": "100G",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"reliability": "manual"
},
"relationships": {
"frePlanned": {
"data": {
"type": "frePlanned",
"id": "-3155207493381222634"
}
},
"freExpectations": {
"data": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1039
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "freExpectations",
"id": "-3155207493381222634::1234"
}
]
},
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "-3155207493381222634"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-3155207493381222634:1"
},
{
"type": "endPoints",
"id": "-3155207493381222634:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "-121846333005516896"
},
{
"type": "fres",
"id": "-3033361160375705738"
}
]
}
}
},
"included": [
{
"id": "-3155207493381222634:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "a776afea-4c09-347d-be30-
9c171718c2d8::TPE_a776afea-4c09-347d-be30-9c171718c2d8::EQPT_1_27-1-PTP"
}
]
}
}
},
{
"id": "-3155207493381222634:2",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1040
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f1bcac91-566f-3b04-81ab-
c7328c22a858::TPE_f1bcac91-566f-3b04-81ab-c7328c22a858::EQPT_1_27-1-PTP"
}
]
}
}
}
]
}
5. Create an expectation for this FRE using the POST API by completing the following:
a. Update the "userLabel" attribute to the desired text.
b. In the request for FreExpectation, there is an "id": under "data": - This "id" is composed of two parts:
the "freId" and the ":: 1234". An example of an "id" is "-6343998190547029283::1234". You must
copy the "freId" value from step 4 and use it in this step 5.
c. In step 4, there is an "id" under "relationships": > "endPoints": > "data":. Copy the values of the "id"
and use them in this step 5.
d. Copy the attribute values from the response displayed (in step 4) for your deployment and use
those values to create an expectation for this FRE. You are copying the values for the following
attributes:
▪ "layerRate"
▪ "networkRole"
▪ "directionality"
▪ "active"
POST {{MCP_SERVER}}/nsi/api/v3/fres/{freid}/expectations
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1041
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
{
"data": {
"id": "-6343998190547029283::1234",
"type": "freExpectations",
"attributes": {
"userLabel": "discovered_userLabel_updated",
"layerRate": "OTSi",
"networkRole": "FREAP",
"directionality": "bidirectional",
"active": true
},
"relationships": {
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-6343998190547029283:1"
},
{
"type": "endPoints",
"id": "-6343998190547029283:2"
}
]
},
"serviceIntent": {
"data": {
"type": "serviceIntents",
"id": "-6343998190547029283"
}
}
}
},
"included": []
}
{
"data": {
"id": "-3155207493381222634",
"type": "fres",
"attributes": {
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"frequency": "193.750000",
"wavelength": "1547.32",
"channel": "CH-44"
},
"resourceState": "plannedAndDiscovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1042
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"overrides": [
{
"attributeName": "userLabel",
"policies": [
"plannedOverDiscovered"
]
},
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"userLabel": "philip_userLabel",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTSi",
"layerRateQualifier": "100G",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"reliability": "manual"
},
"relationships": {
"frePlanned": {
"data": {
"type": "frePlanned",
"id": "-3155207493381222634"
}
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
"id": "-3155207493381222634::1234"
}
]
},
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "-3155207493381222634"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-3155207493381222634:1"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1043
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"type": "endPoints",
"id": "-3155207493381222634:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "-121846333005516896"
},
{
"type": "fres",
"id": "-3033361160375705738"
}
]
}
}
},
"included": [
{
"id": "-3155207493381222634:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "a776afea-4c09-347d-be30-
9c171718c2d8::TPE_a776afea-4c09-347d-be30-9c171718c2d8::EQPT_1_27-1-PTP"
}
]
}
}
},
{
"id": "-3155207493381222634:2",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f1bcac91-566f-3b04-81ab-
c7328c22a858::TPE_f1bcac91-566f-3b04-81ab-c7328c22a858::EQPT_1_27-1-PTP"
}
]
}
}
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1044
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "-3155207493381222634::1234",
"type": "freExpectations",
"attributes": {
"userLabel": "philip_userLaber_changed",
"layerRate": "OTSi",
"networkRole": "FREAP",
"directionality": "bidirectional",
"active": true
},
"relationships": {
"serviceIntent": {
"data": {
"type": "serviceIntents",
"id": "-3155207493381222634"
}
}
}
}
]
}
PUT {{MCP_SERVER}}/nsi/api/v4/fres/{freid}/frePlanned
{
"data": {
"id": "-6343998190547029283",
"type": "frePlanned",
"attributes": {
"userLabel": "discovered_userLabel_updated"
}
},
"included": [
{}
]
}
Sample response
A response code of 201 indicates the successful update of the userLabel attribute. The response should
also return the updated FRE.
{
"data": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1045
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "-3155207493381222634",
"type": "fres",
"attributes": {
"deploymentState": "discovered",
"derivedAttributes": {
"intentLifeCyclePhase": "adopting discovered",
"intentDeploymentState": "waiting to adopt"
},
"displayData": {
"intentLifeCyclePhaseString": "Discovered",
"frequency": "193.750000",
"wavelength": "1547.32",
"channel": "CH-44"
},
"resourceState": "plannedAndDiscovered",
"policies": {
"defaultAttributeSourcePolicy": "discoveredOverPlanned",
"overrides": [
{
"attributeName": "userLabel",
"policies": [
"plannedOverDiscovered"
]
},
{
"attributeName": "attributes.userLabel",
"policies": [
"plannedOverDiscovered"
]
}
]
},
"userLabel": "philip_userLabel_changed",
"mgmtName": "",
"nativeName": "",
"layerRate": "OTSi",
"layerRateQualifier": "100G",
"networkRole": "FREAP",
"directionality": "bidirectional",
"topologySources": [
"stitched"
],
"active": true,
"additionalAttributes": {
"isActual": "true"
},
"reliability": "manual"
},
"relationships": {
"frePlanned": {
"data": {
"type": "frePlanned",
"id": "-3155207493381222634"
}
},
"freExpectations": {
"data": [
{
"type": "freExpectations",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1046
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"id": "-3155207493381222634::1234"
}
]
},
"freDiscovered": {
"data": {
"type": "freDiscovered",
"id": "-3155207493381222634"
}
},
"endPoints": {
"data": [
{
"type": "endPoints",
"id": "-3155207493381222634:1"
},
{
"type": "endPoints",
"id": "-3155207493381222634:2"
}
]
},
"decomposedFres": {
"data": [
{
"type": "fres",
"id": "-121846333005516896"
},
{
"type": "fres",
"id": "-3033361160375705738"
}
]
}
}
},
"included": [
{
"id": "-3155207493381222634:1",
"type": "endPoints",
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "a776afea-4c09-347d-be30-
9c171718c2d8::TPE_a776afea-4c09-347d-be30-9c171718c2d8::EQPT_1_27-1-PTP"
}
]
}
}
},
{
"id": "-3155207493381222634:2",
"type": "endPoints",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1047
Blue Planet MCP API Reference Guide, Release 18.06 Transport service management
"attributes": {
"role": "symmetric",
"directionality": "bidirectional"
},
"relationships": {
"tpes": {
"data": [
{
"type": "tpes",
"id": "f1bcac91-566f-3b04-81ab-
c7328c22a858::TPE_f1bcac91-566f-3b04-81ab-c7328c22a858::EQPT_1_27-1-PTP"
}
]
}
}
},
{
"id": "-3155207493381222634",
"type": "frePlanned",
"attributes": {
"userLabel": "philip_userLabel_changed",
"active": true
},
"relationships": {}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1048
Blue Planet MCP API Reference Guide, Release 18.06 Service port trails
Sample request
GET {{MCP_SERVER}}/api/v1/serviceTrails/{freid}
Services are identified using an FRE ID (the identifier of the FRE to be retrieved). Obtain the FRE ID of the
service you are interested in from the Service inventory (FREs) API.
Sample response
{
"data": {
"id": "1",
"type": "serviceTrails",
"attributes": {
"trails": [
{
"rxDirection": [
{
"id": "NC1",
"type": "networkConstruct"
},
{
"id": "EQ1",
"type": "equipment"
},
{
"id": "PTP1",
"type": "tpes"
},
{
"id": "FRE1",
"type": "fres"
},
{
"id": "NC2",
"type": "networkConstruct"
},
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1049
Blue Planet MCP API Reference Guide, Release 18.06 Service port trails
"id": "PTP2",
"type": "tpes"
},
{
"id": "EQ2",
"type": "equipment"
}
],
"txDirection": [
{
"id": "NC2",
"type": "networkConstruct"
},
{
"id": "EQ2",
"type": "equipment"
},
{
"id": "PTP2",
"type": "tpes"
},
{
"id": "FRE1",
"type": "fres"
},
{
"id": "NC1",
"type": "networkConstruct"
},
{
"id": "PTP1",
"type": "tpes"
},
{
"id": "EQ1",
"type": "equipment"
}
]
}
]
}
}
The service trails API reports the port trail of a given service. The information provided includes the
network constructs, equipment supporting FRE and TPEs along the route of the service. The trail provided
is a complete and ordered list of ports, not just at the particular layer (OTU4, for example) of the provided
service.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1050
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
Correlation engine
This section describes some of the alarm to service correlation tasks that you can perform using MCP
REST APIs.
Sample request
GET {{MCP_SERVER}}/events-to-service-correlator/api/v1/affectedServices?alarmId={{alarmId}}
Sample response
For 6500:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1051
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
{
"data": [{
"attributes": {
"inventoryType": "fre",
"id": "-5686227573084971313",
"link": "/ui/#/photonics/-5686227573084971313",
"nativeName": "",
"serviceName": "",
"serviceType": "PHY"
},
"id": "-5686227573084971313",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "-3605809751029117228",
"link": "/ui/#/photonics/-3605809751029117228",
"nativeName": "",
"serviceName": "",
"serviceType": "OMS"
},
"id": "-3605809751029117228",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "4837043780625225707",
"link": "/ui/#/photonics/4837043780625225707",
"nativeName": "",
"serviceName": "",
"serviceType": "OTS"
},
"id": "4837043780625225707",
"type": "affectedService"
}
],
"meta": {
"count": "3"
}
}
For Waveserver:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1052
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
{
"data": [{
"attributes": {
"inventoryType": "fre",
"id": "-4264534818257075898",
"link": "/ui/#/photonics/-4264534818257075898",
"nativeName": "",
"serviceName": "",
"serviceType": "DSR_ETHERNET"
},
"id": "-4264534818257075898",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "8360887939273810900",
"link": "/ui/#/photonics/8360887939273810900",
"nativeName": "",
"serviceName": "",
"serviceType": "DSR_ETHERNET"
},
"id": "8360887939273810900",
"type": "affectedService"
}
],
"meta": {
"count": "2"
}
}
Sample request
GET {{MCP_SERVER}}/events-to-service-
correlator/api/v1/affectedServicesCounts?alarmIds={{alarmId}}
Note: Provide multiple values (alarmIds) in new lines (at least one required).
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1053
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
{
"data": {
"attributes": {
"counts": {
"-1208277793752683809": "2",
"4837043780625225707": "0"
}
},
"id": "1",
"type": "affectedServicesCounts"
}
}
Sample request
GET {{MCP_SERVER}}/events-to-service-
correlator/api/v1/correlatedAlarmsForService?serviceId={{serviceId}}
Sample response
{
"data": [{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Adjacency Mismatch",
"affected-inventory-ids": [
"55b304c5-f4fd-3a49-8a2a-7a0840552e4f::TPE_55b304c5-f4fd-3a49-
8a2a-7a0840552e4f::EQPT_1_6-6-PTP"
],
"alarm-id": "6386728913028953514",
"condition-severity": "MINOR",
"device-id": "55b304c5-f4fd-3a49-8a2a-7a0840552e4f",
"device-name": "NE5",
"first-raise-time": "2017-07-09T16:35:22.000Z",
"id": "6386728913028953514",
"ip-address": "10.182.10.105",
"last-raise-time": "2017-07-11T17:45:32.000Z",
"mac-address": "000102030500",
"native-condition-type": "ADJMM_OTS",
"node-id": "27c487f2-c188-4023-bb0e-c61381276268",
"node-type": "6500",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1054
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
"number-of-occurrences": 3,
"resource": "ADJ-1-6-6",
"service-affecting": "NON_SERVICE_AFFECTING",
"state": "ACTIVE"
},
"id": "6386728913028953514",
"type": "FilteredAlarm"
},
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Adjacency Mismatch",
"affected-inventory-ids": [
"c465bba4-c689-3bd0-85c9-281b3188b050::TPE_c465bba4-c689-3bd0-
85c9-281b3188b050::EQPT_1_6-6-PTP"
],
"alarm-id": "-3627459417739413197",
"condition-severity": "MINOR",
"device-id": "c465bba4-c689-3bd0-85c9-281b3188b050",
"device-name": "NE1",
"first-raise-time": "2017-07-09T16:35:21.000Z",
"id": "-3627459417739413197",
"ip-address": "10.182.10.101",
"last-raise-time": "2017-07-11T17:45:37.000Z",
"mac-address": "000102030100",
"native-condition-type": "ADJMM_OTS",
"node-id": "698df8b6-17d7-4516-8628-11d149a0cdd0",
"node-type": "6500",
"number-of-occurrences": 3,
"resource": "ADJ-1-6-6",
"service-affecting": "NON_SERVICE_AFFECTING",
"state": "ACTIVE"
},
"id": "-3627459417739413197",
"type": "FilteredAlarm"
},
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Circuit Pack Missing",
"affected-inventory-ids": [
"c465bba4-c689-3bd0-85c9-281b3188b050::EQPT_1_11"
],
"alarm-id": "1409086176913114507",
"condition-severity": "CRITICAL",
"device-id": "c465bba4-c689-3bd0-85c9-281b3188b050",
"device-name": "NE1",
"first-raise-time": "2017-07-09T14:58:16.000Z",
"id": "1409086176913114507",
"ip-address": "10.182.10.101",
"last-raise-time": "2017-07-10T13:56:31.000Z",
"mac-address": "000102030100",
"native-condition-type": "EQPT_MISSING",
"node-id": "698df8b6-17d7-4516-8628-11d149a0cdd0",
"node-type": "6500",
"number-of-occurrences": 2,
"resource": "WSSOPM-1-11",
"service-affecting": "SERVICE_AFFECTING",
"state": "ACTIVE"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1055
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
},
"id": "1409086176913114507",
"type": "FilteredAlarm"
},
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Adjacency Mismatch",
"affected-inventory-ids": [
"c465bba4-c689-3bd0-85c9-281b3188b050::TPE_c465bba4-c689-3bd0-
85c9-281b3188b050::EQPT_1_6-5-PTP"
],
"alarm-id": "7039463220315407014",
"condition-severity": "MINOR",
"device-id": "c465bba4-c689-3bd0-85c9-281b3188b050",
"device-name": "NE1",
"first-raise-time": "2017-07-09T16:35:21.000Z",
"id": "7039463220315407014",
"ip-address": "10.182.10.101",
"last-raise-time": "2017-07-11T17:45:37.000Z",
"mac-address": "000102030100",
"native-condition-type": "ADJMM_OTS",
"node-id": "698df8b6-17d7-4516-8628-11d149a0cdd0",
"node-type": "6500",
"number-of-occurrences": 3,
"resource": "ADJ-1-6-5",
"service-affecting": "NON_SERVICE_AFFECTING",
"state": "ACTIVE"
},
"id": "7039463220315407014",
"type": "FilteredAlarm"
},
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Adjacency Mismatch",
"affected-inventory-ids": [
"55b304c5-f4fd-3a49-8a2a-7a0840552e4f::TPE_55b304c5-f4fd-3a49-
8a2a-7a0840552e4f::EQPT_1_6-5-PTP"
],
"alarm-id": "-6008538765992505493",
"condition-severity": "MINOR",
"device-id": "55b304c5-f4fd-3a49-8a2a-7a0840552e4f",
"device-name": "NE5",
"first-raise-time": "2017-07-09T16:35:22.000Z",
"id": "-6008538765992505493",
"ip-address": "10.182.10.105",
"last-raise-time": "2017-07-11T17:45:32.000Z",
"mac-address": "000102030500",
"native-condition-type": "ADJMM_OTS",
"node-id": "27c487f2-c188-4023-bb0e-c61381276268",
"node-type": "6500",
"number-of-occurrences": 3,
"resource": "ADJ-1-6-5",
"service-affecting": "NON_SERVICE_AFFECTING",
"state": "ACTIVE"
},
"id": "-6008538765992505493",
"type": "FilteredAlarm"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1056
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
}
],
"meta": {
"count": "5"
}
}
Sample request
GET {{MCP_SERVER}}/events-to-service-correlator/api/v1/affectedServices?alarmId={{alarmId}}
Sample response
{
"data": [
{
"attributes": {
"inventoryType": "fre",
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_scProtPw",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_scProtPw",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_scProtPw",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "1268213195689691597",
"link": "/ui/#/packet-services/1268213195689691597",
"nativeName": "",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1057
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "1268213195689691597",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "-5518214677590821756",
"link": "/ui/#/packet-services/-5518214677590821756",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "-5518214677590821756",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "889845168507751129",
"link": "/ui/#/packet-services/889845168507751129",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "889845168507751129",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_JeffTestEvpl_3",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_JeffTestEvpl_3",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_JeffTestEvpl_3",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_EVPL_PPW_min",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_EVPL_PPW_min",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_EVPL_PPW_min",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1058
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_apMcpMpls",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_apMcpMpls",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_apMcpMpls",
"type": "affectedService"
}
],
"meta": {
"count": "7"
}
}
Sample request
GET {{MCP_SERVER}}/events-to-service-
correlator/api/v1/affectedServicesCounts?alarmIds={{alarmId}}
Note: Provide multiple values (alarmIds) in new lines (at least one required).
Sample response
{
"data": {
"attributes": {
"counts": {
"5958100796168664834": "2"
}
},
"id": "1",
"type": "affectedServicesCounts"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1059
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
Sample request
GET {{MCP_SERVER}}/events-to-service-
correlator/api/v1/correlatedAlarmsForService?serviceId={{serviceId}}
Sample response
{
"data": [
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Link Down",
"affected-inventory-ids": [
"c9da2538-aaef-37ea-ba63-b2692b2bbf9c::TPE_1_7_PTP"
],
"alarm-id": "-3128628658206855348",
"condition-severity": "WARNING",
"device-id": "c9da2538-aaef-37ea-ba63-b2692b2bbf9c",
"device-name": "87_5783n4",
"first-raise-time": "2017-02-02T19:31:32.000Z",
"id": "-3128628658206855348",
"ip-address": "10.182.42.134",
"last-raise-time": "2017-02-02T19:31:32.000Z",
"mac-address": "0x02b62a860000",
"native-condition-type": "Link Down",
"node-id": "05dd039d-b08f-49bf-9398-f3f8dc0a520b",
"node-type": "8700",
"number-of-occurrences": 1,
"resource": "LM1-P7",
"resource-id": "1/7",
"service-affecting": "UNKNOWN",
"state": "ACTIVE"
},
"id": "-3128628658206855348",
"type": "FilteredAlarm"
},
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Link Down",
"affected-inventory-ids": [
"c68a556c-655b-38b4-beee-b0e72a9f8ff7::EQPT_1_10"
],
"alarm-id": "4221738357305526282",
"condition-severity": "WARNING",
"device-id": "c68a556c-655b-38b4-beee-b0e72a9f8ff7",
"device-name": "87_5783n2",
"first-raise-time": "2017-02-02T19:27:38.000Z",
"id": "4221738357305526282",
"ip-address": "10.182.42.132",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1060
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
"last-raise-time": "2017-02-02T19:27:38.000Z",
"mac-address": "0x02b62a840000",
"native-condition-type": "Link Down",
"node-id": "8fb511a8-4b4e-4ed9-8efd-44785dbe3332",
"node-type": "8700",
"number-of-occurrences": 1,
"resource": "LM1-P10",
"resource-id": "1/10",
"service-affecting": "UNKNOWN",
"state": "ACTIVE"
},
"id": "4221738357305526282",
"type": "FilteredAlarm"
},
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Link Down",
"affected-inventory-ids": [
"c9da2538-aaef-37ea-ba63-b2692b2bbf9c::EQPT_1_7"
],
"alarm-id": "-3128628658206855348",
"condition-severity": "WARNING",
"device-id": "c9da2538-aaef-37ea-ba63-b2692b2bbf9c",
"device-name": "87_5783n4",
"first-raise-time": "2017-02-02T19:31:32.000Z",
"id": "-3128628658206855348",
"ip-address": "10.182.42.134",
"last-raise-time": "2017-02-02T19:31:32.000Z",
"mac-address": "0x02b62a860000",
"native-condition-type": "Link Down",
"node-id": "05dd039d-b08f-49bf-9398-f3f8dc0a520b",
"node-type": "8700",
"number-of-occurrences": 1,
"resource": "LM1-P7",
"resource-id": "1/7",
"service-affecting": "UNKNOWN",
"state": "ACTIVE"
},
"id": "-3128628658206855348",
"type": "FilteredAlarm"
},
{
"attributes": {
"acknowledge-state": "NOT_ACKNOWLEDGED",
"additional-text": "Link Down",
"affected-inventory-ids": [
"c68a556c-655b-38b4-beee-b0e72a9f8ff7::TPE_1_10_PTP"
],
"alarm-id": "4221738357305526282",
"condition-severity": "WARNING",
"device-id": "c68a556c-655b-38b4-beee-b0e72a9f8ff7",
"device-name": "87_5783n2",
"first-raise-time": "2017-02-02T19:27:38.000Z",
"id": "4221738357305526282",
"ip-address": "10.182.42.132",
"last-raise-time": "2017-02-02T19:27:38.000Z",
"mac-address": "0x02b62a840000",
"native-condition-type": "Link Down",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1061
Blue Planet MCP API Reference Guide, Release 18.06 Correlation engine
"node-id": "8fb511a8-4b4e-4ed9-8efd-44785dbe3332",
"node-type": "8700",
"number-of-occurrences": 1,
"resource": "LM1-P10",
"resource-id": "1/10",
"service-affecting": "UNKNOWN",
"state": "ACTIVE"
},
"id": "4221738357305526282",
"type": "FilteredAlarm"
}
],
"meta": {
"count": "4"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1062
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Performance monitoring
The Performance Metrics or Performance Monitoring uService orchestrates the collection of metrics from
resources. When resources are added to the system, PM uService detects and determines their
capabilities in respect to collection intervals and available data resolution. A collection schedule for the
resource is created and started. PM uService offers a REST API to change collection schedules for
individual resources or resource types. PM uService is the central (orchestrating) part of the Performance
Monitoring Solution.
Configuration
PM configuration is driven by the Global Configuration Service (GCS). All configuration options, listed
below, can be changed at runtime using the GCS REST API. No PM-uService restart is required, for the
changes to take effect.
The following request will update all PM instances that are active to true.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1063
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
The HPMRA listens on port 2222 by default. If you desire to change this port you must change the HPM
port configuration above, as well as the port configuration of the HPMRA uService. To do so use the
following curl. (No restart required):
REST APIs
You can monitor performance using MCP REST APIs.
When a new supported network element is enrolled, collection of historical performance metrics (PM)
data is automatically initiated. By default, data collection is performed whenever new PM data becomes
available. For example, for a 6500 network element, collection of the 15_MINUTE bins is done every 15
minutes and collection of the 24_HOUR bins is done every 24 hours.
MCP collects the real-time PM data directly from the network elements.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1064
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
The threshold MCP REST APIs allow the user to create thresholds, threshold groups, and resource profiles
in order to receive customizable alarm alerts when a certain performance metric parameter crosses a
threshold.
1. Create threshold(s).
2. Create threshold group(s) containing the created threshold(s).
3. Create resource profile(s) containing the created threshold group(s).
Note: All request success response codes are 202 Accepted. Validation is performed immediately and if
valid the request is accepted for processing. Acceptance does not guarantee processing completion. If
the request is not completed within several seconds, processing may have failed due to conflicting with a
simultaneous request.
• Threshold endpoints
• Threshold group endpoints
• Profile endpoints
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1065
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
POST {{MCP_SERVER}}/pm/api/v1/queries
Example body
{
"data" : {
"type": "queries",
"attributes" : {
"criteria" : {
"granularity" :["15_MINUTE"],
"parameters": ["OPR-OTS"]
},
"measurementPoints" : [{
"resourceId": "0e9564a3-ce67-3a5e-ab1f-06137e0648c4::TPE_0e9564a3-
ce67-3a5e-ab1f-06137e0648c4::EQPT_1_11-1-PTP",
"resourceType": "TPE",
"nodeId": "0e9564a3-ce67-3a5e-ab1f-06137e0648c4",
"resourceObject": {
"type": "pmData",
"location": {
"shelf": "1",
"slot": "11",
"port": "1"
}
}
}]
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1066
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"id": "7ef3a4a2-bf98-4d1c-8659-33b558e1fb71",
"type": "results",
"attributes": {
"metrics": [
{
. . .
"tags": {
"resourceId": "19703988-4bcf-4a20-bde8-8e1956656ae1::TPE_19703988-
4bcf-4a20-bde8-8e1956656ae1::EQPT_11_1-6-PTP",
"facilityNameNative": "OPTMON-11-1-6",
"parameterNative": "OPRAVG-OTS",
"unit": "",
"binIndex": "0",
"granularity": "UNTIMED",
"locationNative": "NEND",
"parameter": "RX_OPTICAL_POWER_AVG",
"granularityNative": "1-UNT",
"location": "NEAR_END",
"directionNative": "RCV",
"direction": "RECEIVE"
},
"meta_tags": {
"channelStatusNative": "",
"portmodeNative": "NONE",
"binState": "NOT AVAILABLE",
"binStateNative": "NA",
"channelID": "",
"altAidNative": "OPTMON-1-1-1-6"
},
"samples": [
{
"time": "2016-45-16T22:45-23:398220",
"value": -50
}
]
},
. . .
"errors": [],
"status": "completed"
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1067
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
• “bin index” filtration is not supported and 54xx RA will always collect real time PM from current bin
(which is bin index “0”). Any range given ( e.g. 0,1-3,5-7,21 | 0-32 |1,3,5,7,9) will be ignored and only
current bin (which is bin index “0”) will be retrieved and returned.
• "suppress" filtration is not supported as 54xx device does not support to suppress any data.
• “parameter” filtration is not supported.
• "location" based retrieval is not supported and resourceObject in retrieval request should contain valid
"nativePmFacilityName" for a given facility.
Sample request
{
"data": {
"attributes": {
"criteria": {
"binIndex": "0",
"granularity": [
"24_HOUR"
],
"parameters": [],
"suppress": "NONE"
},
"measurementPoints": [
{
"nodeId": "3fa9b9e7-a772-3354-adb0-12c92373cb41",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-a772-
3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"resourceObject": {
"nativePmFacilityName": "PTP-1-A-7-2",
"type": "pmData"
},
"resourceType": "TPE"
}
]
}
}
}
Sample response
{
"data": [
{
"attributes": {
"errors": null,
"lastBatch": true,
"metrics": [
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1068
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "TRANSMIT",
"directionNative": "TRMT",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "TX_OPTICAL_POWER_MIN",
"parameterNative": "optLowest",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -11
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "TRANSMIT",
"directionNative": "TRMT",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "TX_OPTICAL_POWER",
"parameterNative": "optActual",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -11
}
],
"version": "1.4"
},
"type": "metrics"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1069
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "TRANSMIT",
"directionNative": "TRMT",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "TX_OPTICAL_POWER_HIGH_ACTUAL",
"parameterNative": "optHighActual",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -11
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "TRANSMIT",
"directionNative": "TRMT",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "TX_OPTICAL_POWER_LOW_ACTUAL",
"parameterNative": "optLowActual",
"unit": "dBm"
},
"values": [
{
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1070
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"time": "2018-05-21T10:08-00:00",
"value": -11
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "TRANSMIT",
"directionNative": "TRMT",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "TX_OPTICAL_POWER_AVG",
"parameterNative": "optAverage",
"unit": ""
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -99999
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "TRANSMIT",
"directionNative": "TRMT",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1071
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"locationNative": "ALL",
"parameter": "TX_OPTICAL_POWER_NORMALIZED",
"parameterNative": "optNormalized",
"unit": ""
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": 3
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "TRANSMIT",
"directionNative": "TRMT",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "TX_OPTICAL_POWER_MAX",
"parameterNative": "optHighest",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -11
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1072
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"tags": {
"direction": "NOT APPLICABLE",
"directionNative": "NA",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "DIFFERENTIAL GROUP DELAY - AVERAGE",
"parameterNative": "dgdAverage",
"unit": ""
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -99999
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "NOT APPLICABLE",
"directionNative": "NA",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "DIFFERENTIAL GROUP DELAY - HIGHEST",
"parameterNative": "dgdHighest",
"unit": "ps"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": 0
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1073
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "NOT APPLICABLE",
"directionNative": "NA",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "DIFFERENTIAL GROUP DELAY - NORMALIZED",
"parameterNative": "dgdNormalized",
"unit": ""
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -99999
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "NOT APPLICABLE",
"directionNative": "NA",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "DIFFERENTIAL GROUP DELAY - HIGHACTUAL",
"parameterNative": "dgdHighActual",
"unit": "ps"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": 0
}
],
"version": "1.4"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1074
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "NOT APPLICABLE",
"directionNative": "NA",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "DIFFERENTIAL GROUP DELAY - LOWEST",
"parameterNative": "dgdLowest",
"unit": "ps"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": 0
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "NOT APPLICABLE",
"directionNative": "NA",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "DIFFERENTIAL GROUP DELAY - LOWACTUAL",
"parameterNative": "dgdLowActual",
"unit": "ps"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1075
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": 0
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "NOT APPLICABLE",
"directionNative": "NA",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "DIFFERENTIAL GROUP DELAY - ACTUAL",
"parameterNative": "dgdActual",
"unit": "ps"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": 0
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "RECEIVE",
"directionNative": "RCV",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1076
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "RX_OPTICAL_POWER_AVG",
"parameterNative": "oprAverage",
"unit": ""
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -99999
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "RECEIVE",
"directionNative": "RCV",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "RX_OPTICAL_POWER_MAX",
"parameterNative": "oprHighest",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -10.2
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1077
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "RECEIVE",
"directionNative": "RCV",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "RX_OPTICAL_POWER_NORMALIZED",
"parameterNative": "oprNormalized",
"unit": ""
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": 3
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "RECEIVE",
"directionNative": "RCV",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "RX_OPTICAL_POWER_HIGH_ACTUAL",
"parameterNative": "oprHighActual",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -10.2
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1078
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "RECEIVE",
"directionNative": "RCV",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "RX_OPTICAL_POWER_MIN",
"parameterNative": "oprLowest",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -10.2
}
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "RECEIVE",
"directionNative": "RCV",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "RX_OPTICAL_POWER_LOW_ACTUAL",
"parameterNative": "oprLowActual",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -10.2
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1079
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
],
"version": "1.4"
},
"type": "metrics"
},
{
"attributes": {
"meta_tags": {
"altAidNative": " ",
"binState": "INVALID",
"binStateNative": "true",
"portmodeNative": "NONE"
},
"nativePmFacilityName": "PTP-1-A-7-2",
"resourceId": "3fa9b9e7-a772-3354-adb0-12c92373cb41::TPE_3fa9b9e7-
a772-3354-adb0-12c92373cb41::EQPT_A_7_2-PTP",
"tags": {
"direction": "RECEIVE",
"directionNative": "RCV",
"facilityNameNative": "PTP-1-A-7-2",
"granularity": "24_HOUR",
"granularityNative": "24-HOUR",
"location": "ALL",
"locationNative": "ALL",
"parameter": "RX_OPTICAL_POWER",
"parameterNative": "oprActual",
"unit": "dBm"
},
"values": [
{
"time": "2018-05-21T10:08-00:00",
"value": -10.2
}
],
"version": "1.4"
},
"type": "metrics"
}
],
"nodeId": "3fa9b9e7-a772-3354-adb0-12c92373cb41",
"requestId": "91b786f0-e0dc-4570-4711-27d9909c2fca"
},
"type": "pmResults"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1080
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Requirements
Sample request
POST {{MCP_SERVER}}/pm/api/v1/query/metrics
{
"data": {
"type": "queryMetrics",
"attributes": {
"range": {
"type": "absolute",
"unit": "MILLISECONDS",
"value": 0
"startTime": {{startTime}},
"endTime": {{endTime}}
},
"filter": [
"and",
["=", "parameterNative", "OPTMAX-OCH"]
]
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1081
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": {
"type": "queryMetrics",
"attributes": {
"range": {
"type": "relative",
"unit": "HOURS",
"value": 3
},
"filter": [
"and",
["=", "parameterNative", "OPTMAX-OCH"]
]
}
}
}
Filters can be defined for any tag as well as the device name:
{
"data": {
"attributes": {
"range": {
"type": "absolute",
"startTime": "2016-10-26T15:50:11.152-04:00",
"endTime": "2016-10-26T15:50:11.152-04:00"
},
"filter": [
"and",
[
"key",
"PV0445A"
],
[
"=",
"facilityNameNative",
"OMS-4-2-1"
]
]
}
}
}
Note: The device name is the key of the time series, and that is why the syntax for filtering on device
name is a bit different from filtering on tags.
For more information on the API, refer to the swagger documentation in the MCP UI.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1082
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
When a Network Element (NE) is enrolled, it will get assigned a default configuration based on its type
(i.e: 6500, 8700, …). If no such default configuration yet exists for the Network Element type, the
capabilities of the device are requested from the Resource Adapter (RA). The default configuration is
derived from the device’s capabilities.
Default configuration
To retrieve a list of all devices and their default configurations, use the Performance metrics configs API.
Sample request
GET {{MCP_SERVER}}/pm/api/v1/configs
The default configuration for a device can be changed. A change only applies to subsequently enrolled
Network Elements. Already enrolled NEs are not affected by the change.
Sample request
PUT {{MCP_SERVER}}/pm/api/v1/configs/{id}
Sample response
{
"data": [
{
"attributes": {
"name": "15_MINUTES",
"pollingInterval": {
"unit": "MINUTES",
"value": 15
},
"resolution": {
"unit": "MINUTES",
"value": 15
}
},
"id": "6500 14-Slot Converged Optical Shelf Assembly",
"type": "PmConfigTemplate"
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1083
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Validation rules
The default configuration update is rejected if any of the following conditions is violated:
Sample request
PUT {{MCP_SERVER}}/pm/api/v1/nodes/{nodeId}/config
Sample response
{
"data": [
{
"attributes": {
"enabled": true,
"name": "15_MINUTES",
"pollingInterval": {
"unit": "MINUTES",
"value": 15
},
"resolution": {
"unit": "MINUTES",
"value": 15
}
}
}
]
}
Validation rules
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1084
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
This method does not change the PM collection interval of any other network elements; only a single
network element is impacted. To change the default PM collection interval of new network elements, see
Change the PM collection interval of new network elements.
Attention You must carefully consider the upper and lower bounds of PM collection. If the polling
interval of a PM type is set too low, CPU cycles are wasted by the hardware and by the Blue Planet
system. For example, collecting the 24_HOUR bin every hour results in 23 duplicate collections.
Conversely, most network elements only store performance metrics for a limited time and setting
the collection interval too high could result in lost performance metrics. For example, collecting the
15_MINUTE bin every 24 hours results in the loss of 16 hours of metrics every day because the
network element only stores a maximum of 8 hours of 15_MINUTE PMs.
Requirements
Make sure you know the Network Construct Identifier (NCID) of the network element to be configured.
Query request
To query the PM collection intervals for a network element, use the Performance metrics configure
network elements API.
Sample request
GET {{MCP_SERVER}}/pm/api/v1/nodes/{nodeId}/config
Sample reponse
{
"data": [
{
"attributes": {
"enabled": true,
"name": "15_MINUTES",
"pollingInterval": {
"unit": "MINUTES",
"value": 15
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1085
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"resolution": {
"unit": "MINUTES",
"value": 15
}
},
"id": "616727f1-f655-3b3a-b30a-280e3b3eca52",
"relationships": {
"node": {
"links": {
"self": "/pm/api/v1/nodes/616727f1-f655-3b3a-b30a-280e3b3eca52"
}
},
"template": {
"links": {
"self": "/pm/api/v1/configs/6500 32-Slot Packet-Optical Shelf
Assembly"
}
}
},
"type": "PmNodeConfig"
},
{
"attributes": {
"enabled": true,
"name": "24_HOURS",
"pollingInterval": {
"unit": "HOURS",
"value": 24
},
"resolution": {
"unit": "HOURS",
"value": 24
}
},
"id": "616727f1-f655-3b3a-b30a-280e3b3eca52",
"relationships": {
"node": {
"links": {
"self": "/pm/api/v1/nodes/616727f1-f655-3b3a-b30a-280e3b3eca52"
}
},
"template": {
"links": {
"self": "/pm/api/v1/configs/6500 32-Slot Packet-Optical Shelf
Assembly"
}
}
},
"type": "PmNodeConfig"
}
]
}
Update request
To update the PM collection intervals for a network element, use the Performance metrics configure
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1086
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Action
Sample request
PUT {{MCP_SERVER}}/pm/api/v1/nodes/{nodeId}/config
{
"data": [
{
"id": "46b9f2a2-7f48-3aaf-b9c5-37842e98432f",
"type": "PmNodeConfig",
"attributes": {
"name": "15_MINUTES",
"enabled": true,
"resolution": {
"unit": "MINUTES",
"value": 15
},
"pollingInterval": {
"unit": "HOURS",
"value": 3
}
}
}
]
}
Sample response
A response code of 201 indicates successful application of collection interval value updates.
This procedure does not impact the PM collection interval of network elements enrolled before this
procedure is performed. To change the PM collection interval of network elements enrolled before this
procedure was performed, see Change the PM collection interval of an enrolled network element.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1087
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Attention You must carefully consider the upper and lower bounds of PM collection. If the polling
interval of a PM type is set too low, CPU cycles are wasted by the hardware and by the Blue Planet
system. For example, collecting the 24_HOUR bin every hour results in 23 duplicate collections.
Conversely, most network elements only store performance metrics for a limited time and setting
the collection interval too high could result in lost performance metrics. For example, collecting the
15_MINUTE bin every 24 hours results in the loss of 16 hours of metrics every day because the
network element only stores a maximum of 8 hours of 15_MINUTE PMs.
Requirements
Query request
To query the current PM collection intervals for a device type, use the Performance metrics configure
device types API.
Sample request
GET {{MCP_SERVER}}/pm/api/v1/configs/{id}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1088
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"attributes": {
"name": "15_MINUTES",
"pollingInterval": {
"unit": "MINUTES",
"value": 15
},
"resolution": {
"unit": "MINUTES",
"value": 15
}
},
"id": "6500 32-Slot Packet-Optical Shelf Assembly",
"type": "ConfigTemplate"
},
{
"attributes": {
"name": "24_HOURS",
"pollingInterval": {
"unit": "HOURS",
"value": 24
},
"resolution": {
"unit": "HOURS",
"value": 24
}
},
"id": "6500 32-Slot Packet-Optical Shelf Assembly",
"type": "ConfigTemplate"
}
]
}
Update request
To update the PM collection intervals for a device type, use the Performance metrics configure device
types API.
Action
Sample request
PUT {{MCP_SERVER}}/pm/api/v1/configs/{id}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1089
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"id": "6500 32-Slot Packet-Optical Shelf Assembly",
"type": "ConfigTemplate",
"attributes": {
"name": "15_MINUTES",
"resolution": {
"unit": "MINUTES",
"value": 15
},
"pollingInterval": {
"unit": "HOURS",
"value": 3
}
}
}
]
}
Sample response
A response code of 201 indicates successful application of collection interval value updates.
To query operational measurements for a facility, see Query operational measurements for a facility.
Requirements
As part of the API call, you will need to specify some of the following:
Note: The start time and end time must be before the current date and time.
Note: For historical data, granularity will be determined by MCP based on the time range and the
performance factor.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1090
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
POST {{MCP_SERVER}}/tdc/api/v1/diag/operMeas
{
"data": {
"freIds": [
"string"
],
"granularity": "24-hour",
"synchronous": true
}
}
To query operational measurements for a service, see Query operational measurements for a service.
Requirements
As part of the API call, you will need to specify some of the following:
Note: The start time and end time must be before the current date and time.
• startTime = the date and time of the earliest PMs you wnat to view, in the Coordinated Universal Time
(UTC) format ‘YYYY-MM-ddTHH:mm:ss.SSSZ’.
• endTime = the date and time of the latest PMs you want to view, in the Coordinated Universal Time
(UTC) format ‘YYYY-MM-ddTHH:mm:ss.SSSZ’.
• granularity: "24-hour" or "15-minute"
• range: either "relative" or "absolute"
• units: only applies to the relative time range; "minutes", "days", "weeks", or "months"
• ncName: ID of the network element hosting the facility
• reportingFacility: the ID of the facility from which PM data is drawn
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1091
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
POST {{MCP_SERVER}}/tdc/api/v2/diag/operMeas/facilities
{
"data": {
"ncName": "string",
"reportingFacility": "string",
"granularity": "24-hour",
"parameterNatives": [
"string"
],
"range": {
"type": "relative",
"unit": "days",
"value": "string",
"startTime": "string",
"endTime": "string"
},
"synchronous": false
}
}
{
"data": {
"ncName": "PV0394A",
"reportingFacility": "OTM4-12-6-1",
"granularity": "15-minute",
"parameterNatives": [
"ES-OTU",
"SES-OTU"
],
"range": {
"type": "relative",
"unit": "minutes",
"value": "120"
},
"synchronous": true
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1092
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": {
"ncName": "PV0394A",
"reportingFacility": "OTM4-12-7-1",
"granularity": "24-hour",
"parameterNatives": [
"ES-OTU",
"SES-OTU"
],
"range": {
"type": "absolute",
"startTime": "2017-05-02T15:50:11.152-04:00",
"endTime": "2017-05-05T15:50:11.152-04:00"
},
"synchronous": true
}
}
Threshold endpoints
A threshold consists of the following:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1093
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
POST {{MCP_SERVER}}/pmprocessor/api/v1/thresholds
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1094
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"type": "threshold",
"attributes": {
"name": "MyMaxThreshold",
"thresholdType": "max",
"maxValue": {
"value": 100
},
"pmParameter": "DEMO-PM-PARAMETER",
"tags" : {
"granularityNative": "15-MIN",
},
"action": {
"alarmAlert": {
"severity": "CRITICAL"
}
}
}
},
{
"type": "threshold",
"attributes": {
"name": "MyMinThreshold",
"thresholdType": "min",
"minValue": {
"value": 10
},
"pmParameter": "DEMO_PM_PARAMETER",
"action": {
"alarmAlert": {
"severity": "CRITICAL"
}
}
}
},
{
"type": "threshold",
"attributes": {
"name": "MyDeviationThreshold",
"thresholdType": "deviation",
"deviationValue": {
"value": 20,
"BaseValue": 50
},
"pmParameter": "DEMO_PM_PARAMETER",
"action": {
"alarmAlert": {
"severity": "MAJOR"
}
}
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1095
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
Sample response
{
"data": {
"id": "<ID FOR MyMaxThreshold>",
"type": "threshold",
"attributes": {
"name": "MyUpdatedMaxThreshold",
"thresholdType": "max",
"maxValue": {
"value": 110
},
"pmParameter": "DEMO_PM_PARAMETER",
"action": {
"alarmAlert": {
"severity": "CRITICAL"
}
}
}
}
}
Sample request
PUT {{MCP_SERVER}}/pmprocessor/api/v1/thresholds
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1096
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"id": "<ID FOR MyMaxThreshold>",
"type": "threshold",
"attributes": {
"name": "MyMaxThreshold",
"thresholdType": "max",
"maxValue": {
"value": 90
},
"pmParameter": "DEMO_PM_PARAMETER_2",
"action": {
"alarmAlert": {
"severity": "MAJOR"
}
}
}
},
{
"id": "<ID FOR MyMinThreshold>",
"type": "threshold",
"attributes": {
"name": "MyMinThreshold",
"thresholdType": "min",
"minValue": {
"value": 15
},
"pmParameter": "DEMO_PM_PARAMETER",
"action": {
"alarmAlert": {
"severity": "CRITICAL"
}
}
}
},
{
"id": "<ID FOR MyDeviationThreshold>",
"type": "threshold",
"attributes": {
"name": "MyDeviationThreshold",
"thresholdType": "deviation",
"deviationValue": {
"value": 30,
"BaseValue": 50
},
"pmParameter": "DEMO_PM_PARAMETER",
"action": {
"alarmAlert": {
"severity": "CRITICAL"
}
}
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1097
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
The threshold will be deleted from all threshold groups, affecting the containing resource profiles. Any
alerts associated with the deleted threshold will be discontinued.
Sample request
Sample request
GET {{MCP_SERVER}}/pmprocessor/api/v1/thresholds
• a user defined ID
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1098
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
POST {{MCP_SERVER}}/pmprocessor/api/v1/threshold_groups
Sample response
{
"data": [
{
"type": "thresholdGroup",
"id": "DEMO_PM_PARAMETER_monitoring",
"attributes": {
"thresholdID": [
"<ID FOR MyMaxThreshold>",
"<ID FOR MyMinThreshold>",
"<ID FOR MyDeviationThreshold>"
]
}
},
{
"type": "thresholdGroup",
"id": "DEMO_PM_PARAMETER_monitoring_no_max",
"attributes": {
"thresholdID": [
"<ID FOR MyMinThreshold>",
"<ID FOR MyDeviationThreshold>"
]
}
}
]
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1099
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
PUT {{MCP_SERVER}}/pmprocessor/api/v1/threshold_groups/DEMO_PM_PARAMETER_monitoring
Sample response
{
"data": {
"type": "thresholdGroup",
"id": "DEMO_PM_PARAMETER_monitoring",
"attributes": {
"thresholdID": [
"<ID FOR MyMaxThreshold>",
"<ID FOR MyMinThreshold>",
"<ID FOR MyDeviationThreshold>",
"<ID FOR SomeNewThreshold>"
]
}
}
}
Sample request
PUT {{MCP_SERVER}}/pmprocessor/api/v1/threshold_groups
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1100
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"type": "thresholdGroup",
"id": "DEMO_PM_PARAMETER_monitoring",
"attributes": {
"thresholdID": [
"<ID FOR MyMaxThreshold>",
"<ID FOR MyMinThreshold>",
"<ID FOR MyDeviationThreshold>"
]
}
},
{
"type": "thresholdGroup",
"id": "DEMO_PM_PARAMETER_monitoring_no_max",
"attributes": {
"thresholdID": [
"<ID FOR MyMinThreshold>",
"<ID FOR MyDeviationThreshold>",
"<ID FOR SomeNewThreshold>"
]
}
}
]
}
Sample request
Deleted threshold groups are removed from any resource profiles that contained them. Any alerts for
thresholds within the group associated with the profiles from which they were removed are discontinued.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1101
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample request
GET {{MCP_SERVER}}/pmprocessor/api/v1/threshold_groups
Profile endpoints
A resource profile consists of the following:
Sample request
POST {{MCP_SERVER}}/pmprocessor/api/v1/resource_profiles
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1102
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"type": "resourceProfile",
"id": "MyResourceProfile",
"attributes": {
"thresholdGroupID": [
"DEMO_PM_PARAMETER_monitoring"
],
"nodeID": [
"<ID 1>",
"<ID 2>",
],
"tags": [
{
"facilityNameNative" : "OSC-1-2-2"
}
]
}
},
{
"type": "resourceProfile",
"id": "MyOtherResourceProfile",
"attributes": {
"thresholdGroupID": [
"DEMO_PM_PARAMETER_monitoring",
"DEMO_PM_PARAMETER_monitoring_no_max"
],
"nodeID": [
"<ID 3>",
"<ID 4>",
],
"tags": [
{
"facilityNameNative" : "OSC-2-1-1"
},
{
"facilityNameNative" : "OSC-3-1-1"
}
]
}
}
]
}
Sample request
PUT {{MCP_SERVER}}/pmprocessor/api/v1/resource_profiles/MyOtherResourceProfile
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1103
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
Sample response
{
"data" : {
"type": "resourceProfile",
"id": "MyOtherResourceProfile",
"attributes": {
"thresholdGroupID": [
"DEMO_PM_PARAMETER_monitoring",
"DEMO_PM_PARAMETER_monitoring_no_max",
"SomeNewThresholdGroupID"
],
"nodeID": [
"<ID 3>",
"<ID 4>",
"<ID 5>"
],
"tags": [
{
"facilityNameNative" : "OSC-2-1-1"
},
{
"facilityNameNative" : "OSC-4-1-1"
}
]
}
}
}
Sample request
PUT {{MCP_SERVER}}/pmprocessor/api/v1/resource_profiles
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1104
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"data": [
{
"type": "resourceProfile",
"id": "MyResourceProfile",
"attributes": {
"thresholdGroupID": [
"DEMO_PM_PARAMETER_monitoring"
],
"nodeID": [
"<ID 1>",
"<ID 2>",
],
"tags": [
{
"facilityNameNative" : "OSC-1-2-2"
},
{
"facilityNameNative" : "OSC-3-1-1"
}
]
}
},
{
"type": "resourceProfile",
"id": "MyOtherResourceProfile",
"attributes": {
"thresholdGroupID": [
"DEMO_PM_PARAMETER_monitoring",
"DEMO_PM_PARAMETER_monitoring_no_max"
],
"nodeID": [
"<ID 3>",
"<ID 4>",
"<ID 5>"
],
"tags": [
{
"facilityNameNative" : "OSC-2-1-1"
},
{
"facilityNameNative" : "OSC-4-1-1"
}
]
}
}
]
}
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1105
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
DELETE {{MCP_SERVER}}/pmprocessor/api/v1/resource_profiles/MyOtherResourceProfile
Sample request
GET {{MCP_SERVER}}/pmprocessor/api/v1/resource_profiles/MyOtherResourceProfile
Sample request
GET {{MCP_SERVER}}/pmprocessor/api/v1/resource_profiles
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1106
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1107
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1108
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
M 9 COMPLD
"OTM4-1-33-1::CLFI=\"\",AINSTIMELEFT=00-
05,PORTMODE=SDH,OTURATE=112G,TFMODE=OFF,OTURXEXPTTI=\"\",OTUTXTTI=\"ALPHARETTA-
6500-32-2 001-33-
001\",OTUEXSAPI=\"\",OTUTXSAPI=\"\",OTUEXDAPI=\"\",OTUTXDAPI=\"\",OTUTIMEN=OPERATOR
,OSID=\"\",OTUTXFECFRMT=QFEC,OTURXFECFRMT=QFEC,OCHTXACTDISP=\"UNKNOWN\",OCHROTATION
=ENABLED,OCHTXMODE=AUTOMATIC,OCHTXPREDISP=\"UNKNOWN\",OCHRXPOSTDISP=\"UNKNOWN\",OCH
TXDISPPROV=\"30000\",OCHTXDISPMIN=\"-
40000\",OCHTXDISPMAX=\"85000\",OCHRXACTDISP=\"-1\",OCHTXPWR=\"-
11.0\",OCHTXACTPWR=\"OOR-LO\",OCHTXMINPWR=\"-
11.0\",OCHTXMAXPWR=\"4.0\",OCHRXACTPWR=\"-10.1\",OCHRXMINPWR=\"-
22.5\",OCHRXMAXPWR=\"5.5\",OCHLINETYPE=COLOURED,OCHPWRBALOFFSET=\"0\",OCHTXWVLNGTHP
ROV=\"0.00\",OCHTXWVLNGTHMIN=\"1528.77\",OCHTXWVLNGTHMAX=\"1566.72\",OCHTXWVLNGTHSP
ACING=50,TUNINGMODE=NORMAL,OCHOPTIMIZEMODE=OPTIMIZATIONMODE1,OCHTXCHIRP=POSITIVE,OC
HSPECTRALOCCUPANCY=NARROW,OCHRXECHOTRACE=\"\",OCHTXTRACE=\"ALPHARETTA-6500-32-2
001-33-
001\",OCHTXASSOCFARENDRX=\"\",OCHDIFFERENTIALENCODING=NONE,ODUTFMODE=OFF,PREFECSFTH
LEV=\"0.00\",PREFECSFTHBER=\"3.00E-
02\",PREFECSDTHLEV=\"0.50\",PREFECSDTHBER=\"1.75E-
02\",ODUTTITERM=NO,ODUMONITOR=NO,OCHMAXPMD=\"150\",OCHRXACTPMD=\"2\",OCHREACHSPEC=\
"APP-
SPECIFIC\",OCHESTLENGTH=\"14\",OCHRTD=\"UNKNOWN\",OCHUNILATENCY=\"17.44\",OCHFRR=DI
SABLED,OCHFRRCONFIG=MATCHEDCD,OCHFRRPATH1DISP=\"AUTO\",OCHFRRPATH2DISP=\"AUTO\",HOL
DOFF=0,HOLDON=100,OCHTXFREQPROV=\"000.0000\",OCHTXFREQMIN=\"191.3425\",OCHTXFREQMAX
=\"196.1075\",OCHTXFREQRES=\"0.1\",OCHENMPROV=MODE2,OCHRXENM=MODE2,OCHTXENM=MODE2,O
CHCARRIERCENTERINGMODE=MODE2,OCHLASERCENTRANGE=\"2.5\",OCHCCDA=OFF,OCHTXB=OFF,SPLIM
GMT=ON,SPLIMANAGED=NO,OCHRXPWRTHRPROV=OFF,OCHRXPWRLTHR=\"-
22.5\",OCHRXPWRHTHR=\"5.5\",TTOPS=NO,OCHTXSIGBW3DB=\"34.5\",OCHTXSIGBW10DB=\"37.4\"
,OCHTXMINSPECWTH=\"37.5\",LASERFREQTHR=\"1.6\":OOS-AUMA,FLT&DISCD&AINS"
>
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1109
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
M 9 COMPLD
"PTP-1-3-
1::LABEL=\"\",SERVICETYPE=OTU4,OCHTXACTDISP=\"2\",OCHTXMODE=OFF,OCHTXPREDISP=\"0\",
OCHRXPOSTDISP=\"-
2\",OCHROTATION=DISABLED,OCHTXDISPPROV=\"0\",OCHTXDISPMIN=\"0\",OCHTXDISPMAX=\"0\",
OCHRXACTDISP=\"-2\",OCHTXPWR=\"-7.0\",OCHTXACTPWR=\"-7.0\",OCHTXMINPWR=\"-
11.0\",OCHTXMAXPWR=\"-5.0\",OCHRXACTPWR=\"-6.7\",OCHRXMINPWR=\"-
22.5\",OCHRXMAXPWR=\"5.5\",OCHTXWVLNGTHPROV=\"1530.33\",OCHTXWVLNGTHMIN=\"1528.77\"
,OCHTXWVLNGTHMAX=\"1566.72\",OCHTXWVLNGTHSPACING=50,OCHLINETYPE=COLOURED,OCHTXSPCTR
LOCCP=NARROW,OCHDIFFERENTIALENCODING=NONE,OCHMAXPMD=\"50\",OCHRXACTPMD=\"0\",OCHREA
CHSPEC=\"300\",OCHESTLENGTH=\"4\",OCHRTD=\"32.44\",OCHUNILATENCY=\"18.32\",OCHTXTRA
CE=\"ALPHARETTA-6500-32-2 001-03-001\",OCHRXECHOTRACE=\"ALPHARETTA-6500-32-2 001-
03-001\",OCHTXASSOCFARENDRX=\"ALPHARETTA-6500-32-1 001-03-
001\",TUNINGMODE=NORMAL,OCHOPTIMIZEMODE=OPTIMIZATIONMODE1,OCHTXCHIRP=POSITIVE,OCHEN
MPROV=MODE2,OCHRXENM=MODE2,OCHTXENM=MODE2,OCHFRR=DISABLED,OCHFRRCONFIG=MATCHEDCD,OC
HFRRPATH1DISP=\"AUTO\",OCHFRRPATH2DISP=\"AUTO\",OCHCCDA=OFF,OCHTXB=OFF,OCHTXFREQPRO
V=\"195.9000\",OCHTXFREQMIN=\"191.3425\",OCHTXFREQMAX=\"196.1075\",OCHTXFREQRES=\"0
.1\",OCHCARRIERCENTERINGMODE=MODE2,OCHLASERCENTRANGE=\"2.5\",SPLIMGMT=ON,SPLIMANAGE
D=NO,TTOPS=NO,RXPWRTHRPROV=OFF,RXPWRLTHR=\"-
22.5\",RXPWRHTHR=\"5.5\",RXCHPWRLTHR=\"-
18.5\",RXCHPWRHTHR=\"7.0\",OCHTXSIGBW3DB=\"34.5\",OCHTXSIGBW10DB=\"37.4\",OCHTXMINS
PECWTH=\"37.5\":IS,DISCD"
M 9 COMPLD
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1110
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
M 9 COMPLD
"NC-1-72-1-4-155252::COS=\"Optimized\",CFS=\"No
Fault\",EEC=\"Optimized\",INGRESSACTIVEFLAG=\"True\",INGRESS=\"C203-ROADM-1-
4\",EGRESS=\"C203-CDC-1-4\",NETRAIL=\"C203-ROADM-1-4,C203-CDC-1-
4\",NWCTDOCTRAIL=\"C203-ROADM:DOC-1-1\",NWCTDOCTRAILSTATUS=COMPLETE,CKTID=\"SPUD
Source RED 1552.52 CH 57\",Domain Routing=\"Add-
Drop\",ESTINCROSNR=\"32.34\",DOCINST=DOC-1-1,SNRBIAS=0.00,MODCLASS=CUSTOM1"
{
"header": {
"timestamp": "2018-05-04T07:23:49.015431Z",
"envelopeId": "3697b28d-2d1e-4312-9556-c8623245e59f"
},
"version": 1,
"event": {
"_type": "bp.hpmra.v1.pm",
"object_type": "pm",
"object_data": [
{
"attributes": {
"metrics": [
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "14.0",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "OTM4-1-33-1",
"parameterNative": "OCHESTLENGTH",
"parameter": "Estimated Fiber Length",
"unit": "m",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1111
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
"version": "1.4",
"values": [
{
"value": "-1.0",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "OTM4-1-33-1",
"parameterNative": "OCHRXACTDISP",
"parameter": "RX Total Actual Link Dispersion",
"unit": "",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "2.0",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "OTM4-1-33-1",
"parameterNative": "OCHRXACTPMD",
"parameter": "Estimated Differential Group Delay",
"unit": "pSec",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "-10.1",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "OTM4-1-33-1",
"parameterNative": "OCHRXACTPWR",
"parameter": "RX Actual Power",
"unit": "dBm",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1112
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "17.44",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "OTM4-1-33-1",
"parameterNative": "OCHUNILATENCY",
"parameter": "OCH Unidirectional Latency",
"unit": "uSec",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
}
],
"lastBatch": true,
"requestId": "req_1",
"nodeId": "8dade76f-1aee-3465-8972-f7a6951b5271"
},
"type": "pmResults"
}
]
}
}
{
"header": {
"timestamp": "2018-05-04T07:23:49.015431Z",
"envelopeId": "3697b28d-2d1e-4312-9556-c8623245e59f"
},
"version": 1,
"event": {
"_type": "bp.hpmra.v1.pm",
"object_type": "pm",
"object_data": [
{
"attributes": {
"metrics": [
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "4.0",
"time": "2018-05-04T07:23:00.00Z"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1113
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
],
"tags": {
"facilityNameNative": "PTP-1-3-1",
"parameterNative": "OCHESTLENGTH",
"parameter": "Estimated Fiber Length",
"unit": "m",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "-2.0",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "PTP-1-3-1",
"parameterNative": "OCHRXACTDISP",
"parameter": "RX Total Actual Link Dispersion",
"unit": "",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "0",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "PTP-1-3-1",
"parameterNative": "OCHRXACTPMD",
"parameter": "Estimated Differential Group Delay",
"unit": "pSec",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1114
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"value": "-6.7",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "PTP-1-3-1",
"parameterNative": "OCHRXACTPWR",
"parameter": "RX Actual Power",
"unit": "dBm",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
},
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "18.32",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "PTP-1-3-1",
"parameterNative": "OCHUNILATENCY",
"parameter": "OCH Unidirectional Latency",
"unit": "uSec",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
}
],
"lastBatch": true,
"requestId": "req_1",
"nodeId": "8dade76f-1aee-3465-8972-f7a6951b5271"
},
"type": "pmResults"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1115
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"header": {
"timestamp": "2018-05-04T07:23:49.015431Z",
"envelopeId": "3697b28d-2d1e-4312-9556-c8623245e59f"
},
"version": 1,
"event": {
"_type": "bp.hpmra.v1.pm",
"object_type": "pm",
"object_data": [
{
"attributes": {
"metrics": [
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "65",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "PKTOTN-1-3",
"parameterNative": "TCUR",
"parameter": "Current Temperature",
"unit": "",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
}
],
"lastBatch": true,
"requestId": "req_1",
"nodeId": "8dade76f-1aee-3465-8972-f7a6951b5271"
},
"type": "pmResults"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1116
Blue Planet MCP API Reference Guide, Release 18.06 Performance monitoring
{
"header": {
"timestamp": "2018-05-04T07:23:49.015431Z",
"envelopeId": "3697b28d-2d1e-4312-9556-c8623245e59f"
},
"version": 1,
"event": {
"_type": "bp.hpmra.v1.pm",
"object_type": "pm",
"object_data": [
{
"attributes": {
"metrics": [
{
"attributes": {
"resourceId": "ALPHARETTA-6500-32-2",
"version": "1.4",
"values": [
{
"value": "32.34",
"time": "2018-05-04T07:23:00.00Z"
}
],
"tags": {
"facilityNameNative": "NC-1-72-1-4-155252",
"parameterNative": "ESTINCROSNR",
"parameter": "Estimated Incremental OSNR",
"unit": "",
"longName": "ALPHARETTA-6500-32-2-DELHI-MUMBAI-CHENNAI-KOLKATTA-
KASHMIR"
}
},
"type": "metrics"
}
],
"lastBatch": true,
"requestId": "req_1",
"nodeId": "8dade76f-1aee-3465-8972-f7a6951b5271"
},
"type": "pmResults"
}
]
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1117
Blue Planet MCP API Reference Guide, Release 18.06 Security management
Security management
You can manage security using MCP REST APIs. The following topics are covered:
Note: OpenLDAP (used in this example setup) or samba-tool can be used for the LDAP setup. Internal
samba container can also be used to set up the same service as used by Tron by running "setup-Idap".
You create a RADIUS profile to define the servers to be included in the device configuration data.
Requirements
Before you start, make sure that you have set the IP address, the name, and the user data.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1118
Blue Planet MCP API Reference Guide, Release 18.06 Security management
• In the “serverIp” field (required), specify the IP address of the RADIUS server.
• By default the RADIUS server port is 1812.
Make sure that you create no more than two RADIUS profiles.
Sample request
POST {{MCP_SERVER}}/rbac/api/v1/radiusprofiles
{
"data": {
"type": "radiusConnectionProfile",
"attributes": {
"name": "primary_config",
"profileDescription": "RADIUS Authentication primary server",
"serverIp": "10.10.100.1",
"serverPort": 1812
}
}
}
The response to a POST request includes the full content of the created resource object, including the
server-generated unique resource identifier.
The returned resource ID may be used in subsequent requests where a resource identifier is required (for
example, to GET a specific profile, and in DELETE or PUT operations).
Sample response
{
"data": {
"id": "3e4e290a-92d4-45af-a220-82114bea196d",
"type": "radiusConnectionProfile",
"attributes": {
"name": "primary_config",
"profileDescription": "RADIUS Authentication primary server",
"serverIp": "10.10.100.1",
"serverPort": 1812
}
}
)
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1119
Blue Planet MCP API Reference Guide, Release 18.06 Security management
Support limitations
MCP performs authentication (checks the user’s password) against the local MCP database. With
RADIUS mode enabled, MCP delegates authentication (password checking) to an external RADIUS server.
MCP creates a local user, but without a password entry. This way the UAC user interface can list users,
but does not allow setting of passwords for RADIUS users.
Local and RADIUS users can both exist in the same UAC instance, but not with the same usernames. UAC
can also optionally accept authorization data from RADIUS. Authorization data is basically a list of roles
assigned to the user. Without the optional RADIUS authorization mode, the UAC administrator can:
Requirements
• Enable the RADIUS configuration in MCP including the IP address of the RADIUS server.
• Use administrator credentials in the RADIUS configuration API.
Note: A maximum of two RADIUS servers can be configured and must be named primary_config and
backup_config. You must not rename the RADIUS servers. Both RADIUS servers are created by default.
Sample request
Note: Ensure that you replace the uuid, name, serverIp, and serverSecret with the values for your system.
POST {{MCP_SERVER}}/api/v1/radius-configs
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1120
Blue Planet MCP API Reference Guide, Release 18.06 Security management
{
"description": "",
"createdTime": "2017-05-31T16:03:54.250Z",
"modifiedTime": "2017-05-31T16:03:54.250Z",
"uuid": "string",
"name": "string",
"enabled": true,
"serverIp": "string",
"serverSecret": "string",
"tenant": "string",
"authoritativeRoleSource": false
}
Sample response
{
"count": 2,
"previous": null,
"results": [
{
"description": "primary radius config",
"createdTime": "2017-05-31T14:23:46Z",
"modifiedTime": "2017-05-31T14:23:46Z",
"uuid": "a993d458-4087-4b75-921e-ef19f08291cb",
"name": "primary_config",
"enabled": true,
"serverIp": "192.168.1.1",
"serverSecret": "secret",
"tenant": "master",
"authoritativeRoleSource": false
}
. . .
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1121
Blue Planet MCP API Reference Guide, Release 18.06 Security management
Authenticating users
Once RADIUS is configured, you can authenticate in a similar manner to a local user using RADIUS
credentials. You can only configure RADIUS for a single tenant and the tenant must be provided in the
configuration request shown in Sample request. The same tenant name must be used while
authenticating users. If no tenant name is used, or not provided, the tenant name should default to master
tenant.
Sample authentication
curl -k -H "Content-Type:application/json" -d
'{"username":"user1","password":"secretpass"}' https://localhost/tron/api/v1/tokens
Roles to authentication
User roles can include both system user roles and customer defined user roles.
For more information about managing user roles, see Managing roles in the Security management chapter
of 450-3709-301, MCP User Guide.
Note: The examples provided in this section are in the format of the FreeRADIUS server implementation.
For more information about the FreeRADIUS server implementation, see https://freeradius.org/radiusd/
man/users.html.
• Application admin
◦ administration of MCP
◦ application-level security
◦ basic visibility of network elements and services
• Network admin
◦ full control of network elements and services
• Planning admin
◦ full control of planning for the network
• Observer
◦ basic visibility of network elements and services
• UAC sysadmin
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1122
Blue Planet MCP API Reference Guide, Release 18.06 Security management
#
# Ciena specific codes
#
VENDOR Ciena 1271
BEGIN-VENDOR Ciena
ATTRIBUTE Ciena_BP_Role 220 string
END-VENDOR Ciena
This is a Multi-Valued attribute for inclusion in Access-Accept messages. If the attribute is present more
than once in the Access-Accept, the roles are added together by Blue Planet.
Acceptable values are comma-separated strings matching (case-sensitively) any roles defined in Blue
Planet (these can be retrieved from the API with 'GET /tron/api/v1/roles/?isInternal=false'). Leading and
trailing whitespace is removed and values that are not mapped to existing roles in Blue Planet are
ignored.
Sample users
Note : Role names must match the role names in the roles list or they are ignored. Roles are selected
according to the role.name and the default application with the following exceptions:
• The role.name is "sysadmin" and the application is "UAC". If the role doesn’t exist, the default is used.
• The role.name is "admin" and the application is "UAC". If the role doesn’t exist, the default is used.
• The role.name is "user" and the application is "UAC". If the role doesn’t exist, the default is used.
Limitations or assumptions
1. When RADIUS is enabled, the user is deactivated except users with role UAC:sysadmin, UAC:admin
and internal users.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1123
Blue Planet MCP API Reference Guide, Release 18.06 Security management
2. The RADIUS server-type is not specified in configuration. The best way to ensure UAC-RADIUS
integration is to test with a valid server.
3. The RADIUS configuration name must be either primary_config or backup_config to be effective.
Data synchronization
When a user tries to login with RADIUS enabled, the user object is updated if RADIUS authentication is
successful. UAC only corresponds with RADIUS during password-based authentication. The token created
during user login expires after 24 hours or a configured timeout. The user is able to use the token even he
or she has been disabled by the RADIUS administrator. After the token has expired, the user must login
again.
Note: A password-based login attempt updates a RADIUS user’s enable/disable status if that RADIUS user
account’s control attribute indicates disabled or the user is deleted from the RADIUS server.
Authentication order
When RADIUS is enabled, UAC first tries to authenticate with the RADIUS server. You can specify one
primary RADIUS server and one backup RADIUS server. When both RADIUS servers are enabled, UAC
attempts authentication in order of: primary, secondary, then local.
HMAC authentication
A system administrator is able to create an API key for RADIUS users in the UAC user interface. Users are
then able to perform API requests to UAC using HMAC authentication. UAC does not communicate with
RADIUS for HMAC authentication. If a user is disabled on the RADIUS server, the system administrator is
recommended to disable the user through the UAC interface. Otherwise, API keys associated with the
disabled user remain active.
Use cases
RADIUS enabled
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1124
Blue Planet MCP API Reference Guide, Release 18.06 Security management
RADIUS disabled
PREFIX=https://localhost/tron
TOKEN=$(curl \
--silent -k \
-H "Content-Type:application/json" \
-d '{"username":"admin","password":"adminpw"}' \
$PREFIX/api/v1/tokens | \
python -c "import sys, json; print
json.load(sys.stdin)['token']")
echo $TOKEN
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1125
Blue Planet MCP API Reference Guide, Release 18.06 Security management
RADIUS_UUID=$(curl \
--silent -k \
-H "Authorization: token $TOKEN" \
$PREFIX/api/v1/radius-configs | \
python -c "import sys, json; print
json.load(sys.stdin)['results'][0]['uuid']")
curl \
--silent -k \
-H "Authorization: token $TOKEN" \
$PREFIX/api/v1/radius-configs/$RADIUS_UUID | \
python -c "import sys, json, pprint; pprint.pprint(json.load(sys.stdin))"
Configure UAC to point to the local RADIUS server in the Docker container
curl \
--silent -k \
-H "Authorization: token $TOKEN" \
$PREFIX/api/v1/radius-configs/$RADIUS_UUID | \
python -c "import sys, json, pprint; pprint.pprint(json.load(sys.stdin))"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1126
Blue Planet MCP API Reference Guide, Release 18.06 Security management
curl
-k
-H "Content-Type:application/json"
-d '{"username":"user2","password":"secretpass2"}'
$PREFIX/api/v1/tokens
curl
-k
-H "Content-Type:application/json"
-d '{"username":"user1","password":"secretpass"}'
$PREFIX/api/v1/tokens
curl
-k
-H "Content-Type:application/json"
-H "Authorization: token $TOKEN" $PREFIX/api/v1/users | python -m json.tool
curl
-k
-H "Content-Type:application/json"
-H "Authorization: token $TOKEN" $PREFIX/api/v1/users\?username\=user1 |
python -m json.tool
Steps
The autoconfiguration will create an LDAP directory rooted at the host’s FQDN, eg on
myLDAPserver.lonlab.ciena.com. The directory will be created as dc=lonlab,dc=ciena,dc=com.
2. Make note of your directory root and be sure to substitute that in all the procedural steps for LDAP
setup and configuration that follow.
3. Enter the password for the admin user (cn=admin,dc=your,dc=domain) when prompted during
autoconfiguration.
Access to the LDAP configuration is granted through the OS-level root user (-Y external -H ldapi:///).
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1127
Blue Planet MCP API Reference Guide, Release 18.06 Security management
4. The directory will allow anonymous bind and searching, as well as searches of non-sensitive data by
regular users. Consider configuring ACLs for more restrictive access to the user data.
End
Steps
cd /etc/openldap/schema
ldapadd -Q -Y external -H ldapi:/// -f cosine.ldif
ldapadd -Q -Y external -H ldapi:/// -f inetorgperson.ldif
ldapadd -Q -Y external -H ldapi:/// -f nis.ldif
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1128
Blue Planet MCP API Reference Guide, Release 18.06 Security management
dn: cn=admin,dc=lonlab,dc=ciena,dc=com
objectClass: organizationalRole
cn: admin
description: Directory Manager
EOF
5. The tenant could also be stored in a pre-defined attribute (eg from the inetorgperson or NIS schemas)
if you want to avoid creating custom schemas. It is more clear to create a dedicated attribute though.
◦ The names are arbitrary, feel free to adjust them as desired (but remember to use them
consistently).
◦ The OID values must be unique within the scope of the LDAP instance, it is very strongly advised to
abide by IANA allocation rules. The above example uses "Enterprise"."Ciena", with subdivision
28533 and followed by 1794 to reduce the risk of clashes.
◦ See LDAP schema documentation for further information. The definition above is just an example,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1129
Blue Planet MCP API Reference Guide, Release 18.06 Security management
it is by no means the only way a Blue Planet tenant attribute can be defined.
6. To see the result of your work:
dn: ou=People,dc=lonlab,dc=ciena,dc=com
objectClass: organizationalUnit
ou: People
dn: ou=Group,dc=lonlab,dc=ciena,dc=com
objectClass: organizationalUnit
ou: Group
EOF
◦ The empty line between both records is mandatory, or you can split this into separate ldapadd
operations. You can also use ldapmodify to add objects.
End
Creating groups
Use this procedure for creating groups. An example is shown for creation of a one-to-one mapping for the
factory-default roles in UAC (as names are arbitrary).
Note: Grid numbers must be unique in the scope of the LDAP instance.
Steps
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1130
Blue Planet MCP API Reference Guide, Release 18.06 Security management
dn: cn=BP-UAC-User,ou=Group,dc=lonlab,dc=ciena,dc=com
changetype: add
objectClass: posixGroup
gidNumber: 32130
cn: BP-UAC-User
dn: cn=BP-Application-Admin,ou=Group,dc=lonlab,dc=ciena,dc=com
changetype: add
objectClass: posixGroup
gidNumber: 32257
cn: BP-Application-Admin
dn: cn=BP-Application-Observer,ou=Group,dc=lonlab,dc=ciena,dc=com
changetype: add
objectClass: posixGroup
gidNumber: 32258
cn: BP-Application-Observer
dn: cn=BP-Network-admin,ou=Group,dc=lonlab,dc=ciena,dc=com
changetype: add
objectClass: posixGroup
gidNumber: 32259
cn: BP-Network-admin
dn: cn=BP-Planner-Admin,ou=Group,dc=lonlab,dc=ciena,dc=com
changetype: add
objectClass: posixGroup
gidNumber: 32260
cn: BP-Planner-Admin
dn: cn=BP-UAC-sysadmin,ou=Group,dc=lonlab,dc=ciena,dc=com
changetype: add
objectClass: posixGroup
gidNumber: 32261
cn: BP-UAC-sysadmin
EOF
2. If custom groups are defined in Tron, they may also be created in LDAP.
Note: See the procedure for Assigning Roles (assigning multiple roles to a single group).
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1131
Blue Planet MCP API Reference Guide, Release 18.06 Security management
Creating users
Use this procedure for creating users. An example is shown below.
Steps
NEWUID=16385
NEWUSER=bpuser1
dn: cn=BP-Application-Admin,ou=Group,dc=lonlab,dc=ciena,dc=com
changetype: modify
add: memberUid
memberUid: $NEWUSER
EOF
2. The $NEWUSER can be added to multiple groups; just add the memberUid to all the groups that are
needed.
Note: The mail attribute is required by Tron and must be unique. All other fields that are optional for
the posixAccount objectClass can be omitted, although sn and givenName are shown in the BP Web
UI and make for easy identification of user records.
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1132
Blue Planet MCP API Reference Guide, Release 18.06 Security management
Configure Tron
Use this procedure to configure Tron. An example is shown below.
Note: Use the swagger UI, or other method (eg ConfigureLDAP.py script) to POST the LDAP configuration
parameters to /tron/api/v1/ldap-configs/{uuid}
Step
{
'description': 'BP LDAP test',
'enabled': True,
'server_ip': 'ldap://10.58.109.64',
'enable_ssl': False,
'base_dn':'dc=lonlab,dc=ciena,dc=com',
'domain_search_user':'',
'domain_search_password':'',
'user_name_attribute': 'uid',
'tenant_attribute': 'BPtenant',
'group_name_attribute': 'cn',
'group_object_filter': '(objectClass=posixGroup)',
'role_map': {
"BP-UAC-Admin": {"uac_role_name":"UAC admin","app_name": "UAC"},
"BP-UAC-User": {"uac_role_name":"UAC user","app_name": "UAC"},
"BP-UAC-sysadmin": {"uac_role_name":"UAC sysadmin","app_name": "UAC"},
"BP-Application-Admin": {"uac_role_name":"Application admin","app_name":
"BluePlanet"},
"BP-Application-Observer": {"uac_role_name":"Observer","app_name":
"BluePlanet"},
"BP-Network-admin": {"uac_role_name":"Network admin","app_name":
"BluePlanet"},
"BP-Planner-Admin": {"uac_role_name":"Planner admin","app_name":
"BluePlanet"}
}
}
Note: This example uses anonymous bind from Tron to LDAP, define the domain_search_user and
_password for authenticated bind. The LDAP server should only accept authenticated binds, typically
with a specific account set up for a "client" application to accommodate auditing. (eg
cn=BPtron,ou=RobotUsers,dc=lonlab,dc=ciena,dc=com)
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1133
Blue Planet MCP API Reference Guide, Release 18.06 Security management
Assigning roles
Use this procedure to assign roles.
Steps
1. Since tron 11.0.9, a single LDAP group may be mapped to multiple UAC privileges using a list
structure, eg:
'role_map': {
Undefined roles
2. If the role_map contains uac_role_name values that are not valid roles in Tron, LDAP users who are
assigned these roles will be granted access to BP, but in a read-only (Observer) capacity. The system
does allow mapping of non-existing roles.
3. If LDAP users with assigned undefined roles log in to BP, these roles are created implicitly on the fly,
with no permissions assigned to the role.
UAC roles
4. In Blue Planet MCP releases prior to 18.02, it is not possible to assign UAC roles to LDAP users. This
has been fixed in tron:11.2.8 (BP MCP 18.02).
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1134
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Administration
You can perform administration tasks using MCP REST APIs. The following topics are covered:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1135
Blue Planet MCP API Reference Guide, Release 18.06 Administration
The backup operation takes a copy of all of the data under the /opt/ciena/bp2/*/data directories across
all hosts in the cluster where * represents the various applications under the MCP solution.
• planning data
• equipment data
• service data
• user profiles
• alarm data
• performance data
Considerations
The offline backup functionality for the MCP solution has the following considerations:
CAUTION
For a GR configuration, make sure that the data backup and restore operations are
both performed on a GR site.
If you try to perform a data restore to a GR site using a backup taken from a non-
GR site, you will disable the GR configuration.
• The data backup and restore operations must be performed for the same MCP release. For example, if
you try to restore data on an MCP 18.06 server using a backup file taken from an MCP 18.02 server,
the data restore will fail.
• The data backup operation saves the backup file on each host in the following default directory:
/opt/ciena/bp2/snapshots. The backup files are identical. The backup operation does not give you an
option to save the backup file in another directory or change the file name. The name of the backup
file includes a .snap extension.
Requirements
Before you perform this procedure, you must be able to log into the host machine using the bpuser user
account.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1136
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Steps
solman
When logging into Host 0, a system output similar to the following displays:
sps
Note: The system output includes more columns and rows but this example is not showing all of them
because of limited space on the page.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1137
Blue Planet MCP API Reference Guide, Release 18.06 Administration
artifactory.ciena.com.blueplanet.mcp:18.06.00-325
Image Container
State
artifactory.ciena.com/blueplanet/aeprocessorcontainer:2.4.17
aeprocessor_2.4.171_0 Started
artifactory.ciena.com/blueplanet/aeprocessorcontainer:2.4.17
aeprocessor_2.4.171_1 Started
artifactory.ciena.com/blueplanet/crinoid-api:1.4.7 api-
crinoid_1.4.7_0 Started
artifactory.ciena.com/blueplanet/crinoid-api:1.4.7 api-
crinoid_1.4.7_1 Started
artifactory.ciena.com/blueplanet/api-gw:2.9.4 api-gw_2.9.4_0
Started
artifactory.ciena.com/blueplanet/api-gw:2.9.4 api-gw_2.9.4_1
Started
artifactory.ciena.com/blueplanet/bp-nagios:18.06-10.8.7 bp-nagios_18.06-
10.8.7_0 Started
artifactory.ciena.com/blueplanet/bp-nagios:18.06-10.8.7 bp-nagios_18.06-
10.8.7_1 Started
artifactory.ciena.com/blueplanet/bp-nagios:18.06-10.8.7 bp-nagios_18.06-
10.8.7_2 Started
artifactory.ciena.com/blueplanet/bpo-configmgmt:1.2.8 bpo-
configmgmt_1.2.8_0 Started
artifactory.ciena.com/blueplanet/bpo-configmgmt:1.2.8 bpo-
configmgmt_1.2.8_1 Started
solution_stop artifactory.ciena.com.blueplanet.mcp:<version>
Stopped go to step 5
ATTENTION
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1138
Blue Planet MCP API Reference Guide, Release 18.06 Administration
The backup of the MCP solution can be a slow process. The system does not display status
updates until the backup process is complete. Be patient.
where
6. The offline backup operation produces a backup file on each host. Those files are identical. Copy one
of the backup files to a safe location.
solution_start artifactory.ciena.com.blueplanet.mcp:<version>
where
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1139
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Considerations
The offline restore functionality for the MCP solution has the following considerations:
CAUTION
For a GR configuration, make sure that the data backup and restore operations are
both performed on a GR site.
If you try to perform a data restore to a GR site using a backup taken from a non-
GR site, you will disable the GR configuration.
• You must perform a data restore for the same release as the data backup was taken from. For
example, if you try to restore data on an MCP 18.06 server using a backup file taken from an MCP
18.02 server, the data restore will fail.
Requirements
• be able to log into the host machine using the bpuser user account
• make sure that the system you are restoring to has a fresh software installation of the MCP solution
(includes no previous data). To force the fresh installation (no data) of the MCP solution, perform the
following steps as bpuser user:
1. Undeploy the current MCP Solution and purge the applications data by entering:
solution_deploy artifactory.ciena.com.blueplanet.mcp:<version>
• have transferred the offline backup file to the /opt/ciena/bp2/snapshots directory of each host. The
restore process automatically looks in that directory for the backup file.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1140
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Steps
solman
When logging into Host 0, a system output similar to the following displays:
sps
Note: The system output includes more columns and rows but this example is not showing all of them
because of limited space on the page.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1141
Blue Planet MCP API Reference Guide, Release 18.06 Administration
artifactory.ciena.com.blueplanet.mcp:18.06.00-325
Image Container
State
artifactory.ciena.com/blueplanet/aeprocessorcontainer:2.4.17
aeprocessor_2.4.171_0 Started
artifactory.ciena.com/blueplanet/aeprocessorcontainer:2.4.17
aeprocessor_2.4.171_1 Started
artifactory.ciena.com/blueplanet/crinoid-api:1.4.7 api-
crinoid_1.4.7_0 Started
artifactory.ciena.com/blueplanet/crinoid-api:1.4.7 api-
crinoid_1.4.7_1 Started
artifactory.ciena.com/blueplanet/api-gw:2.9.4 api-gw_2.9.4_0
Started
artifactory.ciena.com/blueplanet/api-gw:2.9.4 api-gw_2.9.4_1
Started
artifactory.ciena.com/blueplanet/bp-nagios:18.06-10.8.7 bp-nagios_18.06-
10.8.7_0 Started
artifactory.ciena.com/blueplanet/bp-nagios:18.06-10.8.7 bp-nagios_18.06-
10.8.7_1 Started
artifactory.ciena.com/blueplanet/bp-nagios:18.06-10.8.7 bp-nagios_18.06-
10.8.7_2 Started
artifactory.ciena.com/blueplanet/bpo-configmgmt:1.2.8 bpo-
configmgmt_1.2.8_0 Started
artifactory.ciena.com/blueplanet/bpo-configmgmt:1.2.8 bpo-
configmgmt_1.2.8_1 Started
solution_stop artifactory.ciena.com.blueplanet.mcp:<version>
Stopped go to step 5
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1142
Blue Planet MCP API Reference Guide, Release 18.06 Administration
where
Note: When the system generates a backup file, the name of the file
includes a .snap extension. In the restore command used in this step,
make sure to remove the .snap extension from the file name.
solution_start artifactory.ciena.com.blueplanet.mcp:<version>
where
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1143
Blue Planet MCP API Reference Guide, Release 18.06 Administration
The online data backup operation does not back up the following data:
Considerations
The online backup functionality for the MCP solution has the following considerations:
CAUTION
For a GR configuration, make sure that the data backup and restore operations are
both performed on a GR site.
If you try to perform a data restore to a GR site using a backup taken from a non-
GR site, you will disable the GR configuration.
• The data backup and restore operations must be performed for the same MCP release. For example, if
you try to restore data on an MCP 18.06 server using a backup file taken from an MCP 18.02 server,
the data restore will fail.
• The data backup operation saves the backup file on each host in the following default directory:
/opt/ciena/bp2/snapshots. The backup files are identical. The backup operation does not give you an
option to save the backup file in another directory. The name of the backup file includes a .snap
extension. When providing the backup file name as input for a restore, omit the .snap extension.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1144
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Requirements
• be able to log into a host machine using the bpuser user account
• be a user with the assigned Network Admin role. This role is required to run REST API calls in an
application such as Postman.
• have access to a REST API application such as Postman
Steps
CAUTION
Do not perform a data backup while any of the following operations are in
progress:
API step 5
./bpi --backup
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1145
Blue Planet MCP API Reference Guide, Release 18.06 Administration
ATTENTION
The backup of the MCP solution can be a slow process. The system does not display status
updates until the backup process is complete. Be patient.
6. As a user with the assigned Network Admin role, open a REST API application such as Postman.
7. Create and define the following parameters:
solutionName {{SOLUTION_NAME}}
label {{text}}
where
If you want to include a label, this label must not contain a space,
underscore, slash or backslash.
{"solutionName":"artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"label":"RestApiBackup"}
curl -X POST \
https://10.92.14.188/backupservice/api/v1/backup \
-H 'Authorization: Bearer 7c1419208814df43dff7' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 4aab647f-b92e-4223-8931-19655d9218fa' \
-d '{"solutionName":"artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"label":"RestApiBackup"}'
8. Associate the solutionName and label (optional) parameter with the following command and start the
online backup by entering:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1146
Blue Planet MCP API Reference Guide, Release 18.06 Administration
{{MCP_SERVER}}/backupservice/api/v1/backup
where
{{MCP_SERVER}} is the URL of the MCP server that has the backup service running, for
example https://localhost
You are sending a URL request to a specific host because this backup
solution is not scaled.
Note: The system output includes an id. An id remains valid only as long as the backup solution is
running.
{
"solutionName":"artifactory.ciena.com.blueplanet.mcp:18.06.00-325"
}
{
"data": {
"type": "BackupJobRO",
"id": "1004",
"links": {},
"attributes": {
"solutionName": "artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"state": "Backing up",
"snapshots": []
}
},
"links": {},
"meta": {}
}
9. The backup process has three states: Backing up, Succeeded, and Aborted. You can get an update on
the state of the backup process by entering:
{{MCP_SERVER}}/backupservice/api/v1/backup/{{ID}}
where
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1147
Blue Planet MCP API Reference Guide, Release 18.06 Administration
{{MCP_SERVER}} is the URL of the MCP server that has the backup service running, for
example https://localhost
You are sending a URL request to a specific host because this backup
solution is not scaled.
Note: Both backup and restore jobs use long identifiers. It is technically possible for these ids to
overlap. For example both backup and restore jobs could share the 5000 id. This is not harmful to the
operation of the backup and restore service; GET backup calls will still return the matching backup
jobs and GET restore calls will still return restore jobs.
{
"data": {
"type": "BackupJobRO",
"id": "1004",
links": {},
"attributes": {
"solutionName": "artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"state": "Succeeded",
"snapshots": [
"artifactory.ciena.com.blueplanet.mcp:18.06.00-325_unlabeled_2018-05-
02T19:39:35Z"
]
}
},
"links": {},
"meta": {}
}
10. The online backup operation produces a backup file on each host. Those files are identical. Copy one
of the backup files to a safe location.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1148
Blue Planet MCP API Reference Guide, Release 18.06 Administration
a. Determine whether the Intent Fulfillment Designer (IFD) instance exists or not by entering:
Example: ifd_2.2.20_0
does not exist there is no IFDConfiguration file to copy for that host. You have
completed this procedure for that host.
c. Copy the IFDConfiguration file to the /opt/ciena/bp2/snapshots folder by entering (on a single
line):
cp /opt/ciena/bp2/<ifd_instance>/data/yeti/config/server-
config/IFDConfiguration/opt/ciena/bp2/snapshots
where
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1149
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Considerations
The offline restore functionality for the MCP solution has the following considerations:
CAUTION
For a GR configuration, make sure that the data backup and restore operations are
both performed on a GR site.
If you try to perform a data restore to a GR site using a backup taken from a non-
GR site, you will disable the GR configuration.
• You must perform a data restore for the same release as the data backup was taken from. For
example, if you try to restore data on an MCP 18.06 server using a backup file taken from an MCP
18.02 server, the data restore will fail.
Requirements
• be able to log into the host machine using the bpuser user account
• make sure that the system you are restoring to has a fresh software installation of the MCP solution
(includes no previous data). To force the fresh installation (no data) of the MCP solution, perform the
following steps as bpuser user:
1. Undeploy the current MCP Solution and purge the applications data by entering:
solution_deploy artifactory.ciena.com.blueplanet.mcp:<version>
• be a user with the assigned Network Admin role. This role is required to run REST API calls in an
application such as Postman.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1150
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Steps
where
<version> is the version of the MCP solution that you are restoring to.
• single-host: 18.06.00-359-single
• multi-host: 18.06.00-359
3. Go to step 7.
4. As a user with the assigned Network Admin role, open a REST API application such as Postman.
5. Create and define the following parameters:
solutionName {{SOLUTION_NAME}}
solutionSnapshot {{SOLUTION_SNAPSHOT}}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1151
Blue Planet MCP API Reference Guide, Release 18.06 Administration
where
{{SOLUTION_SNAPSHOT}} is the file name of the backup file. Do not include the .snap extension.
{"solutionName":"artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"solutionSnapshot":"artifactory.ciena.com.blueplanet.mcp:18.06.00-
325_RestApiBackup_2018-03-27T21:09:14Z"}
curl -X POST \
https://10.92.14.188/backupservice/api/v1/restore \
-H 'Authorization: Bearer 7c1419208814df43dff7' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: a81aa601-15f0-407e-8978-f0d1e797b951' \
-d '{"solutionName":"artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"solutionSnapshot":"artifactory.ciena.com.blueplanet.mcp:18.06.00-
325_RestApiBackup_2018-03-27T21:09:14Z"}'
6. Associate the solutionName and solutionSnapshot parameters with the following command and start
the offline restore by entering:
{{MCP_SERVER}}/backupservice/api/v1/restore
where
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1152
Blue Planet MCP API Reference Guide, Release 18.06 Administration
{{MCP_SERVER}} is the URL of the MCP server that has the backup service running, for
example https://localhost
{
"solutionName": "artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"solutionSnapshot":
"artifactory.ciena.com.blueplanet.mcp:18.06.00-325_unlabeled_2018-05-
31T20:15:51Z"
}
{
"data": {
"type": "RestoreJobRO",
"id": "5003",
"links": {},
"attributes": {
"solutionName": "artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"state": "Restoring"
}
},
"links": {},
"meta": {}
}
7. The restore process has three states: Restoring, Succeeded, and Aborted. You can get an update on
the state of the restore process by entering:
{{MCP_SERVER}}/backupservice/api/v1/restore/{{ID}}
where
{{MCP_SERVER}} is the URL of the MCP server that has the backup service running, for
example https://localhost
Note 1: Both backup and restore jobs use long identifiers. It is technically possible for these ids to
overlap. For example both backup and restore jobs could share the 5000 id. This is not harmful to the
operation of the backup and restore service; GET backup calls will still return the matching backup
jobs and GET restore calls will still return restore jobs.
Note 2: The system can display an intermittent 403(Forbidden) error during the restore status query,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1153
Blue Planet MCP API Reference Guide, Release 18.06 Administration
due to the tron service being shutdown and restarted. This system behavior can last a few minutes
after sending a restore request.
{
"data": {
"type": "RestoreJobRO",
"id": "5003",
"links": {},
"attributes": {
"solutionName": "artifactory.ciena.com.blueplanet.mcp:18.06.00-325",
"state": "Restoring"
}
},
"links": {},
"meta": {}
}
8. Alternatively, you can use a curl command to get an update on the state of the restore process by
entering:
9. The restore process restarts the MCP solution. When the restart of the MCP solution is complete,
create and define the following parameters:
username {{USERNAME}}
password {{PASSWORD}}
10. Associate the username and password parameters with the following command and then request a
new authentication token by entering:
{{MCP_SERVER}}/tron/api/v1/tokens
where
{{MCP_SERVER}} is the URL of the MCP server that has the backup service running, for
example https://localhost
11. On each host, determine whether the Intent Fulfillment Designer (IFD) instance exists or not by
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1154
Blue Planet MCP API Reference Guide, Release 18.06 Administration
entering:
Example: ifd_2.2.20_0
does not exist there is no IFDConfiguration file to restore for that host. Repeat step
11 for the next host. To restore the IFDConfiguration file, perform
step 13.
cp
/opt/ciena/bp2/snapshots/IFDConfiguration/opt/ciena/bp2/<ifd_instance>/data/yeti
/config/server-config/IFDConfiguration
where
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1155
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Requirements
• be able to log into the host machine using the bpuser user account
• perform one of the following procedures: Performing an offline backup of the MCP solution data or
Performing an online backup of the MCP solution data
Steps
solman
When logging into Host 0, a system output similar to the following displays:
4. Identify the backup files. Each line that starts with path identifies a backup file.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1156
Blue Planet MCP API Reference Guide, Release 18.06 Administration
[{'files': ['.',
'./geored_1.8.4_0',
'./pithos_0.0.26_0',
'./discovery_8.0.10_0',
'./tron_1806.0.7-t12.0.4_0',
'./nsi_7.0.69_0',
'./chronos_7.2.14_0',
'./aeprocessor_2.4.61_0',
'./cassandra_3.0.21-c3.10_0',
'./gcs_1.1.18_0',
'./hpmra_1.0.25_0',
'./tdc_13.12.0_0',
'./kafka_3.0.0-k1.0.0-nogcs-1_0',
'./datomic_3.0.2-d0.9.5544-1_0',
'./bpocore_1.8.2-8608-972f799-2_0',
'./api-crinoid_1.4.7-1_0',
'./configmgmt_2.1.4_0',
'./reporting_2.0.0_0',
'./slv-support_1.0.82_0',
'./ifd_4.1.17-1_0'],
'label': 'unlabeled',
'name': 'artifactory.ciena.com.blueplanet.mcp:18.06.00-85-
single_unlabeled_2018-06-21T16:53:52Z',
'path':
'/opt/ciena/bp2/snapshots/artifactory.ciena.com.blueplanet.mcp:18.06.00-85-
single_unlabeled_2018-06-21T16:53:52Z.snap',
'solution': 'artifactory.ciena.com.blueplanet.mcp:18.06.00-85-single',
'solution_type': 'mcp',
'timestamp': '2018-06-21T16:53:52Z'},
{'files': ['.',
'./geored_1.8.4_0',
'./pithos_0.0.26_0',
'./discovery_8.0.10_0',
'./tron_1806.0.7-t12.0.4_0',
'./nsi_7.0.69_0',
'./chronos_7.2.14_0',
'./aeprocessor_2.4.61_0',
'./cassandra_3.0.21-c3.10_0',
'./gcs_1.1.18_0',
'./hpmra_1.0.25_0',
'./tdc_13.12.0_0',
'./kafka_3.0.0-k1.0.0-nogcs-1_0',
'./datomic_3.0.2-d0.9.5544-1_0',
'./bpocore_1.8.2-8608-972f799-2_0',
'./api-crinoid_1.4.7-1_0',
'./configmgmt_2.1.4_0',
'./reporting_2.0.0_0',
'./slv-support_1.0.82_0',
'./ifd_4.1.17-1_0'],
'label': 'unlabeled',
'name': 'artifactory.ciena.com.blueplanet.mcp:18.06.00-85-
single_unlabeled_2018-06-21T19:10:03Z',
'path':
'/opt/ciena/bp2/snapshots/artifactory.ciena.com.blueplanet.mcp:18.06.00-85-
single_unlabeled_2018-06-21T19:10:03Z.snap',
'solution': 'artifactory.ciena.com.blueplanet.mcp:18.06.00-85-single',
'solution_type': 'mcp',
'timestamp': '2018-06-21T19:10:03Z'}]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1157
Blue Planet MCP API Reference Guide, Release 18.06 Administration
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1158
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Requirements
• be able to log into an MCP host or offsite machine where you can run a curl command to download a
backup file from an MCP site
• know the site IP address of the MCP site that is storing the backup file that you want to download
• know the name of the backup file that you want to download (for details see the Display a list of MCP
solution backup files procedure).
• perform one of the following procedures: Performing an offline backup of the MCP solution data or
Performing an online backup of the MCP solution data
Steps
1. Log into an MCP host or offsite machine to which you want to download an MCP solution backup file.
2. Start the download of an MCP solution backup file by entering (on a single line):
curl -o {{BACKUP_FILE}}
{{SERVER}}/solutionmanager/api/v1/snapshots/{{BACKUP_NAME}}/download
where
{{BACKUP_FILE}} = {{BACKUP_NAME}}.snap
Example: artifactory.ciena.com.blueplanet.mcp:18.06.00-
85_unlabeled_2018-06-21T16:53:52Z.snap
{{SERVER}} is the URL of the MCP server from which you want to download the
backup file.
Make sure to use the virtual Site IP address (not the IP address of the
host) in the URL, for example https://10.186.0.4
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1159
Blue Planet MCP API Reference Guide, Release 18.06 Administration
{{BACKUP_NAME}} is the name of the backup file, without the .snap extension.
Example: artifactory.ciena.com.blueplanet.mcp:18.06.00-
85_unlabeled_2018-06-21T16:53:52Z
3. An HTTP 200 response indicates that the MCP solution backup file was successfully downloaded.
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1160
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Requirements
• be able to log into an MCP host where you can run a curl command to upload a backup file to another
MCP site or offsite machine
• know the site IP address of the MCP site or the IP address of the offsite machine to which you want to
upload the backup file
• know the name of the backup file that you want to upload (for details see the Display a list of MCP
solution backup files procedure).
• perform one of the following procedures: Performing an offline backup of the MCP solution data or
Performing an online backup of the MCP solution data
Steps
1. Locate the MCP site that has the MCP solution backup file that you want to upload and log into one of
the hosts.
2. Start the upload of an MCP solution backup file by entering (on a single line):
where
{{BACKUP_FILE}} = {{BACKUP_NAME}}.snap
Example: artifactory.ciena.com.blueplanet.mcp:18.06.00-
85_unlabeled_2018-06-21T16:53:52Z.snap
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1161
Blue Planet MCP API Reference Guide, Release 18.06 Administration
{{SERVER}} is the URL of the MCP site or offsite machine to which you want to
upload the backup file, for example https://10.186.0.4
If you are uploading a backup file to an MCP site, then make sure to
use the virtual Site IP address (not the IP address of a host) in the
URL.
{{BACKUP_NAME}} is the name of the backup file, without the .snap extension.
Example: artifactory.ciena.com.blueplanet.mcp:18.06.00-
85_unlabeled_2018-06-21T16:53:52Z
3. An HTTP 200 response indicates that the MCP solution backup file was successfully uploaded.
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1162
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Requirements
• be able to log into the host machine using the bpuser user account
• know the name of the backup file that you want to delete (for details see the Display a list of MCP
solution backup files procedure).
• perform one of the following procedures: Performing an offline backup of the MCP solution data or
Performing an online backup of the MCP solution data
Steps
solman
When logging into Host 0, a system output similar to the following displays:
where
{{BACKUP_NAME}} is the name of the backup file, without the .snap extension.
Example: artifactory.ciena.com.blueplanet.mcp:18.06.00-
85_unlabeled_2018-06-21T16:53:52Z
The system deletes the backup file from each host in an MCP cluster, if applicable.
End
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1163
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Use this API to enable/disable the addition of HTTP bodies in the audit logs for every API request and
response entering and leaving the system.
Requirements
To enable full logging for request and response HTTP bodies, make sure you specify the following
parameter:
• enable = true
The maximum request body size logged is 8K. Bodies larger than 8K are truncated.
Sample request
POST {{MCP_SERVER}}/rbac-e/api/v1/audit/configuration
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1164
Blue Planet MCP API Reference Guide, Release 18.06 Administration
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1165
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Use the following REST API to select the storage method as filesystem:
POST {{BP_SERVER}}/configmgmt/api/v1/profiles
Sample response
{
"name": "BACKUP-sftp2",
"profileType": "backup_restore",
"protocolType": "sftp",
"storageMethod": "filesystem",
"userName": "root",
"userPassword": "G0t2BTuf",
"ipAddress": "10.186.1.130",
"port": "22",
"imageLocation": "/tmp/upg",
"numberOfBackupFiles": "9",
"profileDescription" : "ATT",
"sshPort": "22"
}
Use the following REST API to select the storage method as database:
Requirements
• username and the user password are the valid userid/password on the host running the MCP Solution
• user must have write permission to the /bp2/ directory
POST {{BP_SERVER}}/configmgmt/api/v1/profiles
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1166
Blue Planet MCP API Reference Guide, Release 18.06 Administration
{
"name": "testgosftp",
"profileType": "backup_restore",
"protocolType": "sftp",
"userName": "root",
"userPassword": "G0t2BTuf",
"storageMethod": "database"
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1167
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Sample request
PATCH {{MCP_SERVER}}/gcs/api/v1/config
The Coordinated Universal Time (UTC) is +00:00. You are setting the "value" parameter as an offset
(difference) from the UTC.
For example, if you want to set the time zone to the Pacific Standard Time (PST), then enter "-08:00".
With the "value" set as "local", the MCP UI displays the local time zone used by your browser.
[{
“application”: “global-ui”,
“instance”:”-“,
“name”:”displayTimezone”,
“value”:”-08:00”
}]
Sample response
[{
“application”: “global-ui”,
“instance”:”-“,
“name”:”displayTimezone”,
“title”: “Display Timezone”,
“description”: ”Timezone for all UIs”,
“value”:”-08:00”,
“key”:”global-ui/-/displayTimezone”,
}]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1168
Blue Planet MCP API Reference Guide, Release 18.06 Administration
Sample request
DELETE {{MCP_SERVER}}/gcs/api/v1/config
[{
“application”: “global-ui”,
“instance”:”-“,
“name”:”displayTimezone”
}]
Sample response
[{
“application”: “global-ui”,
“instance”:”-“,
“name”:”displayTimezone”,
“title”: “Display Timezone”,
“description”: ”Timezone for all UIs”,
“key”:”global-ui/-/displayTimezone”,
}]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1169
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
Alarm management
You can manage alarms using MCP REST APIs.
TYPE DESCRIPTION
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1170
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Device",
"javaType":
"com.ciena.bp.nsa.api.v2.common.event.FilteredAlarmNotificationEvent",
"type": "object",
"description": "The kafka notification event for FilteredAlarms on the Northbound
topic bp.aeprocessor.v2_0.alarms",
"properties": {
"_type": {
"title": "Type",
"description": "The type of alarm notifcation event",
"type": "string",
"enum": [
"bp.v1.alarmRaised",
"bp.v1.alarmCleared",
"bp.v1.alarmSuperseded",
"bp.v1.alarmAcknowledged",
"bp.v1.alarmUnacknowledged",
"bp.v1.alarmDeviceAttr"
],
"javaEnumNames": [
"RAISE_ALARM_EVENT",
"CLEAR_ALARM_EVENT",
"SUPERSEDE_ALARM_EVENT",
"ACK_ALARM_EVENT",
"UNACK_ALARM_EVENT",
"DEVICE_ATTR_ALARM_EVENT"
]
},
"time": {
"title": "Time",
"type": "string"
},
"alarm": {
"title": "Alarm",
"description": "The alarm associated with the event",
"type": "object",
"$ref": "../filter/FilteredAlarm.json"
}
},
"additionalProperties": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1171
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Filtered Alarm",
"type": "object",
"javaInterfaces" : ["java.io.Serializable"],
"javaType": "com.ciena.bp.nsa.api.v2.common.filter.FilteredAlarm",
"properties": {
"data": {
"type": "object",
"$ref": "FilteredAlarmsData.json"
}
},
"additionalProperties": false
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Filtered Alarms Data",
"type": "object",
"javaInterfaces" : ["java.io.Serializable"],
"javaType": "com.ciena.bp.nsa.api.v2.common.filter.FilteredAlarmsData",
"properties": {
"id": {
"description": "The unique identifier for the alarm",
"type": "string"
},
"type": {
"type": "string",
"enum": [
"FilteredAlarm"
],
"javaEnumNames": ["FilteredAlarm"],
"default": "FilteredAlarm"
},
"attributes": {
"type": "object",
"description": "Information regarding the individual alarms",
"$ref": "FilteredAlarmsAttributes.json"
}
},
"additionalProperties": false
}
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Filtered Alarms Attributes",
"javaInterfaces" : ["java.io.Serializable"],
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1172
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"type": "object",
"javaType": "com.ciena.bp.nsa.api.v2.common.filter.FilteredAlarmsAttributes",
"properties": {
"id": {
"description": "The alarm id",
"type": "string"
},
"alarm-id": {
"description": "The original alarm id of the historical alarm",
"type": "string"
},
"node-id": {
"description": "The unique ID associated with the node/device provided by the
RA",
"type": "string"
},
"ra-alarm-id": {
"description": "The RA Alarm identifier",
"type": "string"
},
"node-type": {
"description": "The type of node/device, e.g. 6500",
"type": "string"
},
"state" : {
"type": "string",
"description": "The alarm state",
"enum": [
"ACTIVE",
"CLEARED",
"SUPERSEDED"
],
"javaEnumNames": [
"ACTIVE",
"CLEARED",
"SUPERSEDED"
]
},
"resource": {
"type": "string",
"description": "The location and equipment type"
},
"resource-id": {
"type": "string",
"description": "The a unique id of the resource sending the alarm"
},
"native-condition-type": {
"type": "string",
"description": "The native condition or alarm name"
},
"condition-severity": {
"type": "string",
"description": "The severity of the alarm",
"enum": [
"CRITICAL",
"MAJOR",
"MINOR",
"WARNING",
"INDETERMINATE",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1173
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"INFO",
"CONFIG",
"DEBUG"
],
"javaEnumNames": [
"CRITICAL",
"MAJOR",
"MINOR",
"WARNING",
"INDETERMINATE",
"INFO",
"CONFIG",
"DEBUG"
]
},
"service-affecting": {
"type": "string",
"description": "The service impact of the alarm",
"enum": [
"UNKNOWN",
"SERVICE_AFFECTING",
"NON_SERVICE_AFFECTING"
],
"javaEnumNames": [
"UNKNOWN",
"SERVICE_AFFECTING",
"NON_SERVICE_AFFECTING"
]
},
"native-state": {
"description": "The native state",
"type": "string"
},
"manual-clearable": {
"type": "boolean",
"description": "Whether or not the alarm can be cleared manually"
},
"additional-text": {
"type": "string",
"description": "Additional information about the alarm"
},
"first-raise-time": {
"type": "string",
"description": "The date and time that the alarm was first raised",
"format": "date-time",
"customDateTimePattern" : "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
},
"last-raise-time": {
"type": "string",
"description": "The date and time that the alarm was last raised",
"format": "date-time",
"customDateTimePattern" : "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
},
"clear-time": {
"type": "string",
"description": "The date and time that the alarm was cleared",
"format": "date-time",
"customDateTimePattern" : "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
},
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1174
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"supersede-time": {
"type": "string",
"description": "The date and time that the alarm was superseded",
"format": "date-time",
"customDateTimePattern" : "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
},
"acknowledge-update-time": {
"type": "string",
"description": "The date and time that the alarms acknowledge state last
changed",
"format": "date-time",
"customDateTimePattern" : "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
},
"clear-user": {
"type": "string",
"description": "The user that cleared the alarm"
},
"acknowledge-update-user": {
"type": "string",
"description": "The user that last updated the acknowledge state the alarm"
},
"number-of-occurrences": {
"type": "string",
"description": "The number of times the alarm has occurred",
"format": "utc-millisec"
},
"acknowledge-state": {
"type": "string",
"description": "The acknowledge state of the alarm",
"enum": [
"NOT_ACKNOWLEDGED",
"ACKNOWLEDGED"
],
"javaEnumNames": [
"NOT_ACKNOWLEDGED",
"ACKNOWLEDGED"
]
},
"device-id": {
"type": "string",
"description": "Device's id."
},
"device-name": {
"type": "string",
"description": "Device's name."
},
"device-long-name": {
"type": "string",
"description": "Device's long name."
},
"ip-address": {
"type": "string",
"description": "Device's IP address."
},
"mac-address": {
"type": "string",
"description": "Device's Mac address."
},
"partition": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1175
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"type": "array",
"items": {
"type": "string"
},
"description": "The partitions that the device belongs to."
},
"device-attributes": {
"type": "object",
"description": "Device specific attributes for the alarm",
"additionalProperties": {
"type": "string"
}
},
"additional-attrs": {
"type": "object",
"description": "Additional attributes for the alarm",
"additionalProperties": {
"type": "string"
}
},
"affected-inventory-ids": {
"type": "array",
"description": "Inventory IDs affected by alarms",
"items": {
"type": "string"
}
},
"sequence-id": {
"type": "string",
"description": "The alarm's sequence ID, the last-raise-time of that alarm
instance in long."
}
},
"additionalProperties": false
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1176
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": {
"id": "-11783837587299599",
"type": "FilteredAlarm",
"attributes": {
"id": "-11783837587299599",
"alarm-id": "-11783837587299599",
"node-id": "608b2401-85ef-4a23-b970-7969c3099c17",
"ra-alarm-id": "0100008849-0008-0560",
"node-type": "6500",
"state": "ACTIVE",
"resource": "OPTMON-1-11-5S11",
"resource-id": "OPTMON-1-11-5S11",
"native-condition-type": "LOS_OTS",
"condition-severity": "MAJOR",
"service-affecting": "SERVICE_AFFECTING",
"native-state": "online",
"manual-clearable": true,
"additional-text": "Loss Of Signal",
"first-raise-time": "2018-06-20T13:18:49.000Z",
"last-raise-time": "2018-06-23T16:22:18.000Z",
"supersede-time": "2018-06-21T13:18:49.000Z",
"clear-time": "2018-06-23T17:22:18.000Z",
"number-of-occurrences": 11,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "c30eea58-9568-3e31-af3c-667561e60646",
"device-name": "PV0011CRFA",
"device-long-name": "PV0011CRFA",
"ip-address": "10.182.216.71",
"mac-address": "40:AB:00:11:01:00",
"additional-attrs": {
"mode": "NONE",
"aidtype": "OPTMON",
"location": "NEND",
"source": "6500:OPTMON-1-11-5S11",
"direction": "RCV"
},
ATTRIBUTE DESCRIPTION
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1177
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
ATTRIBUTE DESCRIPTION
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1178
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
ATTRIBUTE DESCRIPTION
device-name The name of the device. For 6500, this is the target
identifier (TID).
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1179
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
ATTRIBUTE DESCRIPTION
Requirements
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1180
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
Sample request
GET {{MCP_SERVER}}/nsa/api/v2_0/filter/filteredAlarms
Sample response
Note 1: Alarm attribute 'additional-attr' contains attributes that are added to the alarm by the network
element (NE) resource adapter (RA). The contents of this attribute can vary according to RA.
Note 2: Alarm attribute 'additional-text' contains the name of the alarm and can be used to determine the
appropriate alarm clearing procedure in the network element customer documentation.
{
"data": [
{
"id": "5172777979018630871",
"type": "FilteredAlarm",
"attributes": {
"id": "5172777979018630871",
"alarm-id": "5172777979018630871",
"node-id": "e3b15133-6289-4987-b478-3748d1a3562d",
"ra-alarm-id": "0100000001-6217-0092",
"node-type": "6500",
"state": "ACTIVE",
"resource": "SP-1-15",
"resource-id": "SP-1-15",
"native-condition-type": "SWLOAD",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1181
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"condition-severity": "MINOR",
"service-affecting": "NON_SERVICE_AFFECTING",
"manual-clearable": true,
"additional-text": "Incomplete Software Lineup",
"first-raise-time": "2018-06-21T17:47:40.000Z",
"last-raise-time": "2018-06-21T17:47:40.000Z",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "75081e8a-d030-3ccb-a1b8-0546848082ff",
"device-name": "NE44",
"device-long-name": "NE44",
"ip-address": "10.188.133.19",
"mac-address": "00:01:02:03:05:00",
"additional-attrs": {
"mode": "NONE",
"aidtype": "EQPT",
"source": "6500:SP-1-15"
},
"affected-inventory-ids": [
],
"sequence-id": "1529603260000"
}
},
{
"id": "2598991997623669347",
"type": "FilteredAlarm",
"attributes": {
"id": "2598991997623669347",
"alarm-id": "2598991997623669347",
"node-id": "e3b15133-6289-4987-b478-3748d1a3562d",
"ra-alarm-id": "0100000010-0062-0379",
"node-type": "6500",
"state": "ACTIVE",
"resource": "SLOT-1-6",
"resource-id": "SLOT-1-6",
"native-condition-type": "EQPT_MISSING",
"condition-severity": "MINOR",
"service-affecting": "NON_SERVICE_AFFECTING",
"manual-clearable": true,
"additional-text": "Slot Empty",
"first-raise-time": "2018-06-21T17:47:41.000Z",
"last-raise-time": "2018-06-21T17:47:41.000Z",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "75081e8a-d030-3ccb-a1b8-0546848082ff",
"device-name": "NE44",
"device-long-name": "NE44",
"ip-address": "10.188.133.19",
"mac-address": "00:01:02:03:05:00",
"additional-attrs": {
"mode": "NONE",
"aidtype": "EQPT",
"source": "6500:SLOT-1-6"
},
"affected-inventory-ids": [
],
"sequence-id": "1529603261000"
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1182
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
}
},
{
"id": "-8504817949576492443",
"type": "FilteredAlarm",
"attributes": {
"id": "-8504817949576492443",
"alarm-id": "-8504817949576492443",
"node-id": "e3b15133-6289-4987-b478-3748d1a3562d",
"ra-alarm-id": "0100000012-0062-0379",
"node-type": "6500",
"state": "ACTIVE",
"resource": "SLOT-1-8",
"resource-id": "SLOT-1-8",
"native-condition-type": "EQPT_MISSING",
"condition-severity": "MINOR",
"service-affecting": "NON_SERVICE_AFFECTING",
"manual-clearable": true,
"additional-text": "Slot Empty",
"first-raise-time": "2018-06-21T17:47:41.000Z",
"last-raise-time": "2018-06-21T17:47:41.000Z",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "75081e8a-d030-3ccb-a1b8-0546848082ff",
"device-name": "NE44",
"device-long-name": "NE44",
"ip-address": "10.188.133.19",
"mac-address": "00:01:02:03:05:00",
"additional-attrs": {
"mode": "NONE",
"aidtype": "EQPT",
"source": "6500:SLOT-1-8"
},
"affected-inventory-ids": [
],
"sequence-id": "1529603261000"
}
},
{
"id": "-1071530511754464347",
"type": "FilteredAlarm",
"attributes": {
"id": "-1071530511754464347",
"alarm-id": "-1071530511754464347",
"node-id": "e3b15133-6289-4987-b478-3748d1a3562d",
"ra-alarm-id": "0100000062-0063-0970",
"node-type": "6500",
"state": "ACTIVE",
"resource": "FAN-1-1",
"resource-id": "FAN-1-1",
"native-condition-type": "EQPT_MISMATCH",
"condition-severity": "CRITICAL",
"service-affecting": "SERVICE_AFFECTING",
"manual-clearable": true,
"additional-text": "Equipment Configuration Mismatch",
"first-raise-time": "2018-06-21T17:48:44.000Z",
"last-raise-time": "2018-06-21T17:48:44.000Z",
"number-of-occurrences": 1,
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1183
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "75081e8a-d030-3ccb-a1b8-0546848082ff",
"device-name": "NE44",
"device-long-name": "NE44",
"ip-address": "10.188.133.19",
"mac-address": "00:01:02:03:05:00",
"additional-attrs": {
"mode": "NONE",
"aidtype": "COM",
"source": "6500:FAN-1-1"
},
"affected-inventory-ids": [
],
"sequence-id": "1529603324000"
}
},
{
"id": "5198498525522000867",
"type": "FilteredAlarm",
"attributes": {
"id": "5198498525522000867",
"alarm-id": "5198498525522000867",
"node-id": "e3b15133-6289-4987-b478-3748d1a3562d",
"ra-alarm-id": "0100000070-0063-0970",
"node-type": "6500",
"state": "ACTIVE",
"resource": "FAN-1-3",
"resource-id": "FAN-1-3",
"native-condition-type": "EQPT_MISMATCH",
"condition-severity": "CRITICAL",
"service-affecting": "SERVICE_AFFECTING",
"manual-clearable": true,
"additional-text": "Equipment Configuration Mismatch",
"first-raise-time": "2018-06-21T17:48:54.000Z",
"last-raise-time": "2018-06-21T17:48:54.000Z",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "75081e8a-d030-3ccb-a1b8-0546848082ff",
"device-name": "NE44",
"device-long-name": "NE44",
"ip-address": "10.188.133.19",
"mac-address": "00:01:02:03:05:00",
"additional-attrs": {
"mode": "NONE",
"aidtype": "COM",
"source": "6500:FAN-1-3"
},
"affected-inventory-ids": [
],
"sequence-id": "1529603334000"
}
},
{
"id": "-5655636862596489417",
"type": "FilteredAlarm",
"attributes": {
"id": "-5655636862596489417",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1184
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"alarm-id": "-5655636862596489417",
"node-id": "e3b15133-6289-4987-b478-3748d1a3562d",
"ra-alarm-id": "0100000105-0153-0656",
"node-type": "6500",
"state": "ACTIVE",
"resource": "FANHOUSING-1-1",
"resource-id": "FANHOUSING-1-1",
"native-condition-type": "INVENTORY_CORRUPT",
"condition-severity": "CRITICAL",
"service-affecting": "SERVICE_AFFECTING",
"manual-clearable": true,
"additional-text": "Corrupt Inventory Data",
"first-raise-time": "2018-07-02T17:02:17.000Z",
"last-raise-time": "2018-07-02T17:02:17.000Z",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "75081e8a-d030-3ccb-a1b8-0546848082ff",
"device-name": "NE44",
"device-long-name": "NE44",
"ip-address": "10.188.133.19",
"mac-address": "00:01:02:03:05:00",
"additional-attrs": {
"mode": "NONE",
"aidtype": "COM",
"source": "6500:FANHOUSING-1-1"
},
"affected-inventory-ids": [
],
"sequence-id": "1530550937000"
}
},
{
"id": "-1353896165820857099",
"type": "FilteredAlarm",
"attributes": {
"id": "-1353896165820857099",
"alarm-id": "-1353896165820857099",
"node-id": "1f3ad417-b928-45b7-98f6-42fbb580de62",
"ra-alarm-id": "0100000001-6217-0092",
"node-type": "6500",
"state": "ACTIVE",
"resource": "SP-1-15",
"resource-id": "SP-1-15",
"native-condition-type": "SWLOAD",
"condition-severity": "MINOR",
"service-affecting": "NON_SERVICE_AFFECTING",
"manual-clearable": true,
"additional-text": "Incomplete Software Lineup",
"first-raise-time": "2018-06-21T17:47:26.000Z",
"last-raise-time": "2018-06-21T17:47:26.000Z",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "caea76c6-ce8a-33c2-b368-4fd471fbbd9f",
"device-name": "NE3",
"device-long-name": "NE3",
"ip-address": "10.188.133.17",
"mac-address": "00:01:02:03:01:00",
"additional-attrs": {
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1185
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"mode": "NONE",
"aidtype": "EQPT",
"source": "6500:SP-1-15"
},
"affected-inventory-ids": [
],
"sequence-id": "1529603246000"
}
}
]
}
Sample request
GET {{MCP_SERVER}}/nsa/api/v2_0/alarms/filter/filteredAlarms/{Id}
Sample response
Note 1: Alarm attribute 'additional-attr' contains attributes that are added to the alarm by the network
element (NE) resource adapter (RA). The contents of this attribute can vary according to RA.
Note 2: Alarm attribute 'additional-text' contains the name of the alarm and can be used to determine the
appropriate alarm clearing procedure in the network element customer documentation.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1186
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": {
"id": "3373668756453886205",
"type": "FilteredAlarm",
"attributes": {
"id": "3373668756453886205",
"alarm-id": "8906292521956607123",
"node-id": "490570b6-008d-4564-b527-59242cee7138",
"ra-alarm-id": "0100000000-0000-0000",
"node-type": "6500",
"state": "SUPERSEDED",
"resource": "OTM3-1-14-1",
"native-condition-type": "T-SEFS-OTU",
"condition-severity": "INFO",
"service-affecting": "NON_SERVICE_AFFECTING",
"manual-clearable": false,
"additional-text": "T-SEFS-OTU",
"first-raise-time": "2017-06-27T21:00:14.000Z",
"last-raise-time": "2017-06-28T00:00:16.000Z",
"supersede-time": "2017-06-28T00:15:15.000Z",
"number-of-occurrences": 14,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "f69237f7-0e3e-3320-b82b-a839d637380e",
"device-name": "HAN1MD6502PL",
"ip-address": "10.41.88.42",
"mac-address": "40B2C8495DD1",
"additional-attrs": {
"mode": "SONET",
"Threshold Level": "4",
"Condition Effecting": "TC",
"Time Period": "1-DAY",
"Monitor Value": "14",
"source": "6500:OTM3-1-14-1"
},
"affected-inventory-ids": []
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1187
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": {
"id": "-1558192964143857348",
"type": "FilteredAlarm",
"attributes": {
"id": "-1558192964143857348",
"alarm-id": "-1558192964143857348",
"node-id": "aff33de8-3a4c-4051-9723-2b7cb92e197d",
"ra-alarm-id": "/NE=5430-OC-214/T=OTUTTP/N=1-A-2-1_OTU LOL",
"node-type": "CN54XX",
"state": "ACTIVE",
"resource": "OTUTTP-1-A-2-1",
"native-condition-type": "OTU LOL",
"condition-severity": "CRITICAL",
"service-affecting": "SERVICE_AFFECTING",
"manual-clearable": false,
"additional-text": "OTL Loss of Lane Alignment",
"first-raise-time": "2017-10-31T12:15:43.000Z",
"last-raise-time": "2017-10-31T12:15:43.000Z",
"number-of-occurrences": 1,
"acknowledge-state": "NOT_ACKNOWLEDGED",
"device-id": "247856e7-f1f3-3fba-97a8-a1dd97faedde",
"device-name": "5430-OC-214",
"ip-address": "192.168.3.214",
"additional-attrs": {},
"affected-inventory-ids": []
}
}
}
Sample request
GET {{MCP_SERVER}}/nsa/api/v1/alarms/alarmRecordsCounts
Sample response
{
"data": {
"id": "1",
"type": "alarmRecordsCount",
"attributes": {
"id": "1",
"totalRecords": 30
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1188
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
Sample request
GET {{MCP_SERVER}}/nsa/api/v1/alarms/device-types
Sample response
{
"data": [
{
"type": "device-type",
"id": "1",
"attributes": {
"id": "1",
"value": "CN6500"
}
},
{
"type": "device-type",
"id": "2",
"attributes": {
"id": "2",
"value": "NUAGE"
}
},
{
"type": "device-type",
"id": "3",
"attributes": {
"id": "3",
"value": "OPENSTACK"
}
},
{
"type": "device-type",
"id": "4",
"attributes": {
"id": "4",
"value": "CN54XX"
}
}
],
"links": {},
"meta": {}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1189
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
Sample request
GET {{MCP_SERVER}}/nsa/api/v1/alarms/deviceAttributes/{Id}
Sample response
{
"data": {
"id": "100000",
"type": "deviceAttributes",
"attributes": {
"id": "100000",
"deviceName": "BestNode",
"ipAddress": "192.168.42.2",
"macAddress": "00-04-DC-01-02-03",
"AdditionalAttribute2": "abcde",
"Additional_attribute1": "12345"
}
}
}
{
"data": {
"id": "aff33de8-3a4c-4051-9723-2b7cb92e197d",
"type": "deviceAttributes",
"attributes": {
"id": "aff33de8-3a4c-4051-9723-2b7cb92e197d",
"deviceId": "247856e7-f1f3-3fba-97a8-a1dd97faedde",
"deviceName" "5430-OC-214",
"ipAddress": "192.168.3.214",
"partition": []
}
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1190
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
Provide the Id and sequenceId. The Id is the requested alarm identifier. The sequenceId is present in the
alarm record to be acted upon.
To get the Id and sequenceId for an alarm, perform the Alarms API described in the Query network alarms
section.
Sample request
POST {{MCP_SERVER}}/nsa/api/v2_0/alarms/{Id}/acknowledge/{sequenceId}
Sample response
Provide the Id and sequenceId. The Id is the requested alarm identifier. The sequenceId is present in the
alarm record to be acted upon.
To get the Id and sequenceId for an alarm, perform the Alarms API described in the Query network alarms
section.
Sample request
POST {{MCP_SERVER}}/nsa/api/v2_0/alarms/{Id}/unacknowledge/{sequenceId}
Sample response
Provide the Id and sequenceId. The Id is the requested alarm identifier. The sequenceId is present in the
alarm record to be acted upon.
To get the Id and sequenceId for an alarm, perform the Alarms API described in the Query network alarms
section.
Sample request
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1191
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
POST {{MCP_SERVER}}/nsa/api/v2_0/alarms/{Id}/force-clear/{sequenceId}
Sample response
Provide the Id and sequenceId. The Id is the requested alarm identifier. The sequenceId is present in the
alarm record to be acted upon.
To get the Id and sequenceId for an alarm, perform the Alarms API described in the Query network alarms
section.
Sample request
POST {{MCP_SERVER}}/nsa/api/v2_0/alarms/{Id}/manual-clear/{sequenceId}
Sample response
Sample request
GET {{MCP_SERVER}}/events-to-service-correlator/api/v1/affectedServices?alarmId={{alarmId}}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1192
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
Sample response
For 6500:
{
"data": [{
"attributes": {
"inventoryType": "fre",
"id": "-5686227573084971313",
"link": "/ui/#/photonics/-5686227573084971313",
"nativeName": "",
"serviceName": "",
"serviceType": "PHY"
},
"id": "-5686227573084971313",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "-3605809751029117228",
"link": "/ui/#/photonics/-3605809751029117228",
"nativeName": "",
"serviceName": "",
"serviceType": "OMS"
},
"id": "-3605809751029117228",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "4837043780625225707",
"link": "/ui/#/photonics/4837043780625225707",
"nativeName": "",
"serviceName": "",
"serviceType": "OTS"
},
"id": "4837043780625225707",
"type": "affectedService"
}
],
"meta": {
"count": "3"
}
}
For Waveserver:
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1193
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": [{
"attributes": {
"inventoryType": "fre",
"id": "-4264534818257075898",
"link": "/ui/#/photonics/-4264534818257075898",
"nativeName": "",
"serviceName": "",
"serviceType": "DSR_ETHERNET"
},
"id": "-4264534818257075898",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "8360887939273810900",
"link": "/ui/#/photonics/8360887939273810900",
"nativeName": "",
"serviceName": "",
"serviceType": "DSR_ETHERNET"
},
"id": "8360887939273810900",
"type": "affectedService"
}
],
"meta": {
"count": "2"
}
}
Sample request
GET {{MCP_SERVER}}/events-to-service-
correlator/api/v1/affectedServicesCounts?alarmIds={{alarmId}}
Note: Provide multiple values (alarmId) in new lines (at least one required).
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1194
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": {
"attributes": {
"counts": {
"-1208277793752683809": "2",
"4837043780625225707": "0"
}
},
"id": "1",
"type": "affectedServicesCounts"
}
}
Sample request
GET {{MCP_SERVER}}/events-to-service-correlator/api/v1/affectedServices?alarmId={{alarmId}}
Sample response
{
"data": [
{
"attributes": {
"inventoryType": "fre",
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_scProtPw",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_scProtPw",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_scProtPw",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1195
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "1268213195689691597",
"link": "/ui/#/packet-services/1268213195689691597",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "1268213195689691597",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "-5518214677590821756",
"link": "/ui/#/packet-services/-5518214677590821756",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "-5518214677590821756",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "889845168507751129",
"link": "/ui/#/packet-services/889845168507751129",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "889845168507751129",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_JeffTestEvpl_3",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_JeffTestEvpl_3",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_JeffTestEvpl_3",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_EVPL_PPW_min",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_EVPL_PPW_min",
"nativeName": "",
"serviceName": "",
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1196
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_EVPL_PPW_min",
"type": "affectedService"
},
{
"attributes": {
"inventoryType": "fre",
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_apMcpMpls",
"link": "/ui/#/packet-services/d96bca5f-9827-3023-be75-
3b6c03cf6eb1::FRE_EVC_apMcpMpls",
"nativeName": "",
"serviceName": "",
"serviceType": "ETHERNET"
},
"id": "d96bca5f-9827-3023-be75-3b6c03cf6eb1::FRE_EVC_apMcpMpls",
"type": "affectedService"
}
],
"meta": {
"count": "7"
}
}
Sample request
GET {{MCP_SERVER}}/events-to-service-
correlator/api/v1/affectedServicesCounts?alarmIds={{alarmId}}
Note: Provide multiple values (alarmId) in new lines (at least one required).
Sample response
{
"data": {
"attributes": {
"counts": {
"5958100796168664834": "2"
}
},
"id": "1",
"type": "affectedServicesCounts"
}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1197
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
Sample request
GET {{MCP_SERVER}}/nsa/api/v1/alarms/historicalDataRetentionDays
Sample response
{
"retentionDays": 30
}
The default retention period is 30 days. The retention period can be from 1 to 365 days.
To set the number of days that alarms are retained, use the Alarm API historical data retention days. You
must be a Network Admin role user.
Sample request
PUT {{MCP_SERVER}}/nsa/api/v1/alarms/historicalDataRetentionDays/{retentionDays}
Sample response
{
"retentionDays": 5
}
Note: Apply the API update before you update the configuration file.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1198
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
cd /bp2/<aeprocessorcontainer>/data/config/server-config/
RETENTION_DAYS=<numberOfDays>
Prerequisite
In order to avoid confusion, before you create an alarms filter, familiarize yourself with opening the
websocket connection and subscribing to a topic. For information on websockets, see Kafkacomet.
Requirements
Note: You have three minutes to subscribe to the new alarms filter using Kafka Comet before the filter is
automatically deleted (clean-up). Clean-up runs once every minute and deletes any filters that have not
been subscribed to or created in the past three minutes.
Sample request
POST {{MCP_SERVER}}/nsa/api/v2_0/alarms/filter
Sample input
{
"data": {
"type": "Filter",
"attributes": {
"severity": ["CRITICAL", "MAJOR"]
}
}
}
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1199
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": {
"id": "-6022851661353698515",
"type": "Filter",
"attributes": {
"channel": "bp.aeprocessor.v2_0.alarms.filter59",
"latestOffset": 0,
"nodeType": [],
"resource": [],
"nativeConditionType": [],
"nativeConditionTypeExclusion": [],
"severity": [
"CRITICAL",
"MAJOR"
],
"serviceAffecting": [],
"additionalText": [],
"additionalTextExclusion": [],
"raiseTimeHour": [],
"deviceName": [],
"deviceNameExclusion": [],
"ipAddress": [],
"ipAddressExclusion": []
}
}
}
Sample request
GET {{MCP_SERVER}}/nsa/api/v2_0/alarms/filter
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1200
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": [
{
"id": "-6022851661353698515",
"type": "Filter",
"attributes": {
"channel": "bp.aeprocessor.v2_0.alarms.filter59",
"nodeType": [],
"resource": [],
"nativeConditionType": [],
"nativeConditionTypeExclusion": [],
"severity": [
"CRITICAL",
"MAJOR"
],
"serviceAffecting": [],
"additionalText": [],
"additionalTextExclusion": [],
"raiseTimeHour": [],
"deviceName": [],
"deviceNameExclusion": [],
"ipAddress": [],
"ipAddressExclusion": []
}
},
{
"id": "2088028032440081749",
"type": "Filter",
"attributes": {
"channel": "bp.aeprocessor.v2_0.alarms.filter44",
"nodeType": [],
"resource": [],
"nativeConditionType": [],
"nativeConditionTypeExclusion": [],
"severity": [
"MAJOR"
],
"serviceAffecting": [],
"additionalText": [],
"additionalTextExclusion": [],
"raiseTimeHour": [],
"deviceName": [],
"deviceNameExclusion": [],
"ipAddress": [],
"ipAddressExclusion": []
}
}
]
}
Note: This API forcefully deletes an alarm filter and must be used with caution. Active consumers
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1201
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
subscribed to the filter will no longer receive notifications for that filter and may begin to receive
notifications for a new filter.
Inactive filters are automatically deleted after 3 - 4 minutes of inactivity. If you do not want to wait for the
automatic clean-up and you are confident there are no other subscribers, use this API to delete the filter.
This API can also be used to delete filters that are suspected to be inactive but have not been
automatically cleaned-up.
The preferred method to delete filters that are not automatically cleaned-up is to subscribe using Kafka
Comet and then unsubscribe. If there are no other active consumers for the filter, the filter will be
automatically cleaned-up after 3 - 4 minutes.
Sample request
DELETE {{MCP_SERVER}}/nsa/api/v2_0/alarms/filter/{channel}
Sample input
bp.aeprocessor.v2_0.alarms.filter59
Sample response
Sample request
GET {{MCP_SERVER}}/nsa/api/v2_0/alarms/filter/activeAlarmCounts
Sample response
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1202
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
{
"data": [],
"meta": {
"query-total": 36,
"query-aggregations": {
"severity": {
"MAJOR": 11,
"MINOR": 22,
"WARNING": 2,
"CRITICAL": 1
}
}
}
}
The alarm count data is cached in AEP, so the same data can be re-used for the next REST call issued
within 10 seconds.
The frequency can be modified in the following file (no restart required):
ALARM_COUNTS_EXPIRE_SECONDS=<numberOfSeconds>
Note also:
• If the value has not been changed from the default, use the POST command with the following
information to create the configuration change.
• If the alarm severity has already been changed, to further update, use the PATCH API call.
Sample request
POST {{MCP_SERVER}}/gcs/api/v1/config
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1203
Blue Planet MCP API Reference Guide, Release 18.06 Alarm management
• Specify the relevant name and title exactly as it appears in the 'Key and Name' column of the table
above.
• Specify the value: CRITICAL, MAJOR, MINOR, WARNING, INFO.
Sample request
The following sample is a POST call that sets the severity for the NE LOA alarm to WARNING. The Sample
requests and Sample response for NE Sync Fail, NE Backup, and NE Upgrade alarms are similar.
[
{
"application": "nsi",
"partition": "nsi",
"instance": "-",
"name": "alarm.lossOfAssociation.severity",
"title": "alarm.lossOfAssociation.severity",
"description": "Changing NE LOA from MAJOR to WARNING",
"value": "WARNING",
"default": "MAJOR"
}
]
Sample response
[
{
"application": "nsi",
"partition": "nsi",
"instance": "-",
"name": "alarm.lossOfAssociation.severity",
"title": "alarm.lossOfAssociation.severity",
"description": "Changing NE LOA from MAJOR to WARNING",
"value": "WARNING",
"default": "MAJOR"
"callbacks": [ "http://172.16.0.11:8080/configuration/api/v1/callback" ],
"key": "nsi/-/nsi/alarm.lossOfAssociation.severity"
}
]
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1204
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1205
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
These reports are also stored on the MCP server and can be retrieved using specific API calls.
Actions available for all supported report types using the API include:
The reporting module uses the following API calls to generate, retrieve, and delete reports:
On-demand reporting
You can generate a report immediately using the Reporting API’s report v1 or v2 calls.
You can generate reports using the Swagger interface that is included with the MCP UI. You must have
valid MCP login credentials to access the Swagger UI in MCP.
To run reports from the Swagger UI, navigate to the list of report APIs as described below, and run any
single call using its "Try it out" button. MCP will submit the call to the server and display the response to
the submitted call in the same UI window. You can copy and paste this displayed information into another
application.
To access Swagger:
The Response Body lists the available report types in the current release. Note the string after
"reportType", which you will need to generate that report from the API.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1206
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
'"reportType": "string"'
Note: The correct reportType strings for all available report types were displayed in response to the
previous call.
The Code 201 response body displayed in the UI will resemble the following example.
{
"data": [
{
"id": "281b4d163c8d4b0ba93a85aba7b8f771",
"type": "generatedReport",
"attributes": {
"resourceId": "281b4d163c8d4b0ba93a85aba7b8f771",
"reportType": "PW_CIR_REPORT",
"reportGenerationTime": "2018-05-23T04:36:06.480Z",
"reportStatus": "REQUESTED",
"reportGenerationMode": "ON_DEMAND"
}
}],
"links": {},
"meta": {}
}
Note the resourceId value. This is the ID of the generated report You will use this ID to retrieve the
generated report, as described in Retrieving report data .
You can retrieve report data using the following v2 API call:
/reporting/api/v2/report/{resourceid}
You must provide the Resource ID associated with the report you are seeking, and the format in which you
want to download the report data (either CSV or JSON). The resulting data will be delivered in a
downloadable octet-stream.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1207
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Save the downloaded file in zip format; then you can unzip the file to view the report.
Deleting reports
You can delete individual reports using the following API call:
/reporting/api/v2/report/delete/{resourceId}
/reporting/api/v2/report/delete/ece539710ba64937b30b27d6e8e5fc01
Or, you can delete a set of reports that fall within a time range using the same API call, but with syntax
resembling the following:
/reporting/api/v2/report/delete?fromDate=2018-02-
18T03%3A00%3A17.103Z&toDate=2018-02-
19T03%3A00%3A17.103Z&reportType=LLDP_LINKS_REPORT
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1208
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
{
"cronExpression": "string",
"cronExpressionFormat": "string",
"reportType": "string"
}
Where:
• cronExpression: You can provide cron expression for the schedule and reporting server will take care
of repetitive occurrence of the schedule.
• cronExpressionFormat: You must provide the cron expression format. Acceptable values are
"QUARTZ" or "UNIX".
• reportType: This is the type of report you are scheduling.
Sample Response:
{
"data": [
{
"id": "ddbad61a1eb544e98bb7b829a034aef7",
"type": "reportingSchedule",
"attributes": {
"resourceId": "ddbad61a1eb544e98bb7b829a034aef7",
"reportType": "LLDP_LINKS_REPORT",
"cronExpression": "00 00 19 23 May ? 2018",
"cronExpressionFormat": "QUARTZ",
"cronDescription": "at 19:00 at 23 day at May month at 2018 year"
}
}
],
"links": {},
"meta": {}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1209
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
The resourceId uniquely identifies this report schedule. You can use that ID to obtain information about
the report, or to delete the report, using the following API calls respectively:
• GET /reporting/api/v2/schedule
The system returns a list of all schedules, each with an associated resourceId.
You can use those resourceId values to retrieve or delete a specific schedule.
Alarms reports
The reporting module supports the generation of a alarms report including the following parameters:
• clfi
• direction
• additional text
• acknowledgeUpdateTime
• acknowledgeUpdateUser
• staticAlarmId
• clearTime
• deviceName
• id
• ipAddress
• firstRaiseTime
• lastRaiseTime
• macAddress
• nativeConditionType
• numberOfOccurrences
• resource
• severity
• serviceAffecting
• type
You can add, delete, and adjust existing report parameters by adding a file with the following name:
• reporting_format_alarms_report_v1_csv
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1210
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
clfi.VALUE=clfi
direction.VALUE=direction
additionalText.VALUE=additionalText
acknowledgeUpdateTime.VALUE=acknowledgeUpdateTime
acknowledgeUpdateUser.VALUE=acknowledgeUpdateUser
staticAlarmId.VALUE=staticAlarmId
clearTime.VALUE=clearTime
deviceName.VALUE=deviceName
id.VALUE=id
ipAddress.VALUE=ipAddress
firstRaiseTime.VALUE=firstRaiseTime
lastRaiseTime.VALUE=lastRaiseTime
macAddress.VALUE=macAddress
nativeConditionType.VALUE=nativeConditionType
numberOfOccurrences.VALUE=numberOfOccurrences
resource.VALUE=resource
severity.VALUE=severity
serviceAffecting.VALUE=serviceAffecting
type.VALUE=type
Equipment reports
The reporting module supports the generation of an equipment report including the following parameters:
• ID
• customer code
• name
• name format
• network construct
• type
• availability state
• reservation state
• primary state
• part number
• secondary state
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1211
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• serial number
• project name
You can add, delete, and adjust existing report parameters by adding a file with the following name:
• reporting_format_equipment_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
ID.VALUE=id
CUSTOMER_CODE.VALUE=customerCode
NAME.VALUE=displayName
NAME_FORMAT.VALUE=displayNameFormat
NETWORK_CONSTRUCT.VALUE=networkConstruct
TYPE.VALUE=type
AVAILABILITY_STATE.VALUE=availabilityState
RESERVATION_STATE.VALUE=reservationState
PRIMARY_STATE.VALUE=state
PART_NUMBER.VALUE=partNumber
SECONDARY_STATE.VALUE=secondaryState
SERIAL_NUMBER.VALUE=serialNumber
PROJECT_NAME.VALUE=projectName
• ID
• association state
• name
• IP address
• resource type
• sync state
• MAC address
• map site
• number of shelves
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1212
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• partitions
• shelf type
• software version
• sync state text
• sys location
You can add, delete, and adjust existing report parameters by adding a file with the following name:
• reporting_format_ne_list_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
ID.VALUE=id
ASSOCIATION_STATE.VALUE=association_state
NAME.VALUE=name
IP_ADDRESS.VALUE=ip_address
RESOURCE_TYPE.VALUE=resource_type
SYNC_STATE.VALUE=sync_state
MAC_ADDRESS.VALUE=mac_address
NUMBER_OF_SHELVES.VALUE=number_of_shelves
PARTITIONS.VALUE=partitions
SHELF_TYPE.VALUE=shelf_type
SOFTWARE_VERSION.VALUE=software_version
SYNC_STATE_TEXT.VALUE=sync_state_text
SYS_LOCATION.VALUE=sys_location
LLDP reports
The reporting module supports the generation of reports regarding LLDP links in the managed network.
• "From" NE name
• "From" NE IP address
• "From" NE type
• "To" NE name
• "To" NE IP address
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1213
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• "To" NE type
• Link label
• Link ID
• "From" port
• "To" port
• Tags
You can add, delete and adjust existing report parameters by adding a file with the following name:
• reporting_format_lldp_links_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
HEADER=TAGS, FROM_NE, FROM NE IP, FROM NE TYPE, TO NE, TO NE IP, TO NE TYPE, LINK
LABEL, FROM PORT, TO PORT
FROM_NE.VALUE=from_ne
FROM NE IP.VALUE=from_ne_ip
FROM NE TYPE.VALUE=from_ne_type
TO NE.VALUE=to_ne
TO NE IP.VALUE=to_ne_ip
TO NE TYPE.VALUE=to_ne_type
LINK LABEL.VALUE=link_label
FROM PORT.VALUE=from_port
TO PORT.VALUE=to_port
TAGS.VALUE=tags
tags.TYPE=Array
• EVC_NAME
• PW_NAME
• PW_ROLE
• PRIMARY_PW_NAME
• BKUP_PW_NAME
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1214
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• LOCAL_PW_NE
• LOCAL_PW_NE_IP
• LOCAL_LABEL
• LOCAL_PW_MODE
• LOCAL_POLICING
• LOCAL_ENDPOINT
• PEER_PW_NE
• PEER_PW_NE_IP
• PEER_LABEL
• PEER_PW_MODE
• PEER_POLICING
• PEER_ENDPOINT
• TYPE
The above parameters are then followed by the set below, which are repeated for each tunnel on the
pseudowire path (with appended numbers 1, 2, 3, and so on to distinguish each tunnel):
• PRIMARY_TUNNEL_NAME
• PRIMARY_TUNNEL_PATH
• BACKUP_TUNNEL_NAME
• BACKUP_TUNNEL_PATH
Note: This report will include pseudowires for which both endpoints are contained in the list of service
endpoints. If a pseudowire is not associated with any service, then it will not be included in the report.
You can add, delete and adjust existing report parameters by adding a file with the following name:
• reporting_format_pw_cir_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1215
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
There are 96 BINs for a duration of 24 hours. All 15-minute BINs for each port will be added as a separate
row in the report.
• Name
• Customer name
• Overall type
• Layer rate
• Layer rate qualifier
• Deployment state
• Is multipoint
• Is bidirectional
• Number of endpoints
• Source name
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1216
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• Source locations
• Source format
• Destination name
• Destination locations
• Destination format
• Resiliency
• Life cycle
• Description
• Frequency
• SRLG
• Fiber loss
• Planned margin
• Planned loss
• Operational state
• Admin state
• SNCG
• SNR margin
You can add, delete and adjust existing report parameters by adding a file with the following name:
• reporting_format_photonic_service_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
• Name
• Customer name
• Overall type
• Layer rate
• Layer rate qualifier
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1217
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• Deployment state
• Is multipoint
• Is bidirectional
• Number of endpoints
• Source name
• Source locations
• Source format
• Destination name
• Destination locations
• Destination format
• Resiliency
• Life cycle
• Description
• Frequency
• SRLG
• Fiber loss
• Planned margin
• Planned loss
• Operational state
• Admin state
• SNCG
• SNR margin
You can add, delete and adjust existing report parameters by adding a file with the following name:
• reporting_format_transport_client_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1218
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• id
• Name
• Customer name
• Overall type
• Layer rate
• Layer rate qualifier
• Deployment state
• Is multipoint
• Is bidirectional
• Number of endpoints
• Source name
• Source locations
• Source format
• Destination name
• Destination locations
• Destination format
• Resiliency
• Life cycle
• Description
• Frequency
• SRLG
• Fiber loss Source
• Fiber loss
• Operational state
• Admin state
You can add, delete and adjust existing report parameters by adding a file with the following name:
• reporting_format_transport_infrastructure_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1219
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• Name
• Customer name
• Overall type
• Layer rate
• Layer rate qualifier
• Deployment state
• Is multipoint
• Is bidirectional
• Number of endpoints
• Source name
• Source locations
• Source format
• Destination name
• Destination locations
• Destination format
• Resiliency
• Life cycle
• Description
You can add, delete and adjust existing report parameters by adding a file with the following name:
• reporting_format_packet_service_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1220
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
• id
• Name
• Customer name
• Overall type
• Layer rate
• Layer rate qualifier
• Deployment state
• Is multipoint
• Is bidirectional
• Number of endpoints
• Source name
• Source locations
• Source format
• Destination name
• Destination locations
• Destination format
• Resiliency
• Life cycle
• Consumed bandwidth
• Max reservable bandwidth
• Max reservable bandwidth unit
• Percent consumed bandwidth
You can add, delete and adjust existing report parameters by adding a file with the following name:
• reporting_format_packet_infrastructure_report_v2_csv
• /bp2/data/config/server-config
This file can omit any of the parameters listed above to omit that value from the report. Also, the
sequence of parameters in the .csv file is the sequence in which the parameters will be listed in the
report.
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1221
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
API /reporting/api/v2/report/{resourceId}
Request payload NA
Query parameter NA
API /reporting/api/v2/report/reportsinfo
Request payload NA
Path parameter NA
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1222
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Response {
"data": [
{
"id": "95b3efe3fe42431884c70d22d7b86bbb",
"type": "generatedReport",
"attributes": {
"resourceId": "95b3efe3fe42431884c70d22d7b86bbb",
"reportType": "LLDP_LINKS_REPORT",
"reportGenerationTime": "2018-05-22T11:38:00.423Z",
"reportStatus": "SUCCESS",
"reportGenerationMode": "ON_DEMAND"
}
}
],
"links": {},
"meta": {
"aggregations": [
{
"name": "reportStatus",
"buckets": [
{
"bucketKey": "Requested",
"bucketValue": "0"
},
{
"bucketKey": "Processing",
"bucketValue": "0"
},
{
"bucketKey": "Success",
"bucketValue": "1"
},
{
"bucketKey": "Failed",
"bucketValue": "0"
}
]
},
{
"name": "reportGenerationMode",
"buckets": [
{
"bucketKey": "On demand",
"bucketValue": "1"
},
{
"bucketKey": "Scheduled",
"bucketValue": "0"
}
]
}
]
}
}
API /reporting/api/v2/report/reportinfo/{resourceId}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1223
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Request payload NA
Query parameter NA
Response {
"data": [
{
"id": "281b4d163c8d4b0ba93a85aba7b8f771",
"type": "generatedReport",
"attributes": {
"resourceId": "281b4d163c8d4b0ba93a85aba7b8f771",
"reportType": "PW_CIR_REPORT",
"reportGenerationTime": "2018-05-23T04:36:06.480Z",
"reportStatus": "REQUESTED",
"reportGenerationMode": "ON_DEMAND"
}
}
],
"links": {},
"meta": {}
}
API /reporting/api/v2/report/delete/{resourceId}
Request payload NA
Query parameter NA
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1224
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
API /reporting/api/v2/report/delete
Request payload NA
Path parameter NA
API /reporting/api/v2/report
or
{reportType="PW_CIR_REPORT"}
or
{reportType="PM_CRC_REPORT"}
or
{reportType="PM_DROPPED_PKTS_REPORT"}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1225
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Query parameter NA
Path parameter NA
Response {
"data": [
{
"id": "281b4d163c8d4b0ba93a85aba7b8f771",
"type": "generatedReport",
"attributes": {
"resourceId": "281b4d163c8d4b0ba93a85aba7b8f771",
"reportType": "PW_CIR_REPORT",
"reportGenerationTime": "2018-05-23T04:36:06.480Z",
"reportStatus": "REQUESTED",
"reportGenerationMode": "ON_DEMAND"
}
}
],
"links": {},
"meta": {}
}
API /reporting/api/v2/report/supported/reporttype
Request payload NA
Query parameter NA
Path parameter NA
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1226
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Response {
"data": {
"type": "supportedreporttypes",
"links": {},
"attributes": {
"supportedReportTypeList": [
{
"reportType": "LLDP_LNIKS_REPORT",
"description": "This report provides all LLDP links
information."
},
{
"reportType": "PW_CIR_REPORT",
"description": "This report provides PW and all related
service's CIR details."
},
{
"reportType": "PM_CRC_REPORT",
"description": "This report provides LLDP Port CRC
errors."
}
]
}
},
"links": {},
"meta": {}
}
API /reporting/api/v2/schedule/{resourceId}
Request payload NA
Query parameter NA
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1227
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Response {
"data": [
{
"id": "ddbad61a1eb544e98bb7b829a034aef7",
"type": "reportingSchedule",
"attributes": {
"resourceId": "ddbad61a1eb544e98bb7b829a034aef7",
"reportType": "LLDP_LINKS_REPORT",
"cronExpression": "00 00 19 23 May ? 2018",
"cronExpressionFormat": "QUARTZ",
"cronDescription": "at 19:00 at 23 day at May month at 2018 year"
}
}
],
"links": {},
"meta": {}
}
API /reporting/api/v2/schedule/delete/{resourceId}
Request payload NA
Query parameter NA
API /reporting/api/v2/schedule/create
Request payload NA
Path parameter NA
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1228
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Response {
"data": [
{
"id": "ddbad61a1eb544e98bb7b829a034aef7",
"type": "reportingSchedule",
"attributes": {
"resourceId": "ddbad61a1eb544e98bb7b829a034aef7",
"reportType": "LLDP_LINKS_REPORT",
"cronExpression": "00 00 19 23 May ? 2018",
"cronExpressionFormat": "QUARTZ",
"cronDescription": "at 19:00 at 23 day at May month at 2018 year"
}
}
],
"links": {},
"meta": {}
}
Request payload NA
Path parameter NA
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1229
Blue Planet MCP API Reference Guide, Release 18.06 MCP reports using the REST API
Response {
"data": [
{
"id": "ddbad61a1eb544e98bb7b829a034aef7",
"type": "reportingSchedule",
"attributes": {
"resourceId": "ddbad61a1eb544e98bb7b829a034aef7",
"reportType": "LLDP_LINKS_REPORT",
"cronExpression": "00 00 19 23 May ? 2018",
"cronExpressionFormat": "QUARTZ",
"cronDescription": "at 19:00 at 23 day at May month at 2018 year"
}
}
],
"links": {},
"meta": {}
}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1230
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
UAC GET
/api/v1/applica
tions
UAC POST
/api/v1/applica
tions
UAC DELETE
/api/v1/applica
tions/{uuid}
UAC GET
/api/v1/applica
tions/{uuid}
UAC PATCH
/api/v1/applica
tions/{uuid}
UAC PUT
/api/v1/applica
tions/{uuid}
UAC POST
/api/v1/auth
UAC GET
/api/v1/current
-user
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1231
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
UAC GET
/api/v1/current
-user/login_inf
o
UAC GET
/api/v1/login-
info
UAC POST
/api/v1/logout
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1232
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
UAC POST
/api/v1/oauth2
/tokens
UAC DELETE
/api/v1/oauth2
/tokens/{token
}
UAC POST
/api/v1/oauth2
/tokens/{token
}/change_tena
nt_context
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1233
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1234
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
UAC POST
/api/v1/registe
r
UAC POST
/api/v1/registe
r/confirm_emai
l
UAC POST
/api/v1/registe
r/forgot_passw
ord
UAC POST
/api/v1/registe
r/resend_confir
mation
UAC POST
/api/v1/registe
r/set_passwor
d
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1235
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1236
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
UAC POST
/api/v1/tokens
UAC DELETE
/api/v1/tokens
/{token}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1237
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1238
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
UAC POST
/api/v1/users/{
uuid}/set_pass
word
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1239
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1240
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1241
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1242
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1243
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1244
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1245
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1246
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
Network GET
element /configmgmt/a
configuration pi/v1/scriptPro
files/{id}
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1247
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1248
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1249
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1250
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1251
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1252
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1253
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1254
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1255
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1256
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1257
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1258
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1259
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1260
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1261
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1262
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1263
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1264
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1265
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1266
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1267
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1268
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1269
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1270
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1271
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1272
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1273
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1274
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1275
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1276
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1277
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1278
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1279
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1280
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1281
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1282
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1283
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1284
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1285
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1286
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1287
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1288
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1289
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1290
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1291
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1292
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1293
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1294
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1295
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1296
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1297
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1298
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1299
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1300
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1301
Blue Planet MCP API Reference Guide, Release 18.06 Appendix A: Blue Planet MCP REST API permissions
450-3709-321 07.04 ©2017-2018 Ciena Corporation. All rights reserved. October 2018 | Page 1302