Skip to content

Update cEOS configuration to use next-hop-self#18659

Merged
wangxin merged 1 commit intosonic-net:masterfrom
AKosturArista:master-arista-ceos-next-hop-self
Jun 1, 2025
Merged

Update cEOS configuration to use next-hop-self#18659
wangxin merged 1 commit intosonic-net:masterfrom
AKosturArista:master-arista-ceos-next-hop-self

Conversation

@AKosturArista
Copy link
Contributor

Description of PR

Summary: Force the cEOS instances to use their own IP for next-hop
Fixes #18658

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

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

Documentation

Just a bugfix.

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
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

{% for remote_ip in remote_ips %}
neighbor {{ remote_ip }} remote-as {{ asn }}
neighbor {{ remote_ip }} description {{ asn }}
neighbor {{ remote_ip }} next-hop-self
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this configuration safe for older cEOS containers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. This configuration has been accepted in EOS in versions older than what's available to download. In those older versions, that configuration is basically explicitly stating to use the default behaviour.

@wangxin wangxin merged commit ccccbe8 into sonic-net:master Jun 1, 2025
20 checks passed
bachalla pushed a commit to bachalla/sonic-mgmt that referenced this pull request Jun 2, 2025
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
@r12f
Copy link
Collaborator

r12f commented Jun 11, 2025

hi @AKosturArista , do you mind to help manual pick this change to 202412?

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 19, 2025
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
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202505: #19086

mssonicbld pushed a commit that referenced this pull request Jun 19, 2025
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
@r12f
Copy link
Collaborator

r12f commented Jun 28, 2025

hi @AKosturArista , do you mind to help manual pick this change to 202412?

@AKosturArista
Copy link
Contributor Author

Is this Azure/sonic-mgmt.msft#432 sufficient?

matthew-soulsby pushed a commit to matthew-soulsby/sonic-mgmt that referenced this pull request Jul 1, 2025
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
matthew-soulsby pushed a commit to matthew-soulsby/sonic-mgmt that referenced this pull request Jul 1, 2025
…et#18659) (sonic-net#465)

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
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Aug 2, 2025
The upgraded cEOS instance also changes from single-agent to multi-agent
mode. This includes a behaviour change around the next-hop-self feature.

This is a port of the corresponding patch from PR sonic-net#18659 from the main
sonic-mgmt repo.
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
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

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
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

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
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

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
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
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
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

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment