Fix Wireless repeater issue.

This commit is contained in:
Tim Young 2018-04-09 15:46:09 +03:00
parent 3847a90f70
commit e239a1873d
1 changed files with 9 additions and 8 deletions

View File

@ -449,13 +449,13 @@ namespace EduNetworkBuilder
newNic = new NetworkCard(Individual);
//if (myType == NetworkComponentType.wap && newNic.GetNicType == NicType.eth)
//{
// //This happened once upon a time. Waps did not have management interfaces.
// //Make a management interface for the wap and move the IP from the eth to that.
// //Then, change the nic to a port instead of an eth.
// NetworkCard tNic = new NetworkCard(newNic);
// tNic.ChangeType(NicType.management_interface);
// NICs.Add(tNic);
// newNic.ChangeType(NicType.port);
// //This happened once upon a time. Waps did not have management interfaces.
// //Make a management interface for the wap and move the IP from the eth to that.
// //Then, change the nic to a port instead of an eth.
// NetworkCard tNic = new NetworkCard(newNic);
// tNic.ChangeType(NicType.management_interface);
// NICs.Add(tNic);
// newNic.ChangeType(NicType.port);
//}
NICs.Add(newNic);
break;
@ -1887,7 +1887,8 @@ namespace EduNetworkBuilder
{
NicType NT = nic.GetNicType;
//bridges and waps are basically switches
if ((myType == NetworkComponentType.wap || myType == NetworkComponentType.wbridge) && NT != NicType.management_interface)
if ((myType == NetworkComponentType.wap || myType == NetworkComponentType.wbridge
|| myType == NetworkComponentType.wrepeater) && NT != NicType.management_interface)
NT = NicType.port;
switch(NT)
{