Get loading and saving of devices in Actions working. Lots of things needed to be "public" so reflection works.
This commit is contained in:
parent
eab20232ca
commit
2df6c5c2f8
@ -20,12 +20,14 @@ namespace EduNetworkBuilder
|
|||||||
public void RegisterNet(Network starting)
|
public void RegisterNet(Network starting)
|
||||||
{
|
{
|
||||||
StartingState = Network.DeepClone(starting);
|
StartingState = Network.DeepClone(starting);
|
||||||
|
CurrentNetAction = FindAction(starting);
|
||||||
|
if(CurrentNetAction == null)
|
||||||
CurrentNetAction = new NetworkAction(starting);
|
CurrentNetAction = new NetworkAction(starting);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Add(ActionClass What)
|
public void Add(ActionClass What)
|
||||||
{
|
{
|
||||||
if(CurrentNetAction == null)
|
if(CurrentNetAction == null || CurrentNetAction.HasBeenStored == true)
|
||||||
{
|
{
|
||||||
Network start = NB.GetNetwork();
|
Network start = NB.GetNetwork();
|
||||||
if (start == null) return;//Do nothing
|
if (start == null) return;//Do nothing
|
||||||
@ -35,6 +37,19 @@ namespace EduNetworkBuilder
|
|||||||
CurrentNetAction.Add(What);
|
CurrentNetAction.Add(What);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NetworkAction FindAction(Network Fitting)
|
||||||
|
{
|
||||||
|
return FindAction(NameFromNet(Fitting));
|
||||||
|
}
|
||||||
|
public NetworkAction FindAction(string Fitting)
|
||||||
|
{
|
||||||
|
foreach(NetworkAction one in NetActions)
|
||||||
|
{
|
||||||
|
if (one.NetworkName == Fitting)
|
||||||
|
return one;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
public bool CurrentNeedsStoring
|
public bool CurrentNeedsStoring
|
||||||
{ get {
|
{ get {
|
||||||
if (CurrentNetAction == null) return false;
|
if (CurrentNetAction == null) return false;
|
||||||
@ -161,6 +176,7 @@ namespace EduNetworkBuilder
|
|||||||
if(ChangedComponent is NetworkDevice)
|
if(ChangedComponent is NetworkDevice)
|
||||||
{
|
{
|
||||||
source.UpdateFromComponent(ChangedComponent); //Copy any changes across
|
source.UpdateFromComponent(ChangedComponent); //Copy any changes across
|
||||||
|
source.SetImageFromType(); //The image was not saved. Re-make it
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ //It is a link. Delete the old, make the new. Mark as linked
|
{ //It is a link. Delete the old, make the new. Mark as linked
|
||||||
|
@ -15,16 +15,30 @@ namespace EduNetworkBuilder
|
|||||||
public class NB_IPAddress
|
public class NB_IPAddress
|
||||||
{
|
{
|
||||||
|
|
||||||
private UInt32 _ip;
|
public UInt32 _ip;
|
||||||
private UInt32 _mask;
|
public UInt32 _mask;
|
||||||
private UInt32 _gw;
|
public UInt32 _gw;
|
||||||
private IPAddressType myType;
|
public IPAddressType myType;
|
||||||
//Add in new values for the IP, Netmask, and gateway. Will start migrating to use these.
|
//Add in new values for the IP, Netmask, and gateway. Will start migrating to use these.
|
||||||
private IPAddress theIP;
|
private IPAddress theIP;
|
||||||
private IPAddress theNetmask;
|
private IPAddress theNetmask;
|
||||||
private IPAddress theGateway;
|
private IPAddress theGateway;
|
||||||
|
|
||||||
public NB_IPAddress() { } //used for reflection
|
public NB_IPAddress() { } //used for reflection
|
||||||
|
/// <summary>
|
||||||
|
/// Duplicate an IP address structure
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Orig"></param>
|
||||||
|
public NB_IPAddress(NB_IPAddress Orig)
|
||||||
|
{
|
||||||
|
_ip = Orig._ip;
|
||||||
|
_mask = Orig._mask;
|
||||||
|
_gw = Orig._gw;
|
||||||
|
myType = Orig.myType;
|
||||||
|
theIP = Orig.theIP;
|
||||||
|
theNetmask = Orig.theNetmask;
|
||||||
|
theGateway = Orig.theGateway;
|
||||||
|
}
|
||||||
public NB_IPAddress(string ip, string mask, IPAddressType WhatType)
|
public NB_IPAddress(string ip, string mask, IPAddressType WhatType)
|
||||||
{
|
{
|
||||||
myType = WhatType;
|
myType = WhatType;
|
||||||
|
@ -1453,7 +1453,7 @@ namespace EduNetworkBuilder
|
|||||||
ActionClass AC = new ActionClass();
|
ActionClass AC = new ActionClass();
|
||||||
AC.Action = NBAction.ping;
|
AC.Action = NBAction.ping;
|
||||||
AC.SourceID = HostID;
|
AC.SourceID = HostID;
|
||||||
AC.Destination = Destination;
|
AC.Destination = new NB_IPAddress(Destination);
|
||||||
|
|
||||||
RegisterAction(AC);
|
RegisterAction(AC);
|
||||||
|
|
||||||
|
@ -162,6 +162,10 @@ namespace EduNetworkBuilder
|
|||||||
{
|
{
|
||||||
ReplayMode = true;
|
ReplayMode = true;
|
||||||
UserActions = NB.ReadFromXmlResource<ActionCollection>("EduNetworkReplay");
|
UserActions = NB.ReadFromXmlResource<ActionCollection>("EduNetworkReplay");
|
||||||
|
foreach(NetworkAction NetAction in UserActions.NetActions)
|
||||||
|
{
|
||||||
|
NetAction.HasBeenStored = true; //All of them start out stored
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool CheckIfDone(string PuzzleName)
|
public bool CheckIfDone(string PuzzleName)
|
||||||
|
@ -2862,14 +2862,17 @@ namespace EduNetworkBuilder
|
|||||||
if (OurSettings != null && OurSettings.ReplayMode)
|
if (OurSettings != null && OurSettings.ReplayMode)
|
||||||
{
|
{
|
||||||
ActionCollection AC = OurSettings.GetUserActionCollection();
|
ActionCollection AC = OurSettings.GetUserActionCollection();
|
||||||
if(AC != null && AC.GetActionCount >0)
|
if (AC != null)
|
||||||
|
{
|
||||||
|
if (AC.GetActionCount > 0)
|
||||||
replayToolStripMenuItem.Visible = true; //Only visible if we have something to replay
|
replayToolStripMenuItem.Visible = true; //Only visible if we have something to replay
|
||||||
if (AC.CurrentNeedsStoring)
|
if (AC.CurrentNeedsStoring && AC.GetActionCount > 0)
|
||||||
storeReplayToolStripMenuItem.Visible = true;
|
storeReplayToolStripMenuItem.Visible = true;
|
||||||
if (AC.HasUnsavedChanges)
|
if (AC.HasUnsavedChanges)
|
||||||
saveReplayToolStripMenuItem.Visible = true;
|
saveReplayToolStripMenuItem.Visible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void StoreReplay()
|
void StoreReplay()
|
||||||
{
|
{
|
||||||
|
@ -16,15 +16,15 @@ namespace EduNetworkBuilder
|
|||||||
public class NetworkCard
|
public class NetworkCard
|
||||||
{
|
{
|
||||||
public string MAC = NB.GenerateMACAddress(); //Technically we should make sure it is unique
|
public string MAC = NB.GenerateMACAddress(); //Technically we should make sure it is unique
|
||||||
List<NetworkInterface> interfaces = new List<NetworkInterface>();
|
public List<NetworkInterface> interfaces = new List<NetworkInterface>();
|
||||||
public bool UsesDHCP = false;
|
public bool UsesDHCP = false;
|
||||||
public bool CanUseDHCP = false;
|
public bool CanUseDHCP = false;
|
||||||
public bool MustUseDHCP = false;
|
public bool MustUseDHCP = false;
|
||||||
private NicType myNicType = NicType.eth;
|
public NicType myNicType = NicType.eth;
|
||||||
public HostNicID myID;
|
public HostNicID myID;
|
||||||
public int ConnectedLink=-1; //The link that is connected to this nic.
|
public int ConnectedLink=-1; //The link that is connected to this nic.
|
||||||
private int UniqueIdentifier = NB.GetUniqueIdentifier();
|
public int UniqueIdentifier = NB.GetUniqueIdentifier();
|
||||||
private string _nic_name="";
|
public string _nic_name="";
|
||||||
public NB_IPAddress TunnelEndpoint;
|
public NB_IPAddress TunnelEndpoint;
|
||||||
public string EncryptionKey;
|
public string EncryptionKey;
|
||||||
public string SSID;
|
public string SSID;
|
||||||
|
@ -18,7 +18,7 @@ namespace EduNetworkBuilder
|
|||||||
public class NetworkComponent
|
public class NetworkComponent
|
||||||
{
|
{
|
||||||
public bool IsDirty = true; //If something has changed and it needs to be re-drawn. It starts as "true"
|
public bool IsDirty = true; //If something has changed and it needs to be re-drawn. It starts as "true"
|
||||||
protected int UniqueIdentifier = NB.GetUniqueIdentifier();
|
public int UniqueIdentifier = NB.GetUniqueIdentifier();
|
||||||
public string hostname = "";
|
public string hostname = "";
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// isInvisible is what happens when we have forgotton something exists. We can have a forgotton switch, WAP, DHCP server
|
/// isInvisible is what happens when we have forgotton something exists. We can have a forgotton switch, WAP, DHCP server
|
||||||
|
@ -14,19 +14,19 @@ namespace EduNetworkBuilder
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public class NetworkDevice : NetworkComponent
|
public class NetworkDevice : NetworkComponent
|
||||||
{
|
{
|
||||||
protected List<NetworkCard> NICs = new List<NetworkCard>();
|
public List<NetworkCard> NICs = new List<NetworkCard>();
|
||||||
protected NB_IPAddress DefaultGW = new NB_IPAddress(NB.ZeroIPString, NB.ZeroIPString, IPAddressType.gw);
|
public NB_IPAddress DefaultGW = new NB_IPAddress(NB.ZeroIPString, NB.ZeroIPString, IPAddressType.gw);
|
||||||
protected Image MyImage = null;
|
protected Image MyImage = null;
|
||||||
protected Point MyLocation;
|
public Point MyLocation;
|
||||||
public int Size;
|
public int Size;
|
||||||
protected List<ArpEntry> ArpTable = new List<ArpEntry>();
|
protected List<ArpEntry> ArpTable = new List<ArpEntry>();
|
||||||
protected NetworkComponentType myType = NetworkComponentType.none;
|
public NetworkComponentType myType = NetworkComponentType.none;
|
||||||
protected List<NB_IPAddress> RouteTable = new List<NB_IPAddress>();
|
public List<NB_IPAddress> RouteTable = new List<NB_IPAddress>();
|
||||||
protected List<NB_IPAddress> DHCPRanges = new List<NB_IPAddress>();
|
public List<NB_IPAddress> DHCPRanges = new List<NB_IPAddress>();
|
||||||
protected List<ArpEntry> DHCPLeases = new List<ArpEntry>();
|
protected List<ArpEntry> DHCPLeases = new List<ArpEntry>();
|
||||||
protected List<IPConnectionEntry> IPConnections = new List<IPConnectionEntry>();
|
protected List<IPConnectionEntry> IPConnections = new List<IPConnectionEntry>();
|
||||||
protected bool isDNSServer = false;
|
public bool isDNSServer = false;
|
||||||
protected bool isDHCPServer = false;
|
public bool isDHCPServer = false;
|
||||||
public bool CanServeDHCP = false;
|
public bool CanServeDHCP = false;
|
||||||
public bool CanUseDHCP = false;
|
public bool CanUseDHCP = false;
|
||||||
public bool MustUseDHCP = false;
|
public bool MustUseDHCP = false;
|
||||||
@ -688,7 +688,10 @@ namespace EduNetworkBuilder
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
public void SetImageFromType()
|
||||||
|
{
|
||||||
|
SetImageFromType(myType);
|
||||||
|
}
|
||||||
private void SetImageFromType(NetworkComponentType what)
|
private void SetImageFromType(NetworkComponentType what)
|
||||||
{
|
{
|
||||||
switch (what)
|
switch (what)
|
||||||
@ -1515,7 +1518,10 @@ namespace EduNetworkBuilder
|
|||||||
hostname = ndCopyFrom.hostname;
|
hostname = ndCopyFrom.hostname;
|
||||||
Size = ndCopyFrom.Size;
|
Size = ndCopyFrom.Size;
|
||||||
DefaultGW = ndCopyFrom.DefaultGW;
|
DefaultGW = ndCopyFrom.DefaultGW;
|
||||||
|
if (ndCopyFrom.MyImage != null)
|
||||||
MyImage = new Bitmap(ndCopyFrom.MyImage);
|
MyImage = new Bitmap(ndCopyFrom.MyImage);
|
||||||
|
else
|
||||||
|
MyImage = null;
|
||||||
CanAddNics = ndCopyFrom.CanAddNics;
|
CanAddNics = ndCopyFrom.CanAddNics;
|
||||||
CanServeDHCP = ndCopyFrom.CanServeDHCP;
|
CanServeDHCP = ndCopyFrom.CanServeDHCP;
|
||||||
CanUseDHCP = ndCopyFrom.CanUseDHCP;
|
CanUseDHCP = ndCopyFrom.CanUseDHCP;
|
||||||
|
@ -12,8 +12,8 @@ namespace EduNetworkBuilder
|
|||||||
[Serializable]
|
[Serializable]
|
||||||
public class NetworkLink : NetworkComponent
|
public class NetworkLink : NetworkComponent
|
||||||
{
|
{
|
||||||
HostNicID SrcNic;
|
public HostNicID SrcNic;
|
||||||
HostNicID DstNic;
|
public HostNicID DstNic;
|
||||||
public LinkType theLinkType = LinkType.normal;
|
public LinkType theLinkType = LinkType.normal;
|
||||||
public bool isVisibleLink = true; //False for wireless. Skip drawing a line if it is there
|
public bool isVisibleLink = true; //False for wireless. Skip drawing a line if it is there
|
||||||
|
|
||||||
|
@ -16,14 +16,31 @@
|
|||||||
<NicID>0</NicID>
|
<NicID>0</NicID>
|
||||||
</DestNic>
|
</DestNic>
|
||||||
<Location>
|
<Location>
|
||||||
<X>359</X>
|
<X>375</X>
|
||||||
<Y>229</Y>
|
<Y>186</Y>
|
||||||
</Location>
|
</Location>
|
||||||
<newItemType>net_switch</newItemType>
|
<newItemType>net_switch</newItemType>
|
||||||
<ChangedComponent xsi:type="NetworkDevice">
|
<ChangedComponent xsi:type="NetworkDevice">
|
||||||
<IsDirty>false</IsDirty>
|
<IsDirty>false</IsDirty>
|
||||||
|
<UniqueIdentifier>117</UniqueIdentifier>
|
||||||
<hostname>net_switch0</hostname>
|
<hostname>net_switch0</hostname>
|
||||||
|
<NICs />
|
||||||
|
<DefaultGW>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</DefaultGW>
|
||||||
|
<MyLocation>
|
||||||
|
<X>0</X>
|
||||||
|
<Y>0</Y>
|
||||||
|
</MyLocation>
|
||||||
<Size>100</Size>
|
<Size>100</Size>
|
||||||
|
<myType>none</myType>
|
||||||
|
<RouteTable />
|
||||||
|
<DHCPRanges />
|
||||||
|
<isDNSServer>false</isDNSServer>
|
||||||
|
<isDHCPServer>false</isDHCPServer>
|
||||||
<CanServeDHCP>false</CanServeDHCP>
|
<CanServeDHCP>false</CanServeDHCP>
|
||||||
<CanUseDHCP>true</CanUseDHCP>
|
<CanUseDHCP>true</CanUseDHCP>
|
||||||
<MustUseDHCP>false</MustUseDHCP>
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
@ -55,7 +72,20 @@
|
|||||||
<newItemType>none</newItemType>
|
<newItemType>none</newItemType>
|
||||||
<ChangedComponent xsi:type="NetworkLink">
|
<ChangedComponent xsi:type="NetworkLink">
|
||||||
<IsDirty>false</IsDirty>
|
<IsDirty>false</IsDirty>
|
||||||
|
<UniqueIdentifier>127</UniqueIdentifier>
|
||||||
<hostname />
|
<hostname />
|
||||||
|
<SrcNic>
|
||||||
|
<HostID>100</HostID>
|
||||||
|
<NicID>102</NicID>
|
||||||
|
<HostName>pc0</HostName>
|
||||||
|
<NicName>eth0</NicName>
|
||||||
|
</SrcNic>
|
||||||
|
<DstNic>
|
||||||
|
<HostID>117</HostID>
|
||||||
|
<NicID>120</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port1</NicName>
|
||||||
|
</DstNic>
|
||||||
<theLinkType>normal</theLinkType>
|
<theLinkType>normal</theLinkType>
|
||||||
<isVisibleLink>true</isVisibleLink>
|
<isVisibleLink>true</isVisibleLink>
|
||||||
</ChangedComponent>
|
</ChangedComponent>
|
||||||
@ -78,7 +108,20 @@
|
|||||||
<newItemType>none</newItemType>
|
<newItemType>none</newItemType>
|
||||||
<ChangedComponent xsi:type="NetworkLink">
|
<ChangedComponent xsi:type="NetworkLink">
|
||||||
<IsDirty>false</IsDirty>
|
<IsDirty>false</IsDirty>
|
||||||
|
<UniqueIdentifier>128</UniqueIdentifier>
|
||||||
<hostname />
|
<hostname />
|
||||||
|
<SrcNic>
|
||||||
|
<HostID>116</HostID>
|
||||||
|
<NicID>118</NicID>
|
||||||
|
<HostName>pc2</HostName>
|
||||||
|
<NicName>eth0</NicName>
|
||||||
|
</SrcNic>
|
||||||
|
<DstNic>
|
||||||
|
<HostID>117</HostID>
|
||||||
|
<NicID>121</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port2</NicName>
|
||||||
|
</DstNic>
|
||||||
<theLinkType>normal</theLinkType>
|
<theLinkType>normal</theLinkType>
|
||||||
<isVisibleLink>true</isVisibleLink>
|
<isVisibleLink>true</isVisibleLink>
|
||||||
</ChangedComponent>
|
</ChangedComponent>
|
||||||
@ -101,7 +144,20 @@
|
|||||||
<newItemType>none</newItemType>
|
<newItemType>none</newItemType>
|
||||||
<ChangedComponent xsi:type="NetworkLink">
|
<ChangedComponent xsi:type="NetworkLink">
|
||||||
<IsDirty>false</IsDirty>
|
<IsDirty>false</IsDirty>
|
||||||
|
<UniqueIdentifier>129</UniqueIdentifier>
|
||||||
<hostname />
|
<hostname />
|
||||||
|
<SrcNic>
|
||||||
|
<HostID>103</HostID>
|
||||||
|
<NicID>105</NicID>
|
||||||
|
<HostName>pc1</HostName>
|
||||||
|
<NicName>eth0</NicName>
|
||||||
|
</SrcNic>
|
||||||
|
<DstNic>
|
||||||
|
<HostID>117</HostID>
|
||||||
|
<NicID>122</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port3</NicName>
|
||||||
|
</DstNic>
|
||||||
<theLinkType>normal</theLinkType>
|
<theLinkType>normal</theLinkType>
|
||||||
<isVisibleLink>true</isVisibleLink>
|
<isVisibleLink>true</isVisibleLink>
|
||||||
</ChangedComponent>
|
</ChangedComponent>
|
||||||
@ -109,6 +165,482 @@
|
|||||||
</Actions>
|
</Actions>
|
||||||
<HasBeenStored>true</HasBeenStored>
|
<HasBeenStored>true</HasBeenStored>
|
||||||
</NetworkAction>
|
</NetworkAction>
|
||||||
|
<NetworkAction>
|
||||||
|
<NetworkName>Level0_Power</NetworkName>
|
||||||
|
<Actions>
|
||||||
|
<ActionClass>
|
||||||
|
<Action>changecomponent</Action>
|
||||||
|
<SourceID>109</SourceID>
|
||||||
|
<SourceNIC>
|
||||||
|
<HostID>0</HostID>
|
||||||
|
<NicID>0</NicID>
|
||||||
|
</SourceNIC>
|
||||||
|
<DestNic>
|
||||||
|
<HostID>0</HostID>
|
||||||
|
<NicID>0</NicID>
|
||||||
|
</DestNic>
|
||||||
|
<Location>
|
||||||
|
<X>0</X>
|
||||||
|
<Y>0</Y>
|
||||||
|
</Location>
|
||||||
|
<newItemType>none</newItemType>
|
||||||
|
<ChangedComponent xsi:type="NetworkDevice">
|
||||||
|
<IsDirty>false</IsDirty>
|
||||||
|
<UniqueIdentifier>109</UniqueIdentifier>
|
||||||
|
<hostname>net_switch0</hostname>
|
||||||
|
<NICs>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>70E4C079D244</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>2130706433</_ip>
|
||||||
|
<_mask>4278190080</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>lo0</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>110</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>lo0</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>lo</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>110</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>lo0</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>-1</ConnectedLink>
|
||||||
|
<UniqueIdentifier>110</UniqueIdentifier>
|
||||||
|
<_nic_name>lo0</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>B80FF42F3AFC</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>3232235780</_ip>
|
||||||
|
<_mask>4294967040</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>management_interface0</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>111</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>management_interface0</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>true</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>management_interface</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>111</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>management_interface0</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>-1</ConnectedLink>
|
||||||
|
<UniqueIdentifier>111</UniqueIdentifier>
|
||||||
|
<_nic_name>management_interface0</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>7BADA9ED1527</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>port1</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>112</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port1</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>port</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>112</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port1</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>126</ConnectedLink>
|
||||||
|
<UniqueIdentifier>112</UniqueIdentifier>
|
||||||
|
<_nic_name>port1</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>0299327A45F8</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>port2</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>113</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port2</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>port</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>113</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port2</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>127</ConnectedLink>
|
||||||
|
<UniqueIdentifier>113</UniqueIdentifier>
|
||||||
|
<_nic_name>port2</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>3DC0D221DD41</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>port3</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>114</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port3</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>port</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>114</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port3</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>128</ConnectedLink>
|
||||||
|
<UniqueIdentifier>114</UniqueIdentifier>
|
||||||
|
<_nic_name>port3</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>8F9FB28FE232</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>port4</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>115</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port4</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>port</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>115</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port4</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>-1</ConnectedLink>
|
||||||
|
<UniqueIdentifier>115</UniqueIdentifier>
|
||||||
|
<_nic_name>port4</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>8E3CA30D9C6A</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>port5</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>116</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port5</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>port</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>116</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port5</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>-1</ConnectedLink>
|
||||||
|
<UniqueIdentifier>116</UniqueIdentifier>
|
||||||
|
<_nic_name>port5</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>7D531A8783CB</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>port6</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>117</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port6</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>port</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>117</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port6</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>-1</ConnectedLink>
|
||||||
|
<UniqueIdentifier>117</UniqueIdentifier>
|
||||||
|
<_nic_name>port6</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
<NetworkCard>
|
||||||
|
<MAC>57A834AA16A4</MAC>
|
||||||
|
<interfaces>
|
||||||
|
<NetworkInterface>
|
||||||
|
<myIP>
|
||||||
|
<_ip>0</_ip>
|
||||||
|
<_mask>0</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</myIP>
|
||||||
|
<nic_name>port7</nic_name>
|
||||||
|
<AttachedToHostNic>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>118</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port7</NicName>
|
||||||
|
</AttachedToHostNic>
|
||||||
|
<VLANs>
|
||||||
|
<VLANInfo>
|
||||||
|
<_ID>1</_ID>
|
||||||
|
<_Tag>Untagged</_Tag>
|
||||||
|
<ID>1</ID>
|
||||||
|
<Tag>Untagged</Tag>
|
||||||
|
</VLANInfo>
|
||||||
|
</VLANs>
|
||||||
|
</NetworkInterface>
|
||||||
|
</interfaces>
|
||||||
|
<UsesDHCP>false</UsesDHCP>
|
||||||
|
<CanUseDHCP>false</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<myNicType>port</myNicType>
|
||||||
|
<myID>
|
||||||
|
<HostID>109</HostID>
|
||||||
|
<NicID>118</NicID>
|
||||||
|
<HostName>net_switch0</HostName>
|
||||||
|
<NicName>port7</NicName>
|
||||||
|
</myID>
|
||||||
|
<ConnectedLink>-1</ConnectedLink>
|
||||||
|
<UniqueIdentifier>118</UniqueIdentifier>
|
||||||
|
<_nic_name>port7</_nic_name>
|
||||||
|
<EncryptionKey />
|
||||||
|
<SSID />
|
||||||
|
<WirelessKey />
|
||||||
|
</NetworkCard>
|
||||||
|
</NICs>
|
||||||
|
<DefaultGW>
|
||||||
|
<_ip>3232235777</_ip>
|
||||||
|
<_mask>4294967040</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>gw</myType>
|
||||||
|
</DefaultGW>
|
||||||
|
<MyLocation>
|
||||||
|
<X>410</X>
|
||||||
|
<Y>340</Y>
|
||||||
|
</MyLocation>
|
||||||
|
<Size>100</Size>
|
||||||
|
<myType>net_switch</myType>
|
||||||
|
<RouteTable />
|
||||||
|
<DHCPRanges />
|
||||||
|
<isDNSServer>false</isDNSServer>
|
||||||
|
<isDHCPServer>false</isDHCPServer>
|
||||||
|
<CanServeDHCP>false</CanServeDHCP>
|
||||||
|
<CanUseDHCP>true</CanUseDHCP>
|
||||||
|
<MustUseDHCP>false</MustUseDHCP>
|
||||||
|
<CanAddNics>false</CanAddNics>
|
||||||
|
<HasAdvFirewall>false</HasAdvFirewall>
|
||||||
|
<IsBurned>false</IsBurned>
|
||||||
|
<BackgroundColor />
|
||||||
|
<FirewallRules />
|
||||||
|
<PowerOff>false</PowerOff>
|
||||||
|
<BadSprayCount>0</BadSprayCount>
|
||||||
|
<PacketIDsPassedThrough />
|
||||||
|
</ChangedComponent>
|
||||||
|
</ActionClass>
|
||||||
|
<ActionClass>
|
||||||
|
<Action>ping</Action>
|
||||||
|
<SourceID>100</SourceID>
|
||||||
|
<Destination>
|
||||||
|
<_ip>3232236034</_ip>
|
||||||
|
<_mask>4294967040</_mask>
|
||||||
|
<_gw>0</_gw>
|
||||||
|
<myType>ip</myType>
|
||||||
|
</Destination>
|
||||||
|
<SourceNIC>
|
||||||
|
<HostID>0</HostID>
|
||||||
|
<NicID>0</NicID>
|
||||||
|
</SourceNIC>
|
||||||
|
<DestNic>
|
||||||
|
<HostID>0</HostID>
|
||||||
|
<NicID>0</NicID>
|
||||||
|
</DestNic>
|
||||||
|
<Location>
|
||||||
|
<X>0</X>
|
||||||
|
<Y>0</Y>
|
||||||
|
</Location>
|
||||||
|
<newItemType>none</newItemType>
|
||||||
|
</ActionClass>
|
||||||
|
</Actions>
|
||||||
|
<HasBeenStored>true</HasBeenStored>
|
||||||
|
</NetworkAction>
|
||||||
</NetActions>
|
</NetActions>
|
||||||
<HasUnsavedChanges>true</HasUnsavedChanges>
|
<HasUnsavedChanges>true</HasUnsavedChanges>
|
||||||
</ActionCollection>
|
</ActionCollection>
|
Loading…
Reference in New Issue
Block a user