- 22
- 0
- 约1.17万字
- 约 7页
- 2016-12-03 发布于贵州
- 举报
neutrn-plugin-openvswitch-agent启动流程
neutron-plugin-openvswitch-agent启动流程
所有OVS命令的调用通过neutron-rootwrap
sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
The agent starts out by retrieving the IP information of the OVS integration bridge (br-int) local port. The MAC address returned is reformated for use as the suffix of the Neutron OVS agent’s ID.
ip -o link show br-int
If the br-tun patch port exists on the br-int bridge it is deleted.
ovs-vsctl --timeout=2 -- --if-exists del-port br-int patch-tun
Next any existing entries in the integration bridge flow table are deleted to ensure a clean environment and the first OpenFlow flow entry is added. The arguments hard_timeout and idle_timeout are set to 0 to ensure that the flow does not expire. Thepriority argument is set to 1 to ensure that other flows with a priority 1 will not act on a packet first. The actions=normalargument-value key-pair indicates that the default L2 processing performed by the Open vSwitch will occur.
ovs-ofctl del-flows br-int
ovs-ofctl add-flow br-int hard_timeout=0,idle_timeout=0,priority=1,actions=normal
If tunneling is enabled (as it is in this case) the setup_tunnel_br function definition is called to configure the tunnel bridge (br-tun). The neutron-plugin-openvswitch-agent requires a specific OVS switch and OpenFlow flow configuration to operate, to achieve the clean slate the existing br-tun switch is destroyed (if it existed) and then recreated.
ovs-vsctl --timeout=2 -- --if-exists del-br br-tun
vs-vsctl --timeout=2 add-br br-tun
Next the agent will add a new port to the br-int bridge…
ovs-vsctl --timeout=2 add-port br-int patch-tun
…configure the new port as a patch…
ovs-vsctl –timeout=2 set Interface patch-tun type=patch
…and assign the patch port to act as a peer to the patch-int port.
ovs-vsctl –timeout=2 set Interface patch-tun options:peer=patch-int
If ovs-vsctl show is executed now the OVS bridges will look like this. This is the base configuration for a Neutron node that is not
您可能关注的文档
最近下载
- 2026浙江嘉兴市申嘉有轨电车运营管理有限公司招聘工作人员7人笔试备考试题附答案解析.docx VIP
- 2026浙江嘉兴市申嘉有轨电车运营管理有限公司招聘工作人员7人笔试备考题库附答案解析.docx VIP
- 2026浙江嘉兴市申嘉有轨电车运营管理有限公司招聘工作人员7人考试参考题库附答案解析.docx VIP
- 2026浙江嘉兴市申嘉有轨电车运营管理有限公司招聘工作人员7人笔试参考题库附答案解析.docx VIP
- 北京地铁10号线二期01标起点~潘家园站的区间侧穿既有十号线施工方案汇报.ppt VIP
- 北京地铁十号线二期角门西站暗挖施工方案.docx VIP
- 2005年国家法律职业资格考试《客观题卷一》真题.doc VIP
- 2021上海春考语文卷解析(《刘铎传》和《见苏仁仲提举书》的全文翻译).pptx VIP
- 浙江省2025届九年级下学期中考模拟(六)数学试卷(含答案).pdf VIP
- 骨髓增生异常综合症护理查房.pptx VIP
原创力文档

文档评论(0)