Skip to content

[Nokia][device-data] Modify the Nokia-7250IXRE platform specific reboot script#14568

Merged
lguohan merged 2 commits intosonic-net:masterfrom
mlok-nokia:nokia-device-data
Apr 27, 2023
Merged

[Nokia][device-data] Modify the Nokia-7250IXRE platform specific reboot script#14568
lguohan merged 2 commits intosonic-net:masterfrom
mlok-nokia:nokia-device-data

Conversation

@mlok-nokia
Copy link
Copy Markdown
Contributor

@mlok-nokia mlok-nokia commented Apr 7, 2023

Why I did it

  1. When reboot the chassis by issuing "sudo reboot" on Supervisor card. The internal midplane communication xe0 should be shutdown to avoid double reboot on the linecard.
  2. Added a udev link rule to disable the autoneg on AMD xgbe port Xe0 and Xe1 and make the setting in sync with the peer Broadcom greyhound ports.

How I did it

Modify the Nokia-7250IXRE specific reboot script on the Supervisor card to shutdown the internal interface xe0. Also move reboot linecard code to the top of the script to make sure the notification has been send to Linecard before shutdown the xe0 interface.
Introduced a new rule 80-net-by-driver.link to disable the autoneg on the AMD size. This change requires the latest NDK which contains the change to set the autoneg on the xe0 and xe1 port on the Greyhound.

How to verify it

  1. Issue sudo reboot command on the Supervisor card. the "showdown midplane" message will be shown on the console.
admin@ixre-cpm-chassis15:~$ sudo reboot
requested COLD shutdown
requested COLD shutdown
...
...
Sun 23 Apr 2023 10:56:36 PM UTC Rebooting with platform x86_64-nokia_ixr7250e_sup-r0 specific tool ...
Rebooting all Linecards
Rebooting - IMM 1 - slot reboot requested via midplane
Rebooting - IMM 4 - slot reboot requested via midplane
Shutdown midplane
  1. Boot up the system with the new image, using the following commands to verify the midplane xe0 and xe1 setting and connection.
admin@ixre-cpm-chassis15:~$ sudo ethtool xe0
Settings for xe0:
	Supported ports: [ Backplane ]
	Supported link modes:   1000baseKX/Full
	                        10000baseKR/Full
	                        10000baseR_FEC
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  1000baseKX/Full
	                        10000baseKR/Full
	                        10000baseR_FEC
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: 10000Mb/s
	Duplex: Full
	Auto-negotiation: off
	Port: None
	PHYAD: 0
	Transceiver: internal
        Current message level: 0x00000034 (52)
                               link ifdown ifup
	Link detected: yes
admin@ixre-cpm-chassis15:~$ sudo ethtool mgmt1
Settings for mgmt1:
	Supported ports: [ Backplane ]
	Supported link modes:   1000baseKX/Full
	                        10000baseKR/Full
	                        10000baseR_FEC
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  1000baseKX/Full
	                        10000baseKR/Full
	                        10000baseR_FEC
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: 10000Mb/s
	Duplex: Full
	Auto-negotiation: off
	Port: None
	PHYAD: 0
	Transceiver: internal
        Current message level: 0x00000034 (52)
                               link ifdown ifup
	Link detected: yes

admin@ixre-cpm-chassis15:~$ nokia_cmd show midplane port-status
   PORT STATUS
-------------------------------------------------------------------------------------------------------------------
| Slot/Port   | Admin Status| Oper Status| Speed | Duplex     | Linkscan  | AutoNeg  | STP state| Intf mode| MTU  | 
-------------------------------------------------------------------------------------------------------------------
| cpm-xe0     | enabled     | up         | 10000 | full duplex| software  | disabled | Forward  | KR       | 16356 |
| cpm-xe1     | enabled     | up         | 10000 | full duplex| software  | disabled | Forward  | KR       | 16356 |
| lc1         | enabled     | up         | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
| lc2         | enabled     | down       | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
| lc3         | enabled     | down       | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
| lc4         | enabled     | up         | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
| lc5         | enabled     | down       | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
| lc6         | enabled     | down       | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
| lc7         | enabled     | down       | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
| lc8         | enabled     | down       | 2500  | full duplex| software  | disabled | Forward  | GMII     | 16356 |
-------------------------------------------------------------------------------------------------------------------

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@mlok-nokia
Copy link
Copy Markdown
Contributor Author

