Commit 32933325 authored by Hrvoje Ribicic's avatar Hrvoje Ribicic
Browse files

Add the aggregate NIC VLAN instance field



Allow the retrieval of the VLANs of all the NICs through nic.vlans.
Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent 63f4bce5
......@@ -238,6 +238,11 @@ instanceFields =
(nicpMode . fillNicParamsFromConfig cfg . nicNicparams)
. instNics),
QffNormal)
, (FieldDefinition "nic.vlans" "NIC_VLANs" QFTOther
(nicAggDescPrefix ++ "VLAN"),
FieldConfig (\cfg -> rsNormal . map (MaybeForJSON . getNicVlan .
fillNicParamsFromConfig cfg . nicNicparams) . instNics),
QffNormal)
, (FieldDefinition "nic.bridges" "NIC_bridges" QFTOther
(nicAggDescPrefix ++ "bridge"),
FieldConfig (\cfg -> rsNormal . map (MaybeForJSON . getNicBridge .
......
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