diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-12-23 18:30:05 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2014-12-23 18:30:05 +0000 |
commit | 266efa8392a27f8ecd397539e835195b7271b106 (patch) | |
tree | 7d372fe054a27f42285eec082c92b28ed873b555 | |
parent | 7559f59bb4c3691722b46b2a0e0ede29e8f4a777 (diff) | |
download | illumos-joyent-266efa8392a27f8ecd397539e835195b7271b106.tar.gz |
OS-3663 lxbrand shared IP stack not supported
-rw-r--r-- | usr/src/lib/brand/lx/lx_support/lx_support.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/lib/brand/lx/lx_support/lx_support.c b/usr/src/lib/brand/lx/lx_support/lx_support.c index 206fa2a9e9..8225cb075a 100644 --- a/usr/src/lib/brand/lx/lx_support/lx_support.c +++ b/usr/src/lib/brand/lx/lx_support/lx_support.c @@ -446,6 +446,7 @@ lxs_verify(char *xmlfile) boolean_t audio, restart; char *idev, *odev, *kvers; char hostidp[HW_HOSTID_LEN]; + zone_iptype_t iptype; if ((handle = zonecfg_init_handle()) == NULL) lxs_err(gettext("internal libzonecfg.so.1 error"), 0); @@ -463,6 +464,15 @@ lxs_verify(char *xmlfile) lxs_err(gettext("lx zones do not support hostid emulation")); } + /* + * Only exclusive stack is supported. + */ + if (zonecfg_get_iptype(handle, &iptype) != Z_OK || + iptype != ZS_EXCLUSIVE) { + zonecfg_fini_handle(handle); + lxs_err(gettext("lx zones do not support shared IP stacks")); + } + /* Extract any relevant attributes from the config file. */ lxs_getattrs(handle, &restart, &audio, &idev, &odev, &kvers); zonecfg_fini_handle(handle); |