Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert common create/delete code to classes. #14

Open
0lvin opened this issue Oct 22, 2018 · 0 comments
Open

Convert common create/delete code to classes. #14

0lvin opened this issue Oct 22, 2018 · 0 comments
Assignees

Comments

@0lvin
Copy link
Contributor

0lvin commented Oct 22, 2018

Create class like:

class LibVirtObject(Object):
    def _search(object_name):
        # networkLookupByName - network
        # lookupByName - domain
        # storagePoolLookupByName - pool
        pass

   def create(properties):
        pass

   def delete(properties):
        pass

class LibVirtNetwork(LibVirtObject):
    def _search(object_name):
        # networkLookupByName - network
        pass             
    ....
@0lvin 0lvin self-assigned this Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant