-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetbox_nso_with_child_wfs.json
More file actions
121 lines (121 loc) · 2.61 KB
/
Copy pathnetbox_nso_with_child_wfs.json
File metadata and controls
121 lines (121 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"id": "Netbox and NSO 1.0",
"name": "Netbox and NSO",
"start": "AllocatePrefixes",
"states": [
{
"name": "AllocatePrefixes",
"type": "operation",
"actions": [
{
"name": "Run Allocate Prefixes Workflow",
"retryRef": "Default",
"subflowRef": {
"version": "1.0",
"workflowId": "Allocate Prefixes"
}
}
],
"transition": "SyncFrom"
},
{
"name": "SyncFrom",
"type": "operation",
"actions": [
{
"name": "SyncFrom",
"retryRef": "Default",
"functionRef": {
"refName": "NSO.RestconfPost",
"arguments": {
"input": {
"path": "restconf/operations/tailf-ncs:devices/sync-from"
},
"config": {
"resourceId": "NSOLocal"
}
}
},
"actionDataFilter": {
"results": "${ if .data then .data.\"tailf-ncs:output\" else null end }",
"toStateData": "${ .syncFromResult }"
}
}
],
"transition": {
"nextState": "CreateVPN"
}
},
{
"name": "CreateVPN",
"type": "operation",
"actions": [
{
"name": "Configure VPN",
"retryRef": "Custom",
"subflowRef": {
"version": "1.0",
"workflowId": "Configure VPN"
}
}
],
"transition": "ReportOnWebX"
},
{
"end": true,
"name": "ReportOnWebX",
"type": "operation",
"actions": [
{
"name": "Report",
"retryRef": "Custom",
"subflowRef": {
"version": "1.0",
"workflowId": "Webex"
}
}
]
}
],
"retries": [
{
"name": "Default",
"delay": "PT30S",
"multiplier": 1,
"maxAttempts": 2
},
{
"name": "Custom",
"delay": "PT10S",
"multiplier": 1,
"maxAttempts": 2
}
],
"version": "1.0",
"functions": [
{
"name": "REST.Post",
"operation": "generic.rest.v1.0.1.request.Post"
},
{
"name": "REST.Delete",
"operation": "generic.rest.v1.0.1.request.Delete"
},
{
"name": "NSO.RestconfPost",
"metadata": {
"worker": "cisco.nso.v1.0.1"
},
"operation": "cisco.nso.v1.0.1.restconf.Post"
},
{
"name": "NSO.RestconfPut",
"metadata": {
"worker": "cisco.nso.v1.0.1"
},
"operation": "cisco.nso.v1.0.1.restconf.Put"
}
],
"description": "",
"specVersion": "0.9"
}