Cannot have both untagged and tagged on an interface

This commit is contained in:
Tim Young 2016-10-13 15:36:46 -05:00
parent a863fa3709
commit 0ea057c4ed

View File

@ -102,9 +102,14 @@ namespace EduNetworkBuilder
else else
{ {
if (Tag == VLANTagType.Untagged) if (Tag == VLANTagType.Untagged)
one.Tag = VLANTagType.Forbidden; one.Tag = VLANTagType.Forbidden; //Only one untagged port allowed at a time
if (Tag == VLANTagType.Tagged && !isPort) //Ports can have multiple tags on one interface if (Tag == VLANTagType.Tagged && !isPort) //Ports can have multiple tags on one interface
one.Tag = VLANTagType.Forbidden; one.Tag = VLANTagType.Forbidden;
if (Tag == VLANTagType.Tagged && isPort)
{
if(one.Tag != VLANTagType.Tagged)
one.Tag = VLANTagType.Forbidden; //We cannot have an untagged port and tagged ports at the same time
}
} }
} }
if (!foundit) if (!foundit)