CP-25982: add wizard to enable SR-IOV network (#1887)

This commit is contained in:
jishengx 2018-01-05 20:46:44 +08:00 committed by Cheng Zhang
parent 8250e086d1
commit b2c74ff261
17 changed files with 1069 additions and 123 deletions

Binary file not shown.

BIN
NUnit/Moq.dll Executable file

Binary file not shown.

BIN
NUnit/Moq_dotnet4.dll Executable file

Binary file not shown.

BIN
NUnit/nunit.framework.dll Executable file

Binary file not shown.

View File

@ -50,7 +50,8 @@ namespace XenAdmin.Wizards
Internal, // old-style (host-only) private networks
CHIN, // cross-host internal (or private) networks
External,
Bonded
Bonded,
SRIOV
}
public partial class NewNetworkWizard : XenWizardBase
@ -60,6 +61,7 @@ namespace XenAdmin.Wizards
private readonly NetWDetails pageNetworkDetails;
private readonly NetWBondDetails pageBondDetails;
private readonly NetWChinDetails pageChinDetails;
private readonly NetWSriovDetails pageSriovDetails;
/// <summary>
/// May be null.
@ -84,6 +86,7 @@ namespace XenAdmin.Wizards
pageNetworkDetails = new NetWDetails();
pageBondDetails = new NetWBondDetails();
pageChinDetails = new NetWChinDetails();
pageSriovDetails = new NetWSriovDetails();
System.Diagnostics.Trace.Assert(host != null);
Pool = pool;
@ -97,6 +100,7 @@ namespace XenAdmin.Wizards
pageNetworkDetails.Host = host;
pageChinDetails.Host = host;
pageChinDetails.Pool = pool;
pageSriovDetails.Host = host;
AddPage(pageNetworkType);
AddPage(new XenTabPage { Text = "" });
@ -133,6 +137,10 @@ namespace XenAdmin.Wizards
if (m_networkType == NetworkTypes.CHIN)
AddPage(pageChinDetails);
else if (m_networkType == NetworkTypes.SRIOV)
{
AddPage(pageSriovDetails);
}
else
{
AddPage(pageNetworkDetails);

View File

@ -125,12 +125,235 @@
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Name" xml:space="preserve">
<value>infoMtuPanel</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;infoMtuPanel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;labelNIC.Name" xml:space="preserve">
<value>labelNIC</value>
</data>
<data name="&gt;&gt;labelNIC.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelNIC.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelNIC.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;labelVLAN.Name" xml:space="preserve">
<value>labelVLAN</value>
</data>
<data name="&gt;&gt;labelVLAN.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelVLAN.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelVLAN.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="&gt;&gt;lblNicHelp.Name" xml:space="preserve">
<value>lblNicHelp</value>
</data>
<data name="&gt;&gt;lblNicHelp.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lblNicHelp.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;lblNicHelp.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="&gt;&gt;numericUpDownVLAN.Name" xml:space="preserve">
<value>numericUpDownVLAN</value>
</data>
<data name="&gt;&gt;numericUpDownVLAN.Type" xml:space="preserve">
<value>System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;numericUpDownVLAN.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;numericUpDownVLAN.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="&gt;&gt;comboBoxNICList.Name" xml:space="preserve">
<value>comboBoxNICList</value>
</data>
<data name="&gt;&gt;comboBoxNICList.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;comboBoxNICList.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;comboBoxNICList.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="&gt;&gt;checkBoxAutomatic.Name" xml:space="preserve">
<value>checkBoxAutomatic</value>
</data>
<data name="&gt;&gt;checkBoxAutomatic.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;checkBoxAutomatic.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;checkBoxAutomatic.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="&gt;&gt;labelMTU.Name" xml:space="preserve">
<value>labelMTU</value>
</data>
<data name="&gt;&gt;labelMTU.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelMTU.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelMTU.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="&gt;&gt;numericUpDownMTU.Name" xml:space="preserve">
<value>numericUpDownMTU</value>
</data>
<data name="&gt;&gt;numericUpDownMTU.Type" xml:space="preserve">
<value>System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;numericUpDownMTU.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;numericUpDownMTU.ZOrder" xml:space="preserve">
<value>8</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Name" xml:space="preserve">
<value>panelVLANInfo</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;panelVLANInfo.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="tableLayoutPanel1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>493, 276</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>panel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="infoMtuPanel" Row="3" RowSpan="1" Column="2" ColumnSpan="2" /&gt;&lt;Control Name="labelNIC" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelVLAN" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="lblNicHelp" Row="0" RowSpan="1" Column="0" ColumnSpan="4" /&gt;&lt;Control Name="numericUpDownVLAN" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="comboBoxNICList" Row="1" RowSpan="1" Column="1" ColumnSpan="2" /&gt;&lt;Control Name="checkBoxAutomatic" Row="4" RowSpan="1" Column="0" ColumnSpan="4" /&gt;&lt;Control Name="labelMTU" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="numericUpDownMTU" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="panelVLANInfo" Row="2" RowSpan="1" Column="2" ColumnSpan="2" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Absolute,120,Absolute,127,Percent,100" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,Percent,100" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<data name="panel1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="panel1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="panel1.Size" type="System.Drawing.Size, System.Drawing">
<value>493, 276</value>
</data>
<data name="panel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;panel1.Name" xml:space="preserve">
<value>panel1</value>
</data>
<data name="&gt;&gt;panel1.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;panel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="infoMtuPanel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="infoMtuPanel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;infoMtuMessage.Name" xml:space="preserve">
<value>infoMtuMessage</value>
</data>
<data name="&gt;&gt;infoMtuMessage.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;infoMtuMessage.Parent" xml:space="preserve">
<value>infoMtuPanel</value>
</data>
<data name="&gt;&gt;infoMtuMessage.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;pictureBox2.Name" xml:space="preserve">
<value>pictureBox2</value>
</data>
<data name="&gt;&gt;pictureBox2.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;pictureBox2.Parent" xml:space="preserve">
<value>infoMtuPanel</value>
</data>
<data name="&gt;&gt;pictureBox2.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="infoMtuPanel.Location" type="System.Drawing.Point, System.Drawing">
<value>164, 136</value>
</data>
<data name="infoMtuPanel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 0, 0, 2</value>
</data>
<data name="infoMtuPanel.Size" type="System.Drawing.Size, System.Drawing">
<value>310, 15</value>
</data>
<data name="infoMtuPanel.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Name" xml:space="preserve">
<value>infoMtuPanel</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;infoMtuPanel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="infoMtuMessage.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@ -140,7 +363,6 @@
<data name="infoMtuMessage.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="infoMtuMessage.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 0</value>
</data>
@ -201,30 +423,6 @@
<data name="&gt;&gt;pictureBox2.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="infoMtuPanel.Location" type="System.Drawing.Point, System.Drawing">
<value>164, 136</value>
</data>
<data name="infoMtuPanel.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 0, 0, 2</value>
</data>
<data name="infoMtuPanel.Size" type="System.Drawing.Size, System.Drawing">
<value>310, 15</value>
</data>
<data name="infoMtuPanel.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Name" xml:space="preserve">
<value>infoMtuPanel</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;infoMtuPanel.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;infoMtuPanel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="labelNIC.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@ -486,6 +684,57 @@ Select the physical interface you would like to use:</value>
<data name="panelVLANInfo.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;labelVlanError.Name" xml:space="preserve">
<value>labelVlanError</value>
</data>
<data name="&gt;&gt;labelVlanError.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelVlanError.Parent" xml:space="preserve">
<value>panelVLANInfo</value>
</data>
<data name="&gt;&gt;labelVlanError.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;labelVLAN0Info.Name" xml:space="preserve">
<value>labelVLAN0Info</value>
</data>
<data name="&gt;&gt;labelVLAN0Info.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelVLAN0Info.Parent" xml:space="preserve">
<value>panelVLANInfo</value>
</data>
<data name="&gt;&gt;labelVLAN0Info.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="panelVLANInfo.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="panelVLANInfo.Location" type="System.Drawing.Point, System.Drawing">
<value>161, 112</value>
</data>
<data name="panelVLANInfo.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 13, 0, 0</value>
</data>
<data name="panelVLANInfo.Size" type="System.Drawing.Size, System.Drawing">
<value>332, 23</value>
</data>
<data name="panelVLANInfo.TabIndex" type="System.Int32, mscorlib">
<value>16</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Name" xml:space="preserve">
<value>panelVLANInfo</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;panelVLANInfo.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="labelVlanError.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@ -576,87 +825,6 @@ Select the physical interface you would like to use:</value>
<data name="&gt;&gt;labelVLAN0Info.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="panelVLANInfo.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="panelVLANInfo.Location" type="System.Drawing.Point, System.Drawing">
<value>161, 112</value>
</data>
<data name="panelVLANInfo.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 13, 0, 0</value>
</data>
<data name="panelVLANInfo.Size" type="System.Drawing.Size, System.Drawing">
<value>332, 23</value>
</data>
<data name="panelVLANInfo.TabIndex" type="System.Int32, mscorlib">
<value>16</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Name" xml:space="preserve">
<value>panelVLANInfo</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panelVLANInfo.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;panelVLANInfo.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="tableLayoutPanel1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>493, 276</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>panel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="infoMtuPanel" Row="3" RowSpan="1" Column="2" ColumnSpan="2" /&gt;&lt;Control Name="labelNIC" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelVLAN" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="lblNicHelp" Row="0" RowSpan="1" Column="0" ColumnSpan="4" /&gt;&lt;Control Name="numericUpDownVLAN" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="comboBoxNICList" Row="1" RowSpan="1" Column="1" ColumnSpan="2" /&gt;&lt;Control Name="checkBoxAutomatic" Row="4" RowSpan="1" Column="0" ColumnSpan="4" /&gt;&lt;Control Name="labelMTU" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="numericUpDownMTU" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="panelVLANInfo" Row="2" RowSpan="1" Column="2" ColumnSpan="2" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Absolute,120,Absolute,127,Percent,100" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,0,AutoSize,20,Percent,100" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<data name="panel1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="panel1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="panel1.Size" type="System.Drawing.Size, System.Drawing">
<value>493, 276</value>
</data>
<data name="panel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;panel1.Name" xml:space="preserve">
<value>panel1</value>
</data>
<data name="&gt;&gt;panel1.Type" xml:space="preserve">
<value>System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;panel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;panel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@ -0,0 +1,95 @@
namespace XenAdmin.Wizards.NewNetworkWizard_Pages
{
partial class NetWSriovDetails
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NetWSriovDetails));
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.cbxAutomatic = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.comboBoxNicList = new System.Windows.Forms.ComboBox();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// tableLayoutPanel1
//
resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
this.tableLayoutPanel1.Controls.Add(this.cbxAutomatic, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.comboBoxNicList, 1, 1);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
//
// cbxAutomatic
//
resources.ApplyResources(this.cbxAutomatic, "cbxAutomatic");
this.tableLayoutPanel1.SetColumnSpan(this.cbxAutomatic, 3);
this.cbxAutomatic.Name = "cbxAutomatic";
this.cbxAutomatic.UseVisualStyleBackColor = true;
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.tableLayoutPanel1.SetColumnSpan(this.label1, 3);
this.label1.Name = "label1";
//
// label2
//
resources.ApplyResources(this.label2, "label2");
this.label2.Name = "label2";
//
// comboBoxNicList
//
this.comboBoxNicList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxNicList.FormattingEnabled = true;
resources.ApplyResources(this.comboBoxNicList, "comboBoxNicList");
this.comboBoxNicList.Name = "comboBoxNicList";
this.comboBoxNicList.Sorted = true;
//
// NetWSriovDetails
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "NetWSriovDetails";
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox comboBoxNicList;
private System.Windows.Forms.CheckBox cbxAutomatic;
}
}

View File

@ -0,0 +1,43 @@
using System;
using XenAdmin.Controls;
using XenAPI;
using XenAdmin.Network;
namespace XenAdmin.Wizards.NewNetworkWizard_Pages
{
public partial class NetWSriovDetails : XenTabPage
{
internal Host Host;
public NetWSriovDetails()
{
InitializeComponent();
}
public override string Text { get { return Messages.NETW_DETAILS_TEXT; } }
public override string PageTitle
{
get
{
return Messages.NETW_INTERNAL_DETAILS_TITLE;
}
}
public override void PopulatePage()
{
PopulateHostNicList(Host, Connection);
}
private void PopulateHostNicList(Host host, IXenConnection conn)
{
comboBoxNicList.Items.Clear();
foreach (PIF thePIF in conn.Cache.PIFs)
{
if (thePIF.host.opaque_ref == host.opaque_ref && thePIF.IsPhysical() && !thePIF.IsBondNIC())
{
comboBoxNicList.Items.Add(thePIF);
}
}
if (comboBoxNicList.Items.Count > 0)
comboBoxNicList.SelectedIndex = 0;
}
}
}

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 1.3
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,291 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="tableLayoutPanel1.ColumnCount" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="cbxAutomatic.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="cbxAutomatic.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="cbxAutomatic.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 94</value>
</data>
<data name="cbxAutomatic.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 24, 3, 3</value>
</data>
<data name="cbxAutomatic.Size" type="System.Drawing.Size, System.Drawing">
<value>286, 17</value>
</data>
<data name="cbxAutomatic.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="cbxAutomatic.Text" xml:space="preserve">
<value>&amp;Automatically add this network to new virtual machines.</value>
</data>
<data name="&gt;&gt;cbxAutomatic.Name" xml:space="preserve">
<value>cbxAutomatic</value>
</data>
<data name="&gt;&gt;cbxAutomatic.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;cbxAutomatic.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;cbxAutomatic.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 0</value>
</data>
<data name="label1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 0, 3, 30</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>156, 13</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>Select a NIC to enable SR-IOV.</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="label2.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Left</value>
</data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label2.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 50</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>28, 13</value>
</data>
<data name="label2.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>NI&amp;C:</value>
</data>
<data name="&gt;&gt;label2.Name" xml:space="preserve">
<value>label2</value>
</data>
<data name="&gt;&gt;label2.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label2.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="comboBoxNicList.Location" type="System.Drawing.Point, System.Drawing">
<value>37, 46</value>
</data>
<data name="comboBoxNicList.Size" type="System.Drawing.Size, System.Drawing">
<value>246, 21</value>
</data>
<data name="comboBoxNicList.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="&gt;&gt;comboBoxNicList.Name" xml:space="preserve">
<value>comboBoxNicList</value>
</data>
<data name="&gt;&gt;comboBoxNicList.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;comboBoxNicList.Parent" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;comboBoxNicList.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="tableLayoutPanel1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="tableLayoutPanel1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="tableLayoutPanel1.RowCount" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="tableLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>400, 350</value>
</data>
<data name="tableLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Name" xml:space="preserve">
<value>tableLayoutPanel1</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel1.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="cbxAutomatic" Row="2" RowSpan="1" Column="0" ColumnSpan="3" /&gt;&lt;Control Name="label1" Row="0" RowSpan="1" Column="0" ColumnSpan="3" /&gt;&lt;Control Name="label2" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="comboBoxNicList" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,AutoSize,0,AutoSize,0" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0,AutoSize,0,Percent,100" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>96, 96</value>
</data>
<data name="$this.Size" type="System.Drawing.Size, System.Drawing">
<value>400, 350</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>NetWSriovDetails</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>XenAdmin.Controls.XenTabPage, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 1.3
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -44,6 +44,8 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
this.iconWarningChinOption = new System.Windows.Forms.PictureBox();
this.labelWarningChinOption = new System.Windows.Forms.Label();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.rbtnSriov = new System.Windows.Forms.RadioButton();
this.labelSriov = new System.Windows.Forms.Label();
this.flowLayoutPanel1.SuspendLayout();
this.warningsTable.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.iconWarningChinOption)).BeginInit();
@ -112,6 +114,8 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
this.flowLayoutPanel1.Controls.Add(this.label3);
this.flowLayoutPanel1.Controls.Add(this.rbtnCHIN);
this.flowLayoutPanel1.Controls.Add(this.labelCHIN);
this.flowLayoutPanel1.Controls.Add(this.rbtnSriov);
this.flowLayoutPanel1.Controls.Add(this.labelSriov);
this.flowLayoutPanel1.Controls.Add(this.warningsTable);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
//
@ -138,6 +142,17 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
//
this.toolTip.ShowAlways = true;
//
// rbtnSriov
//
resources.ApplyResources(this.rbtnSriov, "rbtnSriov");
this.rbtnSriov.Name = "rbtnSriov";
this.rbtnSriov.UseVisualStyleBackColor = true;
//
// labelSriov
//
resources.ApplyResources(this.labelSriov, "labelSriov");
this.labelSriov.Name = "labelSriov";
//
// NetWTypeSelect
//
resources.ApplyResources(this, "$this");
@ -170,6 +185,8 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
private System.Windows.Forms.TableLayoutPanel warningsTable;
private System.Windows.Forms.PictureBox iconWarningChinOption;
private System.Windows.Forms.Label labelWarningChinOption;
private System.Windows.Forms.RadioButton rbtnSriov;
private System.Windows.Forms.Label labelSriov;
}
}

View File

@ -71,7 +71,9 @@ namespace XenAdmin.Wizards.NewNetworkWizard_Pages
? NetworkTypes.External
: rbtnCHIN.Checked
? NetworkTypes.CHIN
: NetworkTypes.Internal;
: rbtnSriov.Checked
? NetworkTypes.SRIOV
: NetworkTypes.Internal;
}
}

View File

@ -211,7 +211,7 @@
<value>117, 17</value>
</data>
<data name="rbtnBondedNetwork.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
<value>5</value>
</data>
<data name="rbtnBondedNetwork.Text" xml:space="preserve">
<value>&amp;Bonded Network</value>
@ -241,7 +241,7 @@
<value>46, 0, 3, 3</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>361, 26</value>
<value>359, 26</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
@ -278,7 +278,7 @@ This can be used as a private connection between VMs on the same host.</value>
<value>320, 26</value>
</data>
<data name="label3.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
<value>6</value>
</data>
<data name="label3.Text" xml:space="preserve">
<value>Create a network that bonds together two or more of your NICs.
@ -312,10 +312,10 @@ This will create a single higher performing channel.</value>
<value>46, 0, 3, 3</value>
</data>
<data name="labelCHIN.Size" type="System.Drawing.Size, System.Drawing">
<value>361, 39</value>
<value>359, 39</value>
</data>
<data name="labelCHIN.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
<value>8</value>
</data>
<data name="labelCHIN.Text" xml:space="preserve">
<value>Create a network that does not leave the [XenServer] pool.
@ -350,7 +350,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>46, 0, 3, 3</value>
</data>
<data name="labelExternalNetwork.Size" type="System.Drawing.Size, System.Drawing">
<value>361, 13</value>
<value>359, 13</value>
</data>
<data name="labelExternalNetwork.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
@ -389,7 +389,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>193, 17</value>
</data>
<data name="rbtnCHIN.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
<value>7</value>
</data>
<data name="rbtnCHIN.Text" xml:space="preserve">
<value>&amp;Cross-Server Private Network</value>
@ -425,7 +425,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>122, 17</value>
</data>
<data name="rbtnExternalNetwork.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
<value>1</value>
</data>
<data name="rbtnExternalNetwork.Text" xml:space="preserve">
<value>&amp;External Network</value>
@ -445,6 +445,78 @@ This type of network requires the vSwitch Controller to be running.</value>
<data name="flowLayoutPanel1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rbtnSriov.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rbtnSriov.Font" type="System.Drawing.Font, System.Drawing">
<value>Tahoma, 8.25pt, style=Bold</value>
</data>
<data name="rbtnSriov.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="rbtnSriov.Location" type="System.Drawing.Point, System.Drawing">
<value>20, 259</value>
</data>
<data name="rbtnSriov.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>20, 6, 3, 3</value>
</data>
<data name="rbtnSriov.Size" type="System.Drawing.Size, System.Drawing">
<value>115, 17</value>
</data>
<data name="rbtnSriov.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="rbtnSriov.Text" xml:space="preserve">
<value>S&amp;R-IOV Network</value>
</data>
<data name="&gt;&gt;rbtnSriov.Name" xml:space="preserve">
<value>rbtnSriov</value>
</data>
<data name="&gt;&gt;rbtnSriov.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbtnSriov.Parent" xml:space="preserve">
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;rbtnSriov.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="labelSriov.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Left, Right</value>
</data>
<data name="labelSriov.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="labelSriov.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="labelSriov.Location" type="System.Drawing.Point, System.Drawing">
<value>46, 279</value>
</data>
<data name="labelSriov.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>46, 0, 3, 3</value>
</data>
<data name="labelSriov.Size" type="System.Drawing.Size, System.Drawing">
<value>359, 13</value>
</data>
<data name="labelSriov.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="labelSriov.Text" xml:space="preserve">
<value>Enable SR-IOV on a NIC and create a SR-IOV network on that NIC.</value>
</data>
<data name="&gt;&gt;labelSriov.Name" xml:space="preserve">
<value>labelSriov</value>
</data>
<data name="&gt;&gt;labelSriov.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelSriov.Parent" xml:space="preserve">
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;labelSriov.ZOrder" xml:space="preserve">
<value>10</value>
</data>
<data name="warningsTable.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@ -506,7 +578,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>45, 13</value>
</data>
<data name="labelWarningChinOption.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
<value>0</value>
</data>
<data name="labelWarningChinOption.Text" xml:space="preserve">
<value>warning</value>
@ -524,7 +596,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>1</value>
</data>
<data name="warningsTable.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 269</value>
<value>3, 311</value>
</data>
<data name="warningsTable.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>3, 16, 3, 12</value>
@ -536,7 +608,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>73, 22</value>
</data>
<data name="warningsTable.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
<value>11</value>
</data>
<data name="&gt;&gt;warningsTable.Name" xml:space="preserve">
<value>warningsTable</value>
@ -548,7 +620,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>flowLayoutPanel1</value>
</data>
<data name="&gt;&gt;warningsTable.ZOrder" xml:space="preserve">
<value>9</value>
<value>11</value>
</data>
<data name="warningsTable.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="iconWarningChinOption" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelWarningChinOption" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="AutoSize,0,Percent,100" /&gt;&lt;Rows Styles="AutoSize,0,AutoSize,0" /&gt;&lt;/TableLayoutSettings&gt;</value>
@ -560,7 +632,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>0, 0</value>
</data>
<data name="flowLayoutPanel1.Size" type="System.Drawing.Size, System.Drawing">
<value>504, 333</value>
<value>504, 373</value>
</data>
<data name="flowLayoutPanel1.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
@ -593,7 +665,7 @@ This type of network requires the vSwitch Controller to be running.</value>
<value>0, 32, 0, 0</value>
</data>
<data name="$this.Size" type="System.Drawing.Size, System.Drawing">
<value>430, 318</value>
<value>430, 358</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Select Type</value>
@ -610,4 +682,4 @@ This type of network requires the vSwitch Controller to be running.</value>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>XenAdmin.Controls.XenTabPage, XenCenterMain, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
</root>

View File

@ -751,6 +751,12 @@
<Compile Include="Wizards\NewSRWizard_Pages\ChooseSrProvisioningPage.Designer.cs">
<DependentUpon>ChooseSrProvisioningPage.cs</DependentUpon>
</Compile>
<Compile Include="Wizards\NewNetworkWizard_Pages\NetWSriovDetails.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Wizards\NewNetworkWizard_Pages\NetWSriovDetails.Designer.cs">
<DependentUpon>NetWSriovDetails.cs</DependentUpon>
</Compile>
<Compile Include="Wizards\NewSRWizard_Pages\Frontends\CIFSFrontend.cs">
<SubType>UserControl</SubType>
</Compile>
@ -2161,6 +2167,15 @@
<EmbeddedResource Include="Wizards\NewSRWizard_Pages\ChooseSrProvisioningPage.zh-CN.resx">
<DependentUpon>ChooseSrProvisioningPage.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Wizards\NewNetworkWizard_Pages\NetWSriovDetails.ja.resx">
<DependentUpon>NetWSriovDetails.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Wizards\NewNetworkWizard_Pages\NetWSriovDetails.resx">
<DependentUpon>NetWSriovDetails.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Wizards\NewNetworkWizard_Pages\NetWSriovDetails.zh-CN.resx">
<DependentUpon>NetWSriovDetails.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Wizards\NewSRWizard_Pages\Frontends\CIFSFrontend.ja.resx">
<DependentUpon>CIFSFrontend.cs</DependentUpon>
</EmbeddedResource>
@ -6759,6 +6774,7 @@
</EmbeddedResource>
<EmbeddedResource Include="Wizards\GenericPages\TvmIpPage.resx">
<DependentUpon>TvmIpPage.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Wizards\NewVMWizard\Page_Template.zh-CN.resx">
<DependentUpon>Page_Template.cs</DependentUpon>

16
XenModel/packages.config Executable file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="JSON" version="1.0.1" targetFramework="net46" />
<package id="Microsoft.Web.Xdt" version="2.1.2" targetFramework="net46" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net46" />
<package id="NuGet.Client" version="4.2.0" targetFramework="net46" />
<package id="NuGet.Common" version="4.6.0" targetFramework="net46" />
<package id="NuGet.ContentModel" version="4.2.0" targetFramework="net46" />
<package id="NuGet.Core" version="2.14.0" targetFramework="net46" />
<package id="NuGet.Frameworks" version="4.6.0" targetFramework="net46" />
<package id="NuGet.Packaging" version="4.6.0" targetFramework="net46" />
<package id="NuGet.Packaging.Core" version="4.6.0" targetFramework="net46" />
<package id="NuGet.Repositories" version="4.2.0" targetFramework="net46" />
<package id="NuGet.RuntimeModel" version="4.2.0" targetFramework="net46" />
<package id="NuGet.Versioning" version="4.6.0" targetFramework="net46" />
</packages>

16
xva_verify/packages.config Executable file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="JSON" version="1.0.1" targetFramework="net46" />
<package id="Microsoft.Web.Xdt" version="2.1.2" targetFramework="net46" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net46" />
<package id="NuGet.Client" version="4.2.0" targetFramework="net46" />
<package id="NuGet.Common" version="4.6.0" targetFramework="net46" />
<package id="NuGet.ContentModel" version="4.2.0" targetFramework="net46" />
<package id="NuGet.Core" version="2.14.0" targetFramework="net46" />
<package id="NuGet.Frameworks" version="4.6.0" targetFramework="net46" />
<package id="NuGet.Packaging" version="4.6.0" targetFramework="net46" />
<package id="NuGet.Packaging.Core" version="4.6.0" targetFramework="net46" />
<package id="NuGet.Repositories" version="4.2.0" targetFramework="net46" />
<package id="NuGet.RuntimeModel" version="4.2.0" targetFramework="net46" />
<package id="NuGet.Versioning" version="4.6.0" targetFramework="net46" />
</packages>