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;
|
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>();
|
List<string> tList = new List<string>();
|
||||||
NetworkDevice ND;
|
NetworkDevice ND;
|
||||||
@ -1547,6 +1547,7 @@ namespace EduNetworkBuilder
|
|||||||
ND = (NetworkDevice)NC;
|
ND = (NetworkDevice)NC;
|
||||||
if (!EvenNonNetworked && (ND.GetNetType() == NetworkComponentType.microwave || ND.GetNetType() == NetworkComponentType.fluorescent))
|
if (!EvenNonNetworked && (ND.GetNetType() == NetworkComponentType.microwave || ND.GetNetType() == NetworkComponentType.fluorescent))
|
||||||
continue;
|
continue;
|
||||||
|
if (ND.GetNetType() == NetworkComponentType.tree && !includeTrees) continue;
|
||||||
tList.Add(ND.hostname);
|
tList.Add(ND.hostname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user