advertised-speed here is one or more speeds from valid_speeds properties of interface.
[x] DB Update
For updating the database with the changes done with payload above a subsequent Subscription Notification is received by ORCA (respective gNMI path is already subscribed in orca_nw_lib) a sample notification (for the command - sonic(config-if-Ethernet0)# speed auto 1000,10000)is as follows :
As soon as the notification is received, the parameters from the notification JSON needs to be retrieved and interface in the Neo4j Database needs to be updated, refer gnmi_sub.py
[x] UI
UI need to provide provision for enabling, disabling autoneg also for selecting adv_speeds (can be more than one.)
[x] Test
Testcase in orca_backend for testing autoneg configuration.
Autonegotiation (autoneg) can be configured at following path -/restconf/data/openconfig-interfaces:interfaces Payload -
advertised-speed here is one or more speeds from valid_speeds properties of interface.
For updating the database with the changes done with payload above a subsequent Subscription Notification is received by ORCA (respective gNMI path is already subscribed in orca_nw_lib) a sample notification (for the command -
sonic(config-if-Ethernet0)# speed auto 1000,10000
)is as follows :As soon as the notification is received, the parameters from the notification JSON needs to be retrieved and interface in the Neo4j Database needs to be updated, refer gnmi_sub.py
UI need to provide provision for enabling, disabling autoneg also for selecting adv_speeds (can be more than one.)
Testcase in orca_backend for testing autoneg configuration.