Unable to connect to SONiC Management framework container using REST client

59 views
Skip to first unread message

purnimalahari yeggina

unread,
Apr 23, 2023, 11:43:00 PM4/23/23
to sonic-mgmt-workgroup
Hi All,

I added/  a new Sonic yang model.
Defined the Sonic yang model, as per the Sonic guidlines.
Added corresponding test entry in sample_config_db.json (this test passes)

Now I am trying to connect to SONiC Management framework through CLI from linux host using curl with an vs image but when I am trying from linuxhost through curl command which is
curl -u root:admin234 -H "Content-Type: application/yang-data+json" -k -X GET "https://172.30.25.101/restconf/data/openconfig-system:system/config/hostname"

showing this error
{"ietf-restconf:errors":{"error":[{"error-type":"protocol","error-tag":"access-denied"}]}}
following the procedure , which is attached in this mail
MicrosoftTeams-image (10).png
How can i resolve this issue and connect to SONiC Management framework container through REST client using curl ? Can anyone please suggest regarding this issue?

Thanks & Regards,
Purnima
Reply all
Reply to author
Forward
0 new messages