예제 #1
0
    public void Add(Fortigate.Interface currentInterface, object connected)
    {
        string name = currentInterface.Name;

        if (name == "")
        {
            name = "Empty";
        }
        if (!names.Contains(name))
        {
            names.Add(name);
            if (names.Count > 1)
            {
                actionReq = true;
            }
        }

        IP ip = new IP(currentInterface.IP + " " + currentInterface.subnetMask);

        if (!this.IPs.Contains(ip))
        {
            this.IPs.Add(ip);
        }

        this.ConnectedTo.Add(connected);
    }
예제 #2
0
 public Network(Fortigate.Interface currentInterface, object connected)
 {
     this.vlanID = -1;
     Add(currentInterface, connected);
 }