neutrn-plugin-openvswitch-agent启动流程.docVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档