From 7135c1302af4066c0ece11658eb8c91258ef5449 Mon Sep 17 00:00:00 2001 From: permitanyany Date: Fri, 22 Jun 2018 15:48:00 -0400 Subject: [PATCH] Add 2 EBGP neighbors with template (#41853) +label: docsite_pr --- lib/ansible/modules/network/cumulus/nclu.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ansible/modules/network/cumulus/nclu.py b/lib/ansible/modules/network/cumulus/nclu.py index b8ffd64b47..14ea7eaf95 100644 --- a/lib/ansible/modules/network/cumulus/nclu.py +++ b/lib/ansible/modules/network/cumulus/nclu.py @@ -97,6 +97,15 @@ EXAMPLES = ''' - add bgp neighbor swp52 interface remote-as external commit: true +- name: Configure BGP AS and Add 2 EBGP neighbors Using BGP Unnumbered via Template + nclu: + template: | + {% for neighbor in range(51,53) %} + add bgp neighbor swp{{neighbor}} interface remote-as external + add bgp autonomous-system 65000 + {% endfor %} + atomic: true + - name: Check BGP Status nclu: commands: