- Create a file with the name of the provider under
rackops/providers/ - Implement a provider class inheriting
ProviderBasewhich is defined inrackops/providers/base.py. The provider class is required to implement all methods that raise aNonImplementedErroronProviderBase. The provider class can also override methods defined onProviderBaseif they don't apply to the provider implemented. - Import the new provider class on
rackops/rackops.pyand add a mapping between the provider name and the provider class on the_providers_tablemethod.
- Create a file with the name of the host under
rackops/hosts/ - Implement a host class inheriting
HostBasewhich is defined inrackops/hosts/base.py. The host class is required to implement all methods that raise aNonImplementedErroron theHostBaseclass. Same as with providers, other methods can be overrided. - Import the new host class on
rackops/rackops.pyand add a mapping between the host name and the host class on the_hosts_tablemethod.