Create a Kafka Trigger
|
|
|
1 |
From the Workflows, Kafka Triggers view, click CREATE KAFKA TRIGGER. The Create Kafka Trigger form opens.
|
2 |
Configure the parameters as follows:
-
Workflow (PUBLISHED): switchover
-
Kafka Topic: nsp-db-fm
-
Trigger Rule: $[?(@.alarmName == 'CprotoChannelDown' && @.severity == 'major')]
-
Kafka Event: CREATE
-
Enable the ENABLED check box
|
3 |
Click CREATE. The Kafka Trigger is created.
|
Create an Environment
|
|
|
4 |
From the Workflows, Environments view, click CREATE ENVIRONMENT. The Create Environment form opens.
|
5 |
Add the following variables:
-
username: The username used to log in to the NSP host server
-
password: The password used with the above username
-
ping_duration: 3
-
delay: 300
-
site1_vsr: The IP address of the primary VSR-NRC
-
site1_wfm: The private IP address of the primary Workflow Manager
-
site1_vip_advertised: The advertised IP address of the primary NSP host server
-
site2_vsr: The IP address of the standby VSR-NRC
-
site2_wfm: The private IP address of the standby Workflow Manager
-
site2_vip_advertised: The advertised IP address of the standby NSP host server
-
site2_sdn1: The private IP address of the first member of the standby NSP host server cluster
-
site2_sdn2: The private IP address of the second member of the standby NSP host server cluster
-
site2_sdn3: The private IP address of the third member of the standby NSP host server cluster
Note: If the NSP host server was deployed with 1+1 redundancy, the values of site2_sdn1, site2_sdn2, and site2_sdn3 should be set to 'null'.
|
Import or create workflow
|
|
|
6 |
Perform one of the following:
-
From the Workflows, All Workflows view, choose IMPORT > File System.
-
From the Workflows, All Workflows view, choose IMPORT > GitHub.
-
From the Workflows, All Workflows view, click WORKFLOW.
|
7 |
See the NSP Network Automation Guide for more information about creating workflows.
End of steps |