-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpalo-bgp-damp-profile.yaml
57 lines (50 loc) · 1.36 KB
/
palo-bgp-damp-profile.yaml
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
## PLAYBOOK
# Playbook to configure BGP dampening profile
## DESCRIPTION
# Example playbook that will connect to the firewall using credentials provided saved in host var file
# add vr_name in host var file or group_vars file
## REQUIREMENTS
# pip install ansible
# ansible-galaxy install PaloAltoNetworks.paloaltonetworks
## EXECUTE
# ansible-playbook palo-bgp-damp-profile.yaml
---
- name: Configure BGP Dampening Profile
hosts: PA-VM-02
connection: local
gather_facts: False
collections:
- paloaltonetworks.panos
tasks:
- name: Create BGP Dampening Profile
panos_bgp_dampening:
provider: '{{ provider }}'
vr_name: '{{ vr_name }}'
name: damp-profile-01
enable: true
reuse: 1.0
max_hold_time: 60
- name: Update BGP Dampening Profile
panos_bgp_dampening:
provider: '{{ provider }}'
vr_name: '{{ vr_name }}'
name: damp-profile-01
enable: true
reuse: 0.5
max_hold_time: 90
- name: Disable BGP Dampening Profile
panos_bgp_dampening:
provider: '{{ provider }}'
vr_name: '{{ vr_name }}'
name: damp-profile-01
enable: false
reuse: 0.5
max_hold_time: 90
- name: Remove BGP Dampening Profile
panos_bgp_dampening:
provider: '{{ provider }}'
vr_name: '{{ vr_name }}'
state: absent
name: damp-profile-01
commit: true
...