@judyjoseph @sanmalho-git This PR is to shutdown the internal Midplane interface on the supervisor card when issue a sudo reboot. Please review it. Thanks

…oot script

Signed-off-by: mlok <marty.lok@nokia.com>
@lguohan lguohan merged commit a9cc1fb into sonic-net:master Apr 27, 2023
@mlok-nokia
Copy link
Copy Markdown
Contributor Author

@yxieca HI Ying, Could you please help to merge this PR to 202205 branch? Thanks.

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 17, 2023
…ot script (sonic-net#14568)

Why I did it

When reboot the chassis by issuing "sudo reboot" on Supervisor card. The internal midplane communication xe0 should be shutdown to avoid double reboot on the linecard.
Added a udev link rule to disable the autoneg on AMD xgbe port Xe0 and Xe1 and make the setting in sync with the peer Broadcom greyhound ports.

How I did it

Modify the Nokia-7250IXRE specific reboot script on the Supervisor card to shutdown the internal interface xe0. Also move reboot linecard code to the top of the script to make sure the notification has been send to Linecard before shutdown the xe0 interface.
Introduced a new rule 80-net-by-driver.link to disable the autoneg on the AMD size. This change requires the latest NDK which contains the change to set the autoneg on the xe0 and xe1 port on the Greyhound.

Signed-off-by: mlok <marty.lok@nokia.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202211: #15099

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request May 17, 2023
…ot script (sonic-net#14568)

Why I did it

When reboot the chassis by issuing "sudo reboot" on Supervisor card. The internal midplane communication xe0 should be shutdown to avoid double reboot on the linecard.
Added a udev link rule to disable the autoneg on AMD xgbe port Xe0 and Xe1 and make the setting in sync with the peer Broadcom greyhound ports.

How I did it

Modify the Nokia-7250IXRE specific reboot script on the Supervisor card to shutdown the internal interface xe0. Also move reboot linecard code to the top of the script to make sure the notification has been send to Linecard before shutdown the xe0 interface.
Introduced a new rule 80-net-by-driver.link to disable the autoneg on the AMD size. This change requires the latest NDK which contains the change to set the autoneg on the xe0 and xe1 port on the Greyhound.

Signed-off-by: mlok <marty.lok@nokia.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202205: #15100

mssonicbld pushed a commit that referenced this pull request May 17, 2023
…ot script (#14568)

Why I did it

When reboot the chassis by issuing "sudo reboot" on Supervisor card. The internal midplane communication xe0 should be shutdown to avoid double reboot on the linecard.
Added a udev link rule to disable the autoneg on AMD xgbe port Xe0 and Xe1 and make the setting in sync with the peer Broadcom greyhound ports.

How I did it

Modify the Nokia-7250IXRE specific reboot script on the Supervisor card to shutdown the internal interface xe0. Also move reboot linecard code to the top of the script to make sure the notification has been send to Linecard before shutdown the xe0 interface.
Introduced a new rule 80-net-by-driver.link to disable the autoneg on the AMD size. This change requires the latest NDK which contains the change to set the autoneg on the xe0 and xe1 port on the Greyhound.

Signed-off-by: mlok <marty.lok@nokia.com>
mssonicbld pushed a commit that referenced this pull request May 17, 2023
…ot script (#14568)

Why I did it

When reboot the chassis by issuing "sudo reboot" on Supervisor card. The internal midplane communication xe0 should be shutdown to avoid double reboot on the linecard.
Added a udev link rule to disable the autoneg on AMD xgbe port Xe0 and Xe1 and make the setting in sync with the peer Broadcom greyhound ports.

How I did it

Modify the Nokia-7250IXRE specific reboot script on the Supervisor card to shutdown the internal interface xe0. Also move reboot linecard code to the top of the script to make sure the notification has been send to Linecard before shutdown the xe0 interface.
Introduced a new rule 80-net-by-driver.link to disable the autoneg on the AMD size. This change requires the latest NDK which contains the change to set the autoneg on the xe0 and xe1 port on the Greyhound.

Signed-off-by: mlok <marty.lok@nokia.com>
@mlok-nokia mlok-nokia deleted the nokia-device-data branch September 27, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants