diff options
| author | Allen.Wang <Allen_Wang@quantatw.com> | 2024-05-10 09:17:28 +0300 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2024-05-30 00:24:11 +0300 |
| commit | c678673d13a9d979b6fec1f733501ae017b0013e (patch) | |
| tree | ec3742a976bc9d3d2ce3baa4f76d23f0c61839c7 /meta-openembedded/meta-python/recipes-devtools/python/python3-sqlparse | |
| parent | 4b5e3508792bb52884bed93b4d8730d6b956a5c2 (diff) | |
| download | openbmc-c678673d13a9d979b6fec1f733501ae017b0013e.tar.xz | |
meta-facebook: yosemite4:Reconfig network interface for NIC hot service
While NIC hot remove/plug or replace another NIC,
it must down/up to NCSI re-initialization
and reconfigure net interface to recovery network link.
Tested:
build and test on yosemite4 system
NIC1 (eth0) connected CX7 NIC
root@bmc:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr E8:EB:D3:46:D8:71
inet addr:10.10.14.236 Bcast:10.10.255.255 Mask:255.255.0.0
inet6 addr: 2018:5::4ca9/128 Scope:Global
inet6 addr: fe80::eaeb:d3ff:fe46:d871/64 Scope:Link
inet6 addr: 2019:7::eaeb:d3ff:fe46:d871/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:23692 errors:0 dropped:11 overruns:0 frame:0
TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2510627 (2.3 MiB) TX bytes:21546 (21.0 KiB)
Interrupt:42
Test 1: remove and plug same NIC
bmc still pingable
ping 10.10.14.236
Pinging 10.10.14.236 with 32 bytes of data:
Reply from 10.10.14.236: bytes=32 time=1ms TTL=64
Reply from 10.10.14.236: bytes=32 time=1ms TTL=64
Reply from 10.10.14.236: bytes=32 time=1ms TTL=64
Reply from 10.10.14.236: bytes=32 time<1ms TTL=64
Test2: Remove CX7 NIC and plug another BRCM NIC
eth0 will reconfigured by correct MAC address and its pingable
ifconfig eth0
eth0 Link encap:Ethernet HWaddr D4:04:E6:36:58:19
inet addr:10.10.12.226 Bcast:10.10.255.255 Mask:255.255.0.0
inet6 addr: fe80::d604:e6ff:fe36:5819/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25736 errors:0 dropped:12 overruns:0 frame:0
TX packets:404 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2749245 (2.6 MiB) TX bytes:32907 (32.1 KiB)
Interrupt:42
ping 10.10.12.226
Pinging 10.10.12.226 with 32 bytes of data:
Reply from 10.10.12.226: bytes=32 time=1ms TTL=64
Reply from 10.10.12.226: bytes=32 time=1ms TTL=64
Reply from 10.10.12.226: bytes=32 time=7ms TTL=64
Reply from 10.10.12.226: bytes=32 time=1ms TTL=64
Change-Id: I8130eb4ba317ebd66378d646ca95e03dd7481fd7
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-sqlparse')
0 files changed, 0 insertions, 0 deletions
