Auto-stitching a brownfield service
Auto-stitching
By default, automatic stitching of services is disabled in IBSF. Users can either stitch a service type manually by following the above procedure or enable auto-stitching in which each service type will have a predefined list of supported stitching algorithms that can be selected to run automatically.
The auto-stitching is supported for service-types Eline, Elan, IES, and L3 VPN for the algorithms mentioned in the table below:
Service Type |
Algorithm |
Eline |
vcid, evi, route-target, local and service-name |
Elan |
vcid, evi, route-target and service-name |
IES |
service-name |
L3 VPN |
route-target and service-name |
The auto-stitching is disabled by default. The user has to enable the auto-stitching per service-type and specific algorithm type.
The different API calls for auto-stitching are mentioned below.
fetch auto-stitch-config:
restconf GET Url: (https://{{server}}/restconf/data/nsp-service-stitch:nsp-service-auto-stitch-configs/nsp-service-auto-stitch-config)
restconf GET Url for service-type (eline):(https://{{server}}/restconf/data/nsp-service-stitch:nsp-service-auto-stitch-configs/nsp-service-auto-stitch-config=eline)
patch auto-stitch-config:
restconf Patch Url for service-type (eline): (https://{{server}}/restconf/data/nsp-service-stitch:nsp-service-auto-stitch-configs/nsp-service-auto-stitch-config=eline)
payload:
{ "nsp-service-stitch:nsp-service-auto-stitch-config": [ { "admin-state": "unlocked", "algorithm-config": [ { "algorithm": "evi", "admin-state": "unlocked" }, { "algorithm": "vcid", "admin-state": "locked" }, { "algorithm": "route-target", "admin-state": "locked" }, { "algorithm": "service-name", "admin-state": "locked" }, { "algorithm": "local", "admin-state": "locked" } ] } ] }
put auto-stitch-config:
restconf Put Url for service-type (eline): (https://{{server}}/restconf/data/nsp-service-stitch:nsp-service-auto-stitch-configs/nsp-service-auto-stitch-config=eline)
payload:
{ "nsp-service-stitch:nsp-service-auto-stitch-config": [ { "service-type": "eline", "admin-state": "unlocked", "algorithm-config": [ { "algorithm": "evi", "admin-state": "locked" }, { "algorithm": "vcid", "admin-state": "locked" }, { "algorithm": "route-target", "admin-state": "locked" }, { "algorithm": "service-name", "admin-state": "unlocked" }, { "algorithm": "local", "admin-state": "locked" } ] } ] } ** Unlocked – enabled ** locked - disabled