trees are not part of the network tests and other such things.
This commit is contained in:
parent
a41aee0dc4
commit
68d83fa07d
@ -1536,7 +1536,7 @@ namespace EduNetworkBuilder
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<string> GetHostnames(bool EvenNonNetworked = false)
|
||||
public List<string> GetHostnames(bool EvenNonNetworked = false, bool includeTrees = false)
|
||||
{
|
||||
List<string> tList = new List<string>();
|
||||
NetworkDevice ND;
|
||||
@ -1547,6 +1547,7 @@ namespace EduNetworkBuilder
|
||||
ND = (NetworkDevice)NC;
|
||||
if (!EvenNonNetworked && (ND.GetNetType() == NetworkComponentType.microwave || ND.GetNetType() == NetworkComponentType.fluorescent))
|
||||
continue;
|
||||
if (ND.GetNetType() == NetworkComponentType.tree && !includeTrees) continue;
|
||||
tList.Add(ND.hostname);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user