Custom Service Splitting#
| Field | Value |
|---|---|
| Activity name | Custom Service Splitting |
| Activity ID | 39 |
| Short Description | Execute a custom service splitting approach to regroup service sites together |
| Difficulty | Intermediate |
| Topology Nodes | PE1, PE2 |
| References | NSP Developer Portal |
1. Objective#
Building on Brownfield Service Discovery, production networks often keep brownfield inventory that matched an early design or first import—not how you later want services grouped or stitched for operations, assurance, or customer ownership. When that gap shows up, you need a controlled path to propose regroupings and apply them only after review.
In situations like these, this activity shows how NSP lets you split what brownfield discovery surfaced into separate services and regroup sites using custom algorithms (for example customer ID) so the outcome better fits the customer network.
2. Tasks#
You should read these tasks from top to bottom before beginning the activity.
It is tempting to skip ahead, but tasks may require you to have completed previous tasks before tackling them.
Warning
Remember that you are using a shared NSP system. Include your group number in every workflow input that asks for Group ID (and in filters such as g<N>-p1 where applicable).
2.1 Quick start on NSP Web UI#
| NE Session | ☰ → Network Search and Inventory → find your group's PE node (for example g7-pe1) → open the row context menu ⋮ → Open in NE Session. |
| NSP Help | ? icon at the top right for context-aware quick help and to open the Help Center. On some pages, the ? icon also links directly to related Help Center articles. |
| Service Management | ☰ → Service Management |
| Workflow Manager | ☰ → Workflows |
To keep the walkthrough in one place, this activity uses workflows to present the splitting algorithm in action.
How to check workflow execution status?
To check the execution status of any workflow, navigate to Workflow Manager, select Workflow Executions from the dropdown. Locate your execution. If you see more than one execution (since it is a shared NSP system), double-click one of the entries. From the dropdown, select Input/Output to cross-check your execution. To drill deeper into the flow, select Flow view from the dropdown.
2.2 Prerequisite#
Complete Brownfield Service Discovery first so you already have a view of how services get stitched by default in NSP.
2.3 Generate a Service Splitting Report#
- In Workflows, clone
custom-service-splitting -
Name it
custom-service-splitting-g<groupID>, for examplecustom-service-splitting-g3 -
On the cloned workflow row, open the ⋮ (three-dots) menu on the right, choose Modify status, and set the status to Published.
-
From the same menu, choose Execute. Set the input parameters to
- Group ID: your assigned group value, for example
group3 - Splitting Algorithm: split-by-customer-id
- Approve Changes: false
- Group ID: your assigned group value, for example
-
When the workflow execution completes, open it and review the HTML report.
- Confirm the recommendations are only for services in your group
Why set Approve Changes to false first?
Leaving Approve Changes false keeps this run in recommendation-only mode: you read the HTML report before execute-approved-splits runs. You can also see whether any multi-site brownfield services match your inputs and whether the algorithm returned split candidates—without applying moves or creating services yet.
2.4 Add an Approval Gate#
- In Workflows, edit your
custom-service-splitting-g<groupID>workflow - Locate the end of the workflow after the report-rendering step
- Add a subworkflow task that calls the execute-approved-splits workflow
Solution if you get stuck
- Connect the report/review path to execute-approved-splits only when Approve Changes is checked
- Pass the report list output into the execute-approved-splits subworkflow
- Save and publish the workflow
2.5 Approve and Execute#
- Execute your updated workflow again with the same Group ID and selected algorithm
- Check Approve Changes only after you have reviewed the recommendations
- Confirm that the execution calls execute-approved-splits
- In Executions, verify that the workflow results and final report show the site moves completed and that NSP created any new destination service IDs from the supplied target service names
3. Summary#
Congratulations. In this activity, with the help of the custom-service-splitting workflow:
- You have generated a splitting report
- You compared the built-in splitting algorithms
- You published the workflow before executing it
- You added an approval flow to gate the execution
- You executed only the approved suggestions
3.1 Next Steps#
You have already split using customer ID. Suppose you must group by Service Site Name. How would you do that? Try extending the workflow yourself: add a suitable field to Workflow Inputs, connect it in the workflow definition, and add the branch or condition so the recommender and HTML report follow the new choice. The underlying logic is already there. Your task is to find where to register the extra dropdown option and which condition should trigger it.