From 7b1c61000ed03d5750816d2c9e2d5e931dfa969a Mon Sep 17 00:00:00 2001 From: Christer Hemgren Date: Tue, 18 Sep 2018 17:53:32 +0200 Subject: [PATCH] update asa_config with bgp doc example (#41376) * update asa_config with bgp doc example +label: docsite_pr Issue ansible/community#311 * fix spelling --- lib/ansible/modules/network/asa/asa_config.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/ansible/modules/network/asa/asa_config.py b/lib/ansible/modules/network/asa/asa_config.py index 96991711f85..442b746bfa1 100644 --- a/lib/ansible/modules/network/asa/asa_config.py +++ b/lib/ansible/modules/network/asa/asa_config.py @@ -168,6 +168,30 @@ vars: - access-group cloud-acl_access_in in interface cloud13 provider: "{{ cli }}" +- name: configure ASA (>=9.2) default BGP + asa_config: + lines: + - bgp log-neighbor-changes + - bgp bestpath compare-routerid + provider: "{{ cli }}" + parents: + - router bgp 65002 + register: bgp + when: bgp_default_config is defined + +- name: configure ASA (>=9.2) BGP neighbor in default/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 = """