{"id":27958150,"url":"https://github.com/ericsson/unify-virtualizer","last_synced_at":"2025-08-31T12:05:43.688Z","repository":{"id":70059619,"uuid":"46706159","full_name":"Ericsson/unify-virtualizer","owner":"Ericsson","description":"EU-FP7-UNIFY's virtualizer library implemented in Python","archived":false,"fork":false,"pushed_at":"2015-11-23T08:24:13.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-29T20:39:04.331Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ericsson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-23T08:17:47.000Z","updated_at":"2019-11-26T15:15:47.000Z","dependencies_parsed_at":"2023-03-09T23:42:50.888Z","dependency_job_id":null,"html_url":"https://github.com/Ericsson/unify-virtualizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ericsson/unify-virtualizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Funify-virtualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Funify-virtualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Funify-virtualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Funify-virtualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ericsson","download_url":"https://codeload.github.com/Ericsson/unify-virtualizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Funify-virtualizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272977009,"owners_count":25025044,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-05-07T18:16:34.366Z","updated_at":"2025-08-31T12:05:43.626Z","avatar_url":"https://github.com/Ericsson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nThis module is a Virtualizer data model implementation example library in Python for the [EU-FP7-UNIFY](http://fp7-unify.eu/) project.\n\nThe Virtualizer YANG model was presented in [draft-unify-nfvrg-recursive-programming](https://tools.ietf.org/html/draft-unify-nfvrg-recursive-programming).\n\nThe main goal of the library was to provide a common interface between components from various partners, by realizing the Sl-Or UNIFY reference point according to the Virtualizer YANG model.\nFurther expectations on the library were:\n* Realize the elements of the Yang model by Python Objects\n* Parse an entire Virtualizer instance from XML\n* Dump an entire Virtualizer instance to XML\n* Support main Netconf abstractions\n* Support workflows, like: get config, edit config, diff config\n* Support working with full configurations as well as partial updates to existing configurations\n* Support easy access to components of an object (e.g. flow entries of a flow table)\n* Support walking in the structure (e.g. from a port of a flow entry to the NF to which the port belongs to)\n\nThe library consists of two main files:\n* virtualizer3.py: contains the Virtualizer object structure. This is autogenerated from the virtualizer3.yang module.\n* baseclasses.py: contains the common components for the library, like the base Yang class for generic parsing, comparison, etc.\n\n# Usage examples\n* A = Virtualizer(): init an empty virtualizer object\n* B = Virtualizer.parse(xml): to parse an instance from an XML input (file or string)\n* B.xml(): to dump an instance to an XML string, e.g., for netconf operation\n* B.reduce(A): remove all objects from B, which exist in A (create a canonical form)\n* B.bind(A): resolve lefrefs; copy missing targets from A to B if needed\n* A.merge(B): update A with changes from B; netconf operations are copied without execution\n* C = A.diff(B): return a diff to go from A to B\n* A.patch(C): apply C on A, i.e., A.patch(A.diff(B)) == B\n\n# Additional information\n\n* [UNIFY Deliverables](http://fp7-unify.eu/index.php/results.html#Deliverables)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Funify-virtualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericsson%2Funify-virtualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Funify-virtualizer/lists"}