diff options
author | jv227347 <Jordan.Vaughan@Sun.com> | 2008-12-24 11:45:18 -0800 |
---|---|---|
committer | jv227347 <Jordan.Vaughan@Sun.com> | 2008-12-24 11:45:18 -0800 |
commit | 01b4bc23f86776ba5362351a4ce0e14edecbd365 (patch) | |
tree | e175614a475f381118e651b447bd4ac528dc3bd0 /usr/src | |
parent | 11ebc2d06b61e58acd4133a11514c86b48c923c5 (diff) | |
download | illumos-gate-01b4bc23f86776ba5362351a4ce0e14edecbd365.tar.gz |
6770468 can make exclusive-stack zones with invalid physical nwif names after putback of CR 5073914
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/zonecfg/zonecfg.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/src/cmd/zonecfg/zonecfg.c b/usr/src/cmd/zonecfg/zonecfg.c index 14cccc5b1a..eb572db380 100644 --- a/usr/src/cmd/zonecfg/zonecfg.c +++ b/usr/src/cmd/zonecfg/zonecfg.c @@ -5532,9 +5532,16 @@ verify_func(cmd_t *cmd) * and may include a default router, while * an exclusive IP must have neither an address * nor a default router. + * The physical interface name must be valid in all cases. */ check_reqd_prop(nwiftab.zone_nwif_physical, RT_NET, PT_PHYSICAL, &ret_val); + if (validate_net_physical_syntax(nwiftab.zone_nwif_physical) != + Z_OK) { + saw_error = B_TRUE; + if (ret_val == Z_OK) + ret_val = Z_INVAL; + } switch (iptype) { case ZS_SHARED: |