How can I interact with the Nokia Git repository from NSP?

Purpose

The Nokia nsp-workflow repository on GitHub hosts sample workflows to be used with NSP. Use these workflows to get to know workflows in NSP, or as blueprints for your own workflows. You can also check for updates to workflows you have imported, or open the Nokia nsp-workflow repository.

The default environment uses the Nokia repository on GitHub. You can update the default environment to point to your own Git if needed.

Prerequisite

To import from the Nokia GitHub repository, you must add the following URLs to the allowed hosts list on the NSP server:

You can update the allowed hosts via postman, or using curl from the command line on the NSP server:

curl -kv --request POST https://VM IP/session-manager/api/v1/whitelist/allowedHosts --header 'Content-Type: application/json' --data-raw '{ "host": "url" }' --header "Authorization: Bearer authorization token

where VM IP is the IP address of the NSP server, url is the URL you are adding, and authorization token is a bearer token requested from NSP.

Steps
 

Open Workflows, All Workflows.


Click the IMPORT drop-down list and choose GitHub to open the Import from Git form.


To import a workflow from Git:

  1. In the Import from Git form, choose png10.pngImport Packages from the panel at the left of the screen.

  2. Explore the list of workflows, or filter the list using the filter field.

    If a workflow has not been added to your NSP, the IMPORT button is available. If updates are available for a workflow you have imported, the UPDATE button is available.

  3. Click the web link to view the workflow in the Nokia repository, or click More actionspng11.png for details.

  4. Click IMPORT. The workflow is imported and the IMPORT button changes to an indicator that your copy of the workflow is up to date.


To import updates to workflows you have saved:

  1. In the Import from Git form, choose png12.pngUpdates from the panel at the left of the screen.

  2. Click Check for Updates to refresh the list of available updates.

  3. Explore the list of updates, or filter the list using the filter field.

  4. Choose an update from the list and click UPDATE, or click UPDATE ALL at the top of the form.

    The updates are completed.


To open the repository, in the Import from Git form, choose png13.pngOPEN REPOSITORY from the panel at the left of the form.

The Nokia nsp-workflow repository opens in a new browser tab.

End of steps