Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag on playbook input for autoclose incident #32

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ tasks:
'#none#':
- "61"
scriptarguments:
autoclose_incident:
simple: ${inputs.autoclose_incident}
peer_device:
simple: ${incident.panosnetworkoperationsupgradepeerfirewall}
target_device:
Expand Down Expand Up @@ -331,4 +333,10 @@ inputs:
required: false
description: Target version of upgrade
playbookInputQuery: null
- key: autoclose_incident
value:
simple: "true"
required: false
description: Controls whether or not to autoclose the incident
playbookInputQuery: null
outputs: []
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ tasks:
{
"position": {
"x": 230,
"y": 3860
"y": 4180
}
}
note: false
Expand Down Expand Up @@ -1416,7 +1416,7 @@ tasks:
'#default#':
- "64"
"yes":
- "31"
- "76"
separatecontext: false
conditions:
- label: "yes"
Expand Down Expand Up @@ -1816,6 +1816,77 @@ tasks:
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"76":
id: "76"
taskid: daf27cf5-ae65-4c3f-88b0-9a64342686e2
type: condition
task:
id: daf27cf5-ae65-4c3f-88b0-9a64342686e2
version: -1
name: Autoclose Incident?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "77"
"yes":
- "31"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: inputs.autoclose_incident
iscontext: true
right:
value:
simple: "true"
ignorecase: true
continueonerrortype: ""
view: |-
{
"position": {
"x": 230,
"y": 3930
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"77":
id: "77"
taskid: 524c269a-19b9-4d71-876f-6ffa632a3801
type: title
task:
id: 524c269a-19b9-4d71-876f-6ffa632a3801
version: -1
name: Complete
type: title
iscommand: false
brand: ""
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 680,
"y": 4170
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
view: |-
{
"linkLabelsPosition": {},
Expand Down Expand Up @@ -1854,5 +1925,11 @@ inputs:
description: If "true", HA topology will be reverted to the original active and
passive devices after upgrade.
playbookInputQuery: null
- key: autoclose_incident
value:
simple: "true"
required: false
description: Controls whether or not to autoclose the incident
playbookInputQuery: null
outputs: []
sourceplaybookid: PAN-OS Network Operations - Device Upgrade