Source code for aj.plugins.network.api

from jadi import interface


[docs]@interface class NetworkManager(): """ Abstract interface to manage all network managers. """ def __init__(self, context): self.context = context
[docs] def get_config(self): raise NotImplementedError
[docs] def set_config(self, config): raise NotImplementedError
[docs] def get_state(self, iface): raise NotImplementedError
[docs] def up(self, iface): raise NotImplementedError
[docs] def down(self, iface): raise NotImplementedError
[docs] def get_hostname(self): raise NotImplementedError
[docs] def set_hostname(self, value): raise NotImplementedError
[docs] def restart(self): raise NotImplementedError

Comments

comments powered by Disqus