Commit 6635b5ef authored by wangyongshou's avatar wangyongshou

add ladn inter route

parent f2c20973
...@@ -398,8 +398,13 @@ startup_config_process (vlib_main_t * vm, ...@@ -398,8 +398,13 @@ startup_config_process (vlib_main_t * vm,
{ {
for(int i = 0; i< if_info->ulcl_num; i++) for(int i = 0; i< if_info->ulcl_num; i++)
{ {
len += snprintf(if_ulcl + len , BUF_LEN, IF_UP_IPADDR, char tmp[BUF_LEN] = {0};
if_info->if_ulcl[i].name, if_info->if_ulcl[i].name,if_info->if_ulcl[i].ipaddr, if_info->if_ulcl[i].netmask); strcat(tmp, IF_UP_IPADDR);
strcat(tmp, IP_ROUTE_DEFAULT);
len += snprintf(if_ulcl + len , BUF_LEN, tmp,
if_info->if_ulcl[i].name, if_info->if_ulcl[i].name,if_info->if_ulcl[i].ipaddr, if_info->if_ulcl[i].netmask,
if_info->if_ulcl[i].gateway, 32, if_info->if_ulcl[i].name);
} }
strcat(if_cmd,if_ulcl); strcat(if_cmd,if_ulcl);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment