{"id":18797795,"url":"https://github.com/networktocode/ntc-rosetta-conf","last_synced_at":"2025-04-13T16:32:23.747Z","repository":{"id":47030943,"uuid":"191575862","full_name":"networktocode/ntc-rosetta-conf","owner":"networktocode","description":"Restconf interface for rosetta","archived":false,"fork":false,"pushed_at":"2021-09-16T15:04:24.000Z","size":102,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":43,"default_branch":"develop","last_synced_at":"2025-03-27T07:48:04.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/networktocode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-12T13:24:51.000Z","updated_at":"2023-04-06T03:16:17.000Z","dependencies_parsed_at":"2022-08-26T10:50:51.980Z","dependency_job_id":null,"html_url":"https://github.com/networktocode/ntc-rosetta-conf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networktocode%2Fntc-rosetta-conf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networktocode%2Fntc-rosetta-conf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networktocode%2Fntc-rosetta-conf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networktocode%2Fntc-rosetta-conf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networktocode","download_url":"https://codeload.github.com/networktocode/ntc-rosetta-conf/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248743940,"owners_count":21154772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T22:09:36.604Z","updated_at":"2025-04-13T16:32:23.404Z","avatar_url":"https://github.com/networktocode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ntc-rosetta-conf\n\n`ntc-rosetta-conf` is a RESTCONF interface for [ntc-rosetta](https://github.com/networktocode/ntc-rosetta). This RESTCONF interface allows you to manipulate a candidate and running databases using supported models by `ntc-rosetta` and it also exposes a few RPC endpoints to translate, parse and merge configurations.\n\n## Installing\n\nThis python package is available through pip so you can install with the following command:\n\n```\npip install ntc-rosetta-conf\n```\n\n## Documentation\n\nDocumentation and tutorials are available in [rtd](https://ntc-rosetta-conf.readthedocs.io).\n\n## Quick example\n\n### Starting the restconf interface\n\n```\n$ ntc-rosetta-conf serve \\\n  --datamodel openconfig \\\n  --pid-file /tmp/ntc-rosetta-conf-demo.pid \\\n  --log-level debug \\\n  --data-file data.json \\\n  --port 8443 \\\n  --ssl-crt pki_auto_generated_dir/server_ca/certs/rtr00.lab.local.crt \\\n  --ssl-key pki_auto_generated_dir/server_ca/keys/rtr00.lab.local.key \\\n  --ca-crt pki_auto_generated_dir/client_ca/certs/client_ca.crt\n```\n\n### Consuming the restconf interface\n\n```\n$ curl --http2 -k --cert-type PEM -E $USER_CERT \\\n    -X GET \\\n    https://localhost:8443/restconf/data/openconfig-interfaces:interfaces\n{\n    \"openconfig-interfaces:interfaces\": {\n        \"interface\": [\n            {\n                \"name\": \"eth0\",\n                \"config\": {\n                    \"name\": \"eth0\",\n                    \"description\": \"an interface description\",\n                    \"type\": \"iana-if-type:ethernetCsmacd\"\n                }\n            },\n            {\n                \"name\": \"eth1\",\n                \"config\": {\n                    \"name\": \"eth1\",\n                    \"description\": \"another interface\",\n                    \"type\": \"iana-if-type:ethernetCsmacd\"\n                }\n            }\n        ]\n    }\n}\n$ curl -s --http2 -k --cert-type PEM -E $USER_CERT \\\n    -X POST \\\n    -d @docs/tutorials/4_translate/translate_running.json \\\n    $BASE_URL/restconf/operations/ntc-rosetta-conf:translate | jq -r \".native\"\n\ninterface eth0\n   description an interface description\n   exit\n!\ninterface eth1\n   description another interface\n   exit\n!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworktocode%2Fntc-rosetta-conf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworktocode%2Fntc-rosetta-conf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworktocode%2Fntc-rosetta-conf/lists"}