yanet-platform / yanet

A high performance framework for forwarding traffic based on DPDK
Other
164 stars 17 forks source link

Control plane workers config parsing #180

Open TheRandomCharacter opened 2 months ago

TheRandomCharacter commented 2 months ago

Adds parsing of control plane workers configuration from config file. Expected config file section is:

"controlPlaneWorkers": [
    {
        "core" : 42,
        "interfaces": [ <interface_name_string> ]
    }
]

In case section is not present, configuration for single control plane worker, responsible for all dataplane interfaces and residing on controlPlaneCoreId is generated. This Is done to ease transition on already deployed appliances.

Section is checked for

ol-imorozko commented 2 months ago

Could you also add the description to the commit message?

TheRandomCharacter commented 2 months ago

Fixed the logic and reworked it to configuration in terms of interface names, not dpdk port ids.

GeorgyKirichenko commented 2 months ago

Good enough but I would prefer to wait with this until the whole work is done. Also we have to document the configuration changes