Skip to content

[minigraph]: Generate servers for dualtor minigraphs#2792

Merged
theasianpianist merged 2 commits intosonic-net:masterfrom
theasianpianist:mg-server-ip-gen
Jan 14, 2021
Merged

[minigraph]: Generate servers for dualtor minigraphs#2792
theasianpianist merged 2 commits intosonic-net:masterfrom
theasianpianist:mg-server-ip-gen

Conversation

@theasianpianist
Copy link
Contributor

@theasianpianist theasianpianist commented Jan 12, 2021

Signed-off-by: Lawrence Lee lawlee@microsoft.com

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

What is the motivation for this PR?

Current minigraph generation does not include servers in the PNG section, which is needed for dual ToR operation.

How did you do it?

For each smart cable generated, also generate one server with a loopback in the same subnet as the DUT VLAN.

Example:

<Device i:type="Server">
  <ElementType>Server</ElementType>
  <Address xmlns:d5p1="Microsoft.Search.Autopilot.NetMux">
    <d5p1:IPPrefix>192.168.0.2/26</d5p1:IPPrefix>
  </Address>
  <AddressV6 xmlns:d5p1="Microsoft.Search.Autopilot.NetMux">
    <d5p1:IPPrefix>fc02:1000::2/96</d5p1:IPPrefix>
  </AddressV6> 
  <ManagementAddress xmlns:d5p1="Microsoft.Search.Autopilot.NetMux">
    <d5p1:IPPrefix>0.0.0.0/0</d5p1:IPPrefix>
  </ManagementAddress>
  <Hostname>Server1</Hostname>
</Device>

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@theasianpianist theasianpianist merged commit 3c9d9b8 into sonic-net:master Jan 14, 2021
@theasianpianist theasianpianist deleted the mg-server-ip-gen branch January 14, 2021 18:57
yxieca pushed a commit that referenced this pull request Jan 19, 2021
Approach
What is the motivation for this PR?
PR #2792 introduced neighbor with type 'Server' into 'DEVICE_NEIGHBOR_METADATA' of config DB.
The 'Server' neighbors should be skipped in neighbor health check.

How did you do it?
Skip checking neighbor with type 'Server'.

How did you verify/test it?
Test run the test_nbr_health.py script on dualtor. Test passed.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…atically (sonic-net#14752)

src/sonic-utilities

* ece22b7d - (HEAD -> 202205, origin/202205) Revert "[GCU] Add PFC_WD RDMA validator  (sonic-net#2781)" (4 minutes ago) [Ying Xie]
* 7d16b184 - Remove the no use new line in show version (sonic-net#2792) (21 hours ago) [xumia]
* 3a880a2b - Support to display the SONiC OS Version in the command show version (sonic-net#2787) (21 hours ago) [xumia]
* a5199f75 - [voq][chassis][generate_dump] [BCM] Dump only the relevant BCM commands for fabric cards (sonic-net#2606) (21 hours ago) [saksarav-nokia]
* 2410d364 - Fixed a bug in "show vnet routes all" causing screen overrun. (sonic-net#2644) (sonic-net#2801) (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants