How to install OF-DPA in Edgecore Switches

Introduction to Broadcom OF-DPA

Broadcom’s OpenFlow Data Plane Abstraction (OF-DPA) is an application software component that implements an adaptation layer between OpenFlow and the Broadcom Silicon SDK. OF-DPA enables scalable implementation of OpenFlow 1.3.4 on Broadcom switch devices.

Support Platform

Download OF-DPA Package

We provide 2 different sources:

  • Private version
    • Please contact Broadcom team
  • Community version (latest: ofdpa_3.0.5.5+accton1.7-1_amd64.deb a.k.a 3.0-EA5)

Install OF-DPA Package

  1. Copy OF-DPA package to switch

    1
    scp ofdpa_3.0.5.5+accton1.7-1_amd64.deb root@192.168.100.137:/mnt/onl/data/
  2. Install OF-DPA package

    1
    dpkg -i --force-overwrite /mnt/onl/data/ofdpa_3.0.5.5+accton1.7-1_amd64.deb

Start OFAgent

1
service ofagentd restart

Stop OFAgent

1
service ofagentd stop

List of CLI instructions

1
2
3
4
5
6
7
8
9
10
root@edgecore-networks-onl:~# /usr/bin/ofdpa/examples
$ ls
client_cfg_purge client_grouptable_dump ofdpa_mplsl3vpn.py ofdpa_routing.py
client_classcolortable_dump client_meter_dump ofdpa_mpls_lsr_ecmp.py ofdpa_snake.py
client_debugcomp client_oam_dump ofdpa_mpls_lsr.py ofdpa_srcmac_learn.py
client_debuglvl client_port_table_dump ofdpa_pktrx_setup.py ofdpa_vxlan.py
client_drivport client_queue_config ofdpa_pktrxtx.py ofdpa_vxlan-scale.py
client_drivshell client_sflow OFDPA_python.py
client_event client_tunnel_dump OFDPA_python.pyc
client_flowtable_dump ofdpa_bridging.py _OFDPA_python.so
  • All files are in /usr/bin/ofdpa/examples

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
root@edgecore-networks-onl:~# onl-platform-show |grep "Platform Name"
Platform Name: x86_64-accton_as5712_54x-r0

root@edgecore-networks-onl:~# ls /mnt/onl/data/ofdpa_3.0.4.0+accton1.7-3-1_amd64.deb
/mnt/onl/data/ofdpa_3.0.4.0+accton1.7-3-1_amd64.deb

root@edgecore-networks-onl:~# dpkg -i --force-overwrite /mnt/onl/data/ofdpa_3.0.4.0+accton1.7-3-1_amd64.deb
(Reading database ... 18100 files and directories currently installed.)
Preparing to unpack .../ofdpa_3.0.4.0+accton1.7-3-1_amd64.deb ...
Unpacking ofdpa (3.0.4.0+accton1.7~3-1) over (3.0.4.0+accton1.7~3-1) ...
Setting up ofdpa (3.0.4.0+accton1.7~3-1) ...
/
Processing triggers for libc-bin (2.19-18+deb8u6) ...

Reference