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"}]}}