Skip to content

Commit

Permalink
update asa_config with bgp doc example
Browse files Browse the repository at this point in the history
+label: docsite_pr
Issue ansible/community#311
  • Loading branch information
hemskgren authored and acozine committed Sep 18, 2018
1 parent 4e532e0 commit 4e6fa58
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/ansible/modules/network/asa/asa_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,30 @@
- access-group cloud-acl_access_in in interface cloud13
provider: "{{ cli }}"
- name: configure ASA (9.2>) defult BGP
asa_config:
lines:
- bgp log-neighbor-changes
- bgp bestpath compare-routerid
provider: "{{ cli }}"
parents:
- router bgp 65002
register: bgp
when: bgp_defult_config is defined
- name: configure ASA (9.2>) BGP neighbor in defult/singel context mode
asa_config:
lines:
- "bgp router-id {{ bgp_router_id }}"
- "neighbor {{ bgp_neighbor_ip }} remote-as {{ bgp_neighbor_as }}"
- "neighbor {{ bgp_neighbor_ip }} description {{ bgp_neighbor_name }}"
provider: "{{ cli }}"
parents:
- router bgp 65002
- address-family ipv4 unicast
register: bgp
when: bgp_neighbor_as is defined
"""

RETURN = """
Expand Down

0 comments on commit 4e6fa58

Please sign in to comment.