CPS API Network Configuration - amybuck/SONiC-NAS GitHub Wiki
The Network Adaptation Service (NAS) handles the networking functionality. The NAS daemon listens to netlink events for Layer 2 and Layer 3 configurations, and programs the NPU.
You have two available methods for network configuration — using the SONiC Object Library APIs or Linux commands (Linux native APIs).
Using SONiC Object Library APIs
- Interfaces — Physical, link aggregation, VLAN, fanout (4x10G) using scripts
- Layer 2 Bridging — LLDP, MAC address table, STP, VLAN
- Layer 3 Routing — ECMP, IPv4, IPv6, Unicast
- Security — QoS, ACL
- Monitoring — Port monitoring, sFlow, port and VLAN statistics
Using Linux Commands (Linux Native APIs)
- Interfaces — Physical, link aggregation (bond), VLAN
- Layer 2 Bridging — LLDP, STP, VLAN
- Layer 3 Routing — ECMP, IPv4, IPv6, Unicast
Unavailable Features using Linux Commands
- Fanout interface configuration
- Layer 2 MAC address table configuration
- QoS and ACL configuration
- Port monitoring, sFlow configuration, and port and VLAN statistics
Where to Start
Depending on your application needs, select a feature to configure.