diff options
author | Manish Rangankar <manish.rangankar@cavium.com> | 2018-06-20 16:19:24 +0530 |
---|---|---|
committer | Manish Rangankar <manish.rangankar@cavium.com> | 2018-06-29 05:40:03 -0400 |
commit | d295d0745829f9eee1f4f0e1e3328f9bb4f2dc16 (patch) | |
tree | 3cae545f87ea8ff589b62b7a10b5332df039827e | |
parent | 3151f4df2208fd5eab98b1fb9086f976f37aa44e (diff) | |
download | open-iscsi-d295d0745829f9eee1f4f0e1e3328f9bb4f2dc16.tar.gz |
iscsid: Update boot gateway information during sync_session.
During boot for SAN scenario after switch root iscsid not
passing gateway information to iscsiuio.
Signed-off-by: Manish Rangankar <manish.rangankar@cavium.com>
-rw-r--r-- | usr/iscsi_sysfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c index fdc26c7..8e89b30 100644 --- a/usr/iscsi_sysfs.c +++ b/usr/iscsi_sysfs.c @@ -706,6 +706,11 @@ static int iscsi_sysfs_read_boot(struct iface_rec *iface, char *session) log_debug(5, "could not read %s/%s/subnet", boot_root, boot_nic); + if (sysfs_get_str(boot_nic, boot_root, "gateway", + iface->gateway, NI_MAXHOST)) + log_debug(5, "could not read %s/%s/gateway", boot_root, + boot_nic); + log_debug(5, "sysfs read boot returns %s/%s/ vlan = %d subnet = %s", boot_root, boot_nic, iface->vlan_id, iface->subnet_mask); return 0; |