Acked-by: Sairam Venugopal <vsai...@vmware.com>
On 9/23/15, 11:52 AM, "Sorin Vinturis" <svintu...@cloudbasesolutions.com> wrote: >Acked-by: Sorin Vinturis <svintu...@cloudbasesolutions.com> > > > >-----Original Message----- > >From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Alin Serdean > >Sent: Wednesday, 23 September, 2015 03:46 > >To: dev@openvswitch.org > >Subject: [ovs-dev] [PATCH] datapath-windows: Update documentation > > > >Commit ID:7845b70384d75bd7d753648cb547be5c6c75ddca changed the hardcoded >names of 'internal' and 'external.1'. > > > >This patch updates the documentation to accomodate the patches. > > > >Signed-off-by: Alin Gabriel Serdean <aserd...@cloudbasesolutions.com> > >--- > >This patch is intended for branch-2.4 as well > >--- > > INSTALL.Windows.md | 71 >++++++++++++++++++++++++++++++++++++------------------ > > 1 file changed, 47 insertions(+), 24 deletions(-) > > > >diff --git a/INSTALL.Windows.md b/INSTALL.Windows.md index >6d870ed..2119842 100644 > >--- a/INSTALL.Windows.md > >+++ b/INSTALL.Windows.md > >@@ -263,21 +263,43 @@ ovs-vswitchd by running 'ovs-appctl exit'.) > > > > 07> Add the physical NIC and the internal port to br-pif. > > > >-In OVS for Hyper-V, we use 'external' as a special name to refer to the >-physical NICs connected to the Hyper-V switch. An index is added to >this -special name to refer to the particular physical NIC. Eg. >'external.1' refers -to the first physical NIC on the Hyper-V switch. > >+In OVS for Hyper-V, we use the name of the adapter on top of which the > >+Hyper-V virtual switch was created, as a special name to refer to the > >+physical NICs connected to the Hyper-V switch. I.e. let us suppose we > >+created the Hyper-V virtual switch on top of the adapter named > >+'Ethernet0'. In OVS for Hyper-V, we use that name('Ethernet0') as a >special name to refer to that adapter. > > > > Note: Currently, we assume that the Hyper-V switch on which OVS >extension is enabled has a single physical NIC connected to it. > > > >-Interal port is the virtual adapter created on the Hyper-V switch using >the > >+Internal port is the virtual adapter created on the Hyper-V switch > >+using the > > 'AllowManagementOS' setting. This has already been setup while creating >the -switch using the instructions above. In OVS for Hyper-V, we use a >'internal' > >-as a special name to refer to that adapter. > >+switch using the instructions above. In OVS for Hyper-V, we use a the > >+name of that specific adapter as a special name to refer to that > >+adapter. By default it is created under the following rule "vEthernet >(<name of the switch>)". > > > >- % ovs-vsctl add-port br-pif external.1 > >- % ovs-vsctl add-port br-pif internal > >+As a whole example, if we issue the following in a powershell console: > >+PS C:\package\binaries> Get-NetAdapter | select > >+Name,MacAddress,InterfaceDescription > >+ > >+Name MacAddress InterfaceDescription > >+---- ---------- -------------------- > >+Ethernet1 00-0C-29-94-05-65 Intel(R) PRO/1000 MT Network >Connection > >+vEthernet (external) 00-0C-29-94-05-5B Hyper-V Virtual Ethernet >Adapter #2 > >+Ethernet0 00-0C-29-94-05-5B Intel(R) PRO/1000 MT Network >Connection #2 > >+ > >+PS C:\package\binaries> Get-VMSwitch > >+ > >+Name SwitchType NetAdapterInterfaceDescription > >+---- ---------- ------------------------------ > >+external External Intel(R) PRO/1000 MT Network Connection #2 > >+ > >+ > >+We can see that we have a switch(external) created upon adapter name >'Ethernet0' > >+with an internal port under name 'vEthernet (external)'. Thus resulting > >+into the following ovs-vsctl commands > >+ > >+ % ovs-vsctl add-port br-pif Ethernet0 > >+ % ovs-vsctl add-port br-pif "vEthernet (external)" > > > > * Dumping the ports should show the additional ports that were just >added. > > Sample output shows up as follows: > >@@ -286,22 +308,23 @@ as a special name to refer to that adapter. > > system@ovs-system: > > lookups: hit:0 missed:0 lost:0 > > flows: 0 > >- port 4: internal (internal) <<< 'AllowManagementOS' >adapter on > >- Hyper-V switch > >+ port 4: vEthernet (external) (internal) <<< >'AllowManagementOS' > >+ adapter on > >+ Hyper-V switch > > port 2: br-pif (internal) > >- port 1: br-int (internal > >- port 3: external.1 <<< Physical NIC > >+ port 1: br-int (internal) > >+ port 3: Ethernet0 <<< Physical NIC > > > > % ovs-vsctl show > > a56ec7b5-5b1f-49ec-a795-79f6eb63228b > > Bridge br-pif > >- Port internal > >- Interface internal > >+ Port "vEthernet (external)" > >+ Interface "vEthernet (external)" > > Port br-pif > > Interface br-pif > > type: internal > >- Port "external.1" > >- Interface "external.1" > >+ Port "Ethernet0" > >+ Interface "Ethernet0" > > Bridge br-int > > Port br-int > > Interface br-int > >@@ -342,19 +365,19 @@ with OVS extension enabled. > > system@ovs-system: > > lookups: hit:0 missed:0 lost:0 > > flows: 0 > >- port 4: internal (internal) > >+ port 4: vEthernet (external) (internal) > > port 5: ovs-port-a > > port 2: br-pif (internal) > > port 1: br-int (internal > >- port 3: external.1 > >+ port 3: Ethernet0 > > > > % ovs-vsctl show > > 4cd86499-74df-48bd-a64d-8d115b12a9f2 > > Bridge br-pif > >- Port internal > >- Interface internal > >- Port "external.1" > >- Interface "external.1" > >+ Port "vEthernet (external)" > >+ Interface "vEthernet (external)" > >+ Port "Ethernet0" > >+ Interface "Ethernet0" > > Port br-pif > > Interface br-pif > > type: internal > >@@ -410,7 +433,7 @@ prior to adding tunnels. > > % ovs-vsctl set Interface tun-2 options:in_key=flow > > % ovs-vsctl set Interface tun-2 options:out_key=flow > > > >- Where port-type is the string stt or vxlan > >+ Where port-type is the string stt or vxlan > > > > > > Requirements > >-- > >1.9.5.msysgit.0 > >_______________________________________________ > >dev mailing list > >dev@openvswitch.org > >https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailma >n_listinfo_dev&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Dc >ruz40PROJ40ROzSpxyQSLw6fcrOWpJgEcEmNR3JEQ&m=xpBtRLc_agSXgmmtF0bdgEloSIHnhs >Wby5lRCjmA1go&s=46UOgOyulpTnX69fUrkOhrwrp4y2F3LPz0VtskEr2pE&e= > >_______________________________________________ >dev mailing list >dev@openvswitch.org >https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailma >n_listinfo_dev&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Dc >ruz40PROJ40ROzSpxyQSLw6fcrOWpJgEcEmNR3JEQ&m=xpBtRLc_agSXgmmtF0bdgEloSIHnhs >Wby5lRCjmA1go&s=46UOgOyulpTnX69fUrkOhrwrp4y2F3LPz0VtskEr2pE&e= _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev