Skip to content
  • Dimitris Aragiorgis's avatar
    Fix LUNetworkConnect wrt vlan · 148c7ee0
    Dimitris Aragiorgis authored
    
    
    A network is currently connected to a nodegroup with a mode and a
    link. Those netparams are inherited as nicparams when a NIC is
    attached to a network and filled with the cluster wide defaults.
    
    Since vlan was added to NIC parameters, netparams should be updated
    to include it too otherwise NICs attached to a network can be found
    with mode=bridged, link=some bridge and the cluster wide vlan.
    
    This patch fixes LUNetworkConnect to add an empty string vlan to
    netparams along with the user provided mode and link. Additionally
    it adds an empty vlan to existing netparams via
    objects.NodeGroup.UpgradeConfig().
    
    Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
    Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
    Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
    148c7ee0