Make the getbandwidth() function aware of node types - it takes as a
parameter the virtual node it is being called for, and considers only bandwidths that can be supported by physical nodes that virtual node can be mapped to. This fixes some cases where we were mistakenly setting interfaces on slow links to 10Mbps, which does not work reliably. Not surpisingly, tracking down problems with vtypes was half the trouble with making this change.
Showing with 33 additions and 15 deletions