nic->mtu = LIBXL_DEVICE_NIC_MTU_DEFAULT;
}
- rc = libxl__xs_read_checked(gc, XBT_NULL,
- GCSPRINTF("%s/vlan", libxl_path),
- (const char **)(&nic->vlan));
- if (rc) goto out;
-
rc = libxl__xs_read_checked(gc, XBT_NULL,
GCSPRINTF("%s/mac", libxl_path), &tmp);
if (rc) goto out;
GCSPRINTF("%s/script", libxl_path),
(const char **)(&nic->script));
if (rc) goto out;
+ rc = libxl__xs_read_checked(NOGC, XBT_NULL,
+ GCSPRINTF("%s/vlan", libxl_path),
+ (const char **)(&nic->vlan));
+ if (rc) goto out;
rc = libxl__xs_read_checked(NOGC, XBT_NULL,
GCSPRINTF("%s/forwarddev", libxl_path),
(const char **)(&nic->coloft_forwarddev));