Message ID | 20240503144124.12931-3-leigh@solinno.co.uk (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Add bridge VLAN support | expand |
diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c index ed983200c3..5d5dd4ec04 100644 --- a/tools/xl/xl_parse.c +++ b/tools/xl/xl_parse.c @@ -565,6 +565,8 @@ int parse_nic_config(libxl_device_nic *nic, XLU_Config **config, char *token) nic->devid = parse_ulong(oparg); } else if (MATCH_OPTION("mtu", token, oparg)) { nic->mtu = parse_ulong(oparg); + } else if (MATCH_OPTION("vid", token, oparg)) { + nic->vid = parse_ulong(oparg); } else if (!strcmp("trusted", token)) { libxl_defbool_set(&nic->trusted, true); } else if (!strcmp("untrusted", token)) {
Update parse_nic_config() to support a new `vid' keyword. This keyword specifies the numeric VLAN ID to assign to the VIF when attaching it to the bridge port, on operating systems that support the capability (e.g. Linux). Signed-off-by: Leigh Brown <leigh@solinno.co.uk> --- tools/xl/xl_parse.c | 2 ++ 1 file changed, 2 insertions(+)