Hi,
Greetings of the day!
The REST API for openconfig-system seems not implemented. Any REST query for openconfig-system fails with the below error.
QUERY:
=======
curl -X GET "https://<IP-address>/restconf/data/openconfig-system:system" -H "accept: application/yang-data+json"
ERROR:
=======
{
"ietf-restconf:errors": {
"error": [
{
"error-type": "application",
"error-tag": "operation-failed"
}
]
}
}
The /var/log/syslog says 'Not implemented'.
SYSLOG:
========
Oct 4 16:23:19.743647 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.742176 17 handler.go:47] [REST-5] GET /restconf/data/openconfig-system:system; content-len=0
Oct 4 16:23:19.751944 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.748903 17 handler.go:122] [REST-5] No body
Oct 4 16:23:19.751944 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.750880 17 translib.go:491] Received Get request for path = /openconfig-system:system
Oct 4 16:23:19.759524 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.750979 17 app_interface.go:129] getAppModule called for path =/openconfig-system:system
Oct 4 16:23:19.766901 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.757951 17 app_interface.go:136] found the entry in the map for path =/openconfig-system:system
Oct 4 16:23:19.766901 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.758060 17 app_interface.go:164] cast to appInterface worked&{<nil> [] <nil> <nil> <nil> <nil> map[] map[]}
Oct 4 16:23:19.771517 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.763822 17 sys_app.go:63] SysApp: initialize:if:path =/openconfig-system:system
Oct 4 16:23:19.776809 sonic INFO mgmt-framework#/supervisord: rest-server W1004 16:23:19.765432 17 db.go:346] TableNameSeparator '|' in the Options is different from the one configured in the Db config. file for the Db name LOGLEVEL_DB
Oct 4 16:23:19.776809 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.765583 17 db.go:394] NewDB: Init indication not requested
Oct 4 16:23:19.779384 sonic INFO mgmt-framework#/supervisord: rest-server W1004 16:23:19.765628 17 db.go:346] TableNameSeparator '|' in the Options is different from the one configured in the Db config. file for the Db name FLEX_COUNTER_DB
Oct 4 16:23:19.786132 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.765707 17 sys_app.go:122] SysApp: translateGet:intf:path =&{/openconfig-system:system /openconfig-system:system map[]}
Oct 4 16:23:19.786132 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.765794 17 sys_app.go:256] SysApp: processGet Path: /openconfig-system:system
Oct 4 16:23:19.865861 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.863375 17 sys_app.go:314] targetUriPath : /openconfig-system:systemArgs: map[]
Oct 4 16:23:19.868890 sonic INFO mgmt-framework#/supervisord: rest-server W1004 16:23:19.867311 17 handler.go:70] [REST-5] Translib error *errors.errorString - Not implemented processGet, path:
Oct 4 16:23:19.870889 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.869871 17 handler.go:90] [REST-5] Sending response 500, type=application/yang-data+json, size=96
Oct 4 16:23:19.873789 sonic INFO mgmt-framework#/supervisord: rest-server I1004 16:23:19.872741 17 router.go:455] [REST-5] GetOpenconfigSystemSystem took 299.07808ms
Please point me to a fix or solution. Or if there is a team already working on the module, then I would like to join the team and contribute to the community.
I made sure that my build and setup works by querying the REST API queries in openconfig-interfaces, and they worked fine. The issue is with APIs in openconfig-system.
Thanks,
Balaji Rajavelu