open-switch / opx-cps

https://openswitch.net
6 stars 15 forks source link

How to apply low-level switch configuration via CPS API #101

Closed jimmymagemtek closed 5 years ago

jimmymagemtek commented 6 years ago

Hi I need to do very low level configuration to switch directly, like changing next hop table, routing table, ACL or doing VLAN management. It seems to mean bypassing high level abstraction provided by OPX stack - CPS API.

In other words, the semantics of my configuration is closer to SAI. Can I do it via CPS API programming ?

Is there any sample code for reference ?

Any suggestion is appreciated.

Jimmy

jeff-yin commented 5 years ago

Hi Jimmy, unfortunately we don't support programming the NPU via methods outside of the CPS API or Linux networking stack. CPS doesn't provide a way to directly invoke SAI. You'll have to check the SAI documentation with that project.