Whamcloud - gitweb
LU-14971 test: align mirror_io resync implementation
[fs/lustre-release.git] / lustre / tests / sanity-lnet.sh
index 03e4a30..f64fcec 100755 (executable)
@@ -2088,6 +2088,7 @@ test_230() {
                lnid="$(lctl list_nids | head -n 1)"
                do_lnetctl ping "$lnid" ||
                        error "failed to ping myself"
+
                # "lctl --net tcp conn_list" prints the list of active
                # connections. Since we're pinging ourselves, there should be
                # 2 Control connections plus 2*conns_per_peer connections
@@ -2121,6 +2122,15 @@ test_230() {
 }
 run_test 230 "Test setting conns-per-peer"
 
+### Test that linux route is added for each ni
+test_250() {
+       have_interface "eth0" || skip "Need eth0 interface with ipv4 configured"
+       reinit_dlc || return $?
+       add_net "tcp" "eth0" || return $?
+       ip route show table eth0 | grep -q "eth0"
+}
+run_test 250 "test that linux routes are added"
+
 test_300() {
        # LU-13274
        local header