2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00
2018-02-23 00:37:42 -05:00

43 lines
1.3 KiB
Python

#!/usr/bin/env python
###############################################################################
# IBM(c) 2018 EPL license http://www.eclipse.org/legal/epl-v10.html
###############################################################################
# -*- coding: utf-8 -*-
#
class BmcConfigInterface(object):
"""Interface for bmc configuration related actions."""
interface_type = 'bmcconfig'
version = '1.0'
def dump_list(self, task):
return task.run('dump_list')
def dump_generate(self, task):
return task.run("dump_generate")
def dump_clear(self, task, clear_arg):
return task.run("dump_clear", clear_arg)
def dump_download(self, task, download_arg):
return task.run("dump_download", download_arg)
def dump_process(self, task):
return task.run("dump_process")
def set_sshcfg(self, task):
return task.run("set_sshcfg")
def set_ipdhcp(self, task):
return task.run("set_ipdhcp")
def get_attributes(self, task, attributes):
return task.run("get_attributes", attributes)
def set_attributes(self, task, attributes):
return task.run("set_attributes", attributes)
class DefaultBmcConfigManager(BmcConfigInterface):
"""Interface for BmcConfig actions."""
pass