Skip to content

Commit 947c8dc

Browse files
AKosturAristabachalla
authored andcommitted
Update cEOS configuration to use next-hop-self (sonic-net#18659)
The upgraded cEOS instance also changes from single-agent to multi-agent mode. This includes a behaviour change around the next-hop-self feature. Fixes: BUG872880 What is the motivation for this PR? Fixing a bug introduced by using a newer version of cEOS for testing. While the current documentation doesn't specify a newer version of cEOS, it would be good to have this fix in place before people start using a newer version of cEOS. How did you do it? Adjust the cEOS configuration templates to force cEOS to rewrite the next-hop as itself How did you verify/test it? Normal sonic-mgmt test run Any platform specific information? Not platform-dependent. Supported testbed topology if it's a new test case? All
1 parent 0513d18 commit 947c8dc

24 files changed

+24
-1
lines changed

ansible/roles/eos/tasks/ceos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
set_fact: force_restart=no
2121
when: snmp_data.ansible_facts.ansible_sysname is defined
2222

23-
- include_tasks: ceos_config.yml
2423
- include_vars: group_vars/vm_host/ceos.yml
24+
- include_tasks: ceos_config.yml
2525

2626
- name: Create cEOS container
2727
become: yes

ansible/roles/eos/templates/dpu-tor.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router bgp {{ host['bgp']['asn'] }}
106106
{% for remote_ip in remote_ips %}
107107
neighbor {{ remote_ip }} remote-as {{ asn }}
108108
neighbor {{ remote_ip }} description {{ asn }}
109+
neighbor {{ remote_ip }} next-hop-self
109110
{% if remote_ip | ipv6 %}
110111
address-family ipv6
111112
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/m0-mx.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ router bgp {{ host['bgp']['asn'] }}
102102
{% for remote_ip in remote_ips %}
103103
neighbor {{ remote_ip }} remote-as {{ asn }}
104104
neighbor {{ remote_ip }} description {{ asn }}
105+
neighbor {{ remote_ip }} next-hop-self
105106
{% if remote_ip | ipv6 %}
106107
address-family ipv6
107108
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/t0-8-lag-leaf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router bgp {{ host['bgp']['asn'] }}
106106
{% for remote_ip in remote_ips %}
107107
neighbor {{ remote_ip }} remote-as {{ asn }}
108108
neighbor {{ remote_ip }} description {{ asn }}
109+
neighbor {{ remote_ip }} next-hop-self
109110
{% if remote_ip | ipv6 %}
110111
address-family ipv6
111112
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/t0-backend-leaf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ router bgp {{ host['bgp']['asn'] }}
136136
{% for remote_ip in remote_ips %}
137137
neighbor {{ remote_ip }} remote-as {{ asn }}
138138
neighbor {{ remote_ip }} description {{ asn }}
139+
neighbor {{ remote_ip }} next-hop-self
139140
{% if remote_ip | ipv6 %}
140141
address-family ipv6
141142
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/t0-leaf-lag-2.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router bgp {{ host['bgp']['asn'] }}
106106
{% for remote_ip in remote_ips %}
107107
neighbor {{ remote_ip }} remote-as {{ asn }}
108108
neighbor {{ remote_ip }} description {{ asn }}
109+
neighbor {{ remote_ip }} next-hop-self
109110
{% if remote_ip | ipv6 %}
110111
address-family ipv6
111112
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/t0-leaf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router bgp {{ host['bgp']['asn'] }}
106106
{% for remote_ip in remote_ips %}
107107
neighbor {{ remote_ip }} remote-as {{ asn }}
108108
neighbor {{ remote_ip }} description {{ asn }}
109+
neighbor {{ remote_ip }} next-hop-self
109110
{% if remote_ip | ipv6 %}
110111
address-family ipv6
111112
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/t0-mclag-leaf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router bgp {{ host['bgp']['asn'] }}
106106
{% for remote_ip in remote_ips %}
107107
neighbor {{ remote_ip }} remote-as {{ asn }}
108108
neighbor {{ remote_ip }} description {{ asn }}
109+
neighbor {{ remote_ip }} next-hop-self
109110
{% if remote_ip | ipv6 %}
110111
address-family ipv6
111112
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/t0-v6-leaf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router bgp {{ host['bgp']['asn'] }}
106106
{% for remote_ip in remote_ips %}
107107
neighbor {{ remote_ip }} remote-as {{ asn }}
108108
neighbor {{ remote_ip }} description {{ asn }}
109+
neighbor {{ remote_ip }} next-hop-self
109110
{% if remote_ip | ipv6 %}
110111
address-family ipv6
111112
neighbor {{ remote_ip }} activate

ansible/roles/eos/templates/t1-28-lag-spine.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ router bgp {{ host['bgp']['asn'] }}
106106
{% for remote_ip in remote_ips %}
107107
neighbor {{ remote_ip }} remote-as {{ asn }}
108108
neighbor {{ remote_ip }} description {{ asn }}
109+
neighbor {{ remote_ip }} next-hop-self
109110
{% if remote_ip | ipv6 %}
110111
address-family ipv6
111112
neighbor {{ remote_ip }} activate

0 commit comments

Comments
 (0)