Commit 0d70b240 authored by Leigh B. Stoller's avatar Leigh B. Stoller

When fixing a virtnode to a specific pnode, do not

overwrite the type with the type of the target pnode.
Leave it alone.
parent 88836c0c
# -*- tcl -*-
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2008 University of Utah and the Flux Group.
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -443,6 +443,7 @@ Node instproc set_fixed {pnode} {
$self instvar topo
$self instvar fixed
$self instvar issubnode
$self instvar isvirt
if { [Node info instances $pnode] != {} } {
# $pnode is an object instance of class Node
......@@ -456,7 +457,7 @@ Node instproc set_fixed {pnode} {
}
set fixed $pnode
if {[info exists physnodes($pnode)]} {
if {$isvirt == 0 && [info exists physnodes($pnode)]} {
set type $physnodes($pnode)
if {$topo != ""} {
......
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