openswitch 编译记录

From link。OVS is feature rich with different configuration commands, but the majority of your configuration and troubleshooting can be accomplished with the following 4 commands:

  • ovs-vsctl : Used for configuring the ovs-vswitchd configuration database (known as ovs-db)
  • ovs-ofctl : A command line tool for monitoring and administering OpenFlow switches
  • ovs-dpctl : Used to administer Open vSwitch datapaths
  • ovs−appctl : Used for querying and controlling Open vSwitch daemons

编译步骤

  • 安装依赖软件包,在 Ubuntu 14.04 上的依赖软件包有:
    • screen
    • chrpath
    • device_tree_compiler
    • gawk
    • makeinfo,软件包名字是 texinfo
1
sudo apt-get install screen chrpath device_tree_compiler gawk texinfo
  • 下载 ops-build
1
2
git clone https://git.openswitch.net/openswitch/ops-build [<directory>]
cd <directory>
  • 配置 openswitch 产品
1
make configure genericx86-64
  • 编译产品
    注意需要编译较长时间。
1
make
  • 部署产品
    XXX: todo