Add 2 EBGP neighbors with template (#41853)

<!--- Your description here -->

+label: docsite_pr
This commit is contained in:
permitanyany 2018-06-22 15:48:00 -04:00 committed by Alicia Cozine
parent 11dbed1350
commit 7135c1302a

View file

@ -97,6 +97,15 @@ EXAMPLES = '''
- add bgp neighbor swp52 interface remote-as external - add bgp neighbor swp52 interface remote-as external
commit: true 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 - name: Check BGP Status
nclu: nclu:
commands: commands: