<div dir="ltr"><div dir="ltr"><div class="gmail-gs" style="margin:0px;padding:0px 0px 20px;width:1120px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-"><div id="gmail-:1bs" class="gmail-ii gmail-gt gmail-adO" style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:1br" class="gmail-a3s gmail-aXjCH" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div dir="ltr">Dear <span style="color:rgb(85,85,85);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px">Qianjiang,</span>   <br><div><br></div><div><pre style="white-space:pre-wrap;padding:9.5px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:13px;border-radius:4px;margin-top:0px;margin-bottom:10px;line-height:20px;word-break:break-all;background-color:rgb(245,245,245);border:1px solid rgba(0,0,0,0.15)"><b><font color="#333333">system host-lock ${COMPUTE} 

#</font><font color="#0000ff">If the interface has been bound to other datanetwork, need to remove the binding.</font><font color="#333333">
system interface-datanetwork-list ${COMPUTE}
system interface-datanetwork-remove ${PHYSNETDATA0UUID}</font></b><span class="gmail-im" style="color:rgb(80,0,80)"><font color="#333333">

#Create a flat datanetwork and bind it to the interface.
system datanetwork-add phy-flat flat 
system host-if-modify -m 1500 -n data0 -c data ${COMPUTE} ${DATA0IFUUID} 
system interface-datanetwork-assign ${COMPUTE} ${DATA0IFUUID} phy-flat 
</font><font color="#0000ff">system host-unlock ${COMPUTE}</font></span></pre></div></div><br></div><div id="gmail-:1br" class="gmail-a3s gmail-aXjCH" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div>My Example:</div><div><br></div><div>[sysadmin@controller-0 ~(keystone_admin)]$ system host-if-list controller-0<br>+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+<br>| uuid                                 | name      | class           | type     | vlan | ports          | uses | used | attributes            |<br>|                                      |           |                 |          | id   |                | i/f  | by   |                       |<br>|                                      |           |                 |          |      |                |      | i/f  |                       |<br>+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+<br>| 5e6ab3c1-ff01-4ca9-b8c3-98984c9ab403 | lo        | platform        | virtual  | None | []             | []   | []   | MTU=1500              |<br>| a68ceee4-77d7-4ec1-a5f1-bf667b7fa7f7 | enp2s0    | platform        | ethernet | None | [u'enp2s0']    | []   | []   | MTU=1500              |<br>| e0b545f0-dc0d-4c6c-9327-0008191cf3e6 | enp3s0    | data            | ethernet | None | [u'enp3s0']    | []   | []   | MTU=1500,accelerated= |<br>|                                      |           |                 |          |      |                |      |      | True                  |<br>|                                      |           |                 |          |      |                |      |      |                       |<br>| fe0be665-6e66-4113-99b3-164374e40b17 | enp98s0f1 | pci-passthrough | ethernet | None | [u'enp98s0f1'] | []   | []   | MTU=1500              |<br>| ffb39ada-ef0a-4a19-87df-9998c5a23e11 | enp98s0f0 | pci-sriov       | ethernet | None | [u'enp98s0f0'] | []   | []   | MTU=1500              |<br>+--------------------------------------+-----------+-----------------+----------+------+----------------+------+------+-----------------------+<br>[sysadmin@controller-0 ~(keystone_admin)]$<br></div><div><br></div><div><br></div><div><span class="gmail-im" style="color:rgb(80,0,80)">[sysadmin@controller-0 ~(keystone_admin)]$ system datanetwork-list<br></span>+--------------------------------------+---------------+--------------+------+<br>| uuid                                 | name          | network_type | mtu  |<br>+--------------------------------------+---------------+--------------+------+<br>| b42f45d1-a474-47cc-b603-8c3b4e50189b | phy-flat      | flat         | 1500 |<br>| a772f2ee-4f45-4593-9aa2-e9d007b3ebb0 | physnet-pci   | flat         | 1500 |<br>| 322d1ff6-7446-48b3-810f-47cdde3d8b4a | physnet-sriov | flat         | 1500 |<br>+--------------------------------------+---------------+--------------+------+<br></div><span class="gmail-im" style="color:rgb(80,0,80)"><div><br></div><div>[sysadmin@controller-0 ~(keystone_admin)]$ system interface-datanetwork-list controller-0<br>+--------------+--------------------------------------+-----------+------------------+<br>| hostname     | uuid                                 | ifname    | datanetwork_name |<br>+--------------+--------------------------------------+-----------+------------------+<br>| controller-0 | 13e47f32-e9a4-4a33-9bc0-63c96e32bfb0 | enp98s0f1 | physnet-pci      |<br>| controller-0 | 6be1d6c2-01c2-45de-a319-4a6337375f7b | enp3s0    | phy-flat         |<br>| controller-0 | f4d817b4-97ca-40e2-a1df-7ef8d0640937 | enp98s0f0 | physnet-sriov    |<br>+--------------+--------------------------------------+-----------+------------------+<br></div><div><br></div></span><div>=============================================================================</div><div><br></div><div><br></div><div><span class="gmail-im" style="color:rgb(80,0,80)">controller-0:~$ export OS_CLOUD=openstack_helm<br>controller-0:~$ ADMINID=`openstack project list | grep admin | awk '{print $2}'`<br>controller-0:~$ openstack network create --project ${ADMINID} --provider-network-type=flat --provider-physical-network=phy-flat netflat<br></span>+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>| Field                     | Value                                                                                                                                                                                                     |<br>+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>| admin_state_up            | UP                                                                                                                                                                                                        |<br>| availability_zone_hints   |                                                                                                                                                                                                           |<br>| availability_zones        |                                                                                                                                                                                                           |<br>| created_at                | 2019-11-04T03:22:36Z                                                                                                                                                                                      |<br>| description               |                                                                                                                                                                                                           |<br>| dns_domain                | None                                                                                                                                                                                                      |<br>| id                        | 4916450b-f018-4065-ac7a-bfd1475afe17                                                                                                                                                                      |<br>| ipv4_address_scope        | None                                                                                                                                                                                                      |<br>| ipv6_address_scope        | None                                                                                                                                                                                                      |<br>| is_default                | False                                                                                                                                                                                                     |<br>| is_vlan_transparent       | False                                                                                                                                                                                                     |<br>| location                  | Munch({'project': Munch({'domain_name': 'default', 'domain_id': None, 'name': 'admin', 'id': u'9be757c8e5464416b41cd1bcdaca990e'}), 'cloud': 'openstack_helm', 'region_name': 'RegionOne', 'zone': None}) |<br>| mtu                       | 1500                                                                                                                                                                                                      |<br>| name                      | netflat                                                                                                                                                                                                   |<br>| port_security_enabled     | True                                                                                                                                                                                                      |<br>| project_id                | 9be757c8e5464416b41cd1bcdaca990e                                                                                                                                                                          |<br>| provider:network_type     | flat                                                                                                                                                                                                      |<br>| provider:physical_network | phy-flat                                                                                                                                                                                                  |<br>| provider:segmentation_id  | None                                                                                                                                                                                                      |<br>| qos_policy_id             | None                                                                                                                                                                                                      |<br>| revision_number           | 1                                                                                                                                                                                                         |<br>| router:external           | Internal                                                                                                                                                                                                  |<br>| segments                  | None                                                                                                                                                                                                      |<br>| shared                    | False                                                                                                                                                                                                     |<br>| status                    | ACTIVE                                                                                                                                                                                                    |<br>| subnets                   |                                                                                                                                                                                                           |<br>| tags                      |                                                                                                                                                                                                           |<br>| updated_at                | 2019-11-04T03:22:36Z                                                                                                                                                                                      |<br>+---------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+<br>controller-0:~$<br></div><div> </div><div><br></div><div><br></div></div><div id="gmail-:1br" class="gmail-a3s gmail-aXjCH" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><br></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14px;color:rgb(0,0,0)"><div style="line-height:20px;clear:both"><br></div></div></div></blockquote></div></div>
</blockquote></div>
</blockquote></div></div>