I tried to update the
import.mk file when using sonic-buildimage,
but when using gnmi with 'get_capabilities', the list remains the same.
{ 'gnmi_version': '0.7.0',
'supported_encodings': ['json', 'json_ietf', 'proto'],
'supported_models': [ { 'name': 'openconfig-acl',
'organization': 'OpenConfig working group',
'version': '1.0.2'},
{ 'name': 'openconfig-acl',
'organization': 'OpenConfig working group',
'version': ''},
{ 'name': 'openconfig-sampling-sflow',
'organization': 'OpenConfig working group',
'version': ''},
{ 'name': 'openconfig-interfaces',
'organization': 'OpenConfig working group',
'version': ''},
{ 'name': 'openconfig-lldp',
'organization': 'OpenConfig working group',
'version': '1.0.2'},
{ 'name': 'openconfig-platform',
'organization': 'OpenConfig working group',
'version': '1.0.2'},
{ 'name': 'openconfig-system',
'organization': 'OpenConfig working group',
'version': '1.0.2'},
{ 'name': 'ietf-yang-library',
'organization': 'IETF NETCONF (Network '
'Configuration) Working Group',
'version': '2016-06-21'},
{ 'name': 'sonic-db',
'organization': 'SONiC',
'version': '0.1.0'}]
}
From your previous post I noticed Jeff Yin seems knowledgable on the topic, maybe he could point us, what is currently possible and what is not?
I tried to use the sonic-db model that is at revision 0.1.0. I do not know, where the model files for that are or if they are updated. I can update some data via sonic-db model, but it is buggy. E.g. NTP_SERVER conf is set, but i get an error message back, even though it does set the config. I have created an issue aswell:
https://github.com/sonic-net/sonic-gnmi/issues/238
openconfig-interfaces seems to work aswell. Others not-so-much. openconfig-acl responds, but returns an empty dict always.
Also try to use encoding 'json_ietf'. Encoding json returned weird errors aswell. And proto seems something lower level and I do not know what is the format for configuring that way.
sonic-db:CONFIG_DB/VLAN and sonic-db:CONFIB_DB/PORTCHANNEL seem to missing also.
Does this mean the sonic-mgmt-common is the part where they are implemented from the docs?