Ejemplo n.º 1
0
class VnsTasklet(rift.vcs.core.Tasklet):
    """
    This class represents a network services manager tasklet.
    """
    def __init__(
        self,
        name='virtual-network-service',
        uid=None,
        config_ready=True,
        recovery_action=core.RecoveryType.FAILCRITICAL.value,
        data_storetype=core.DataStore.NOSTORE.value,
    ):
        """
        Creates a VnsTasklet object.

        Arguments:
            name  - the name of the tasklet
            uid   - a unique identifier
        """
        super(VnsTasklet, self).__init__(
            name=name,
            uid=uid,
            config_ready=config_ready,
            recovery_action=recovery_action,
            data_storetype=data_storetype,
        )

    plugin_directory = ClassProperty('./usr/lib/rift/plugins/rwvnstasklet')
    plugin_name = ClassProperty('rwvnstasklet')
Ejemplo n.º 2
0
class ConfigManagerTasklet(rift.vcs.core.Tasklet):
    """
    This class represents a Resource Manager tasklet.
    """
    def __init__(
        self,
        name='Configuration-Manager',
        uid=None,
        config_ready=True,
        recovery_action=core.RecoveryType.FAILCRITICAL.value,
        data_storetype=core.DataStore.NOSTORE.value,
    ):
        """
        Creates a ConfigManagerTasklet object.

        Arguments:
            name  - the name of the tasklet
            uid   - a unique identifier
        """
        super(ConfigManagerTasklet, self).__init__(
            name=name,
            uid=uid,
            config_ready=config_ready,
            recovery_action=recovery_action,
            data_storetype=data_storetype,
        )

    plugin_directory = ClassProperty('./usr/lib/rift/plugins/rwconmantasklet')
    plugin_name = ClassProperty('rwconmantasklet')
Ejemplo n.º 3
0
class MonitorTasklet(rift.vcs.core.Tasklet):
    """
    This class represents a tasklet that is used to monitor NFVI metrics.
    """
    def __init__(
        self,
        name='nfvi-metrics-monitor',
        uid=None,
        config_ready=True,
        recovery_action=core.RecoveryType.FAILCRITICAL.value,
        data_storetype=core.DataStore.NOSTORE.value,
    ):
        """
        Creates a MonitorTasklet object.

        Arguments:
            name  - the name of the tasklet
            uid   - a unique identifier

        """
        super(MonitorTasklet, self).__init__(
            name=name,
            uid=uid,
            config_ready=config_ready,
            recovery_action=recovery_action,
            data_storetype=data_storetype,
        )

    plugin_directory = ClassProperty('./usr/lib/rift/plugins/rwmonitor')
    plugin_name = ClassProperty('rwmonitor')
Ejemplo n.º 4
0
class ConfigManagerTasklet(rift.vcs.core.Tasklet):
    """
    This class represents SO tasklet.
    """
    def __init__(self, name='rwcmtasklet', uid=None):
        """
        Creates a PingTasklet object.

        Arguments:
            name  - the name of the tasklet
            uid   - a unique identifier
        """
        super(ConfigManagerTasklet, self).__init__(name=name, uid=uid)

    plugin_directory = ClassProperty('./usr/lib/rift/plugins/rwconmantasklet')
    plugin_name = ClassProperty('rwconmantasklet')
Ejemplo n.º 5
0
class TestTasklet(rift.vcs.Tasklet):
    """
    This class represents a TestTasklet for uagent UT framework.
    """
    def __init__(self, name="RW.TestTasklet", uid=None):
        """Creates a TestTasklet object.

        Arguments:
            name - the name of the tasklet
            uid  - a unique identifier

        """
        super(TestTasklet, self).__init__(name=name, uid=uid)

    plugin_name = ClassProperty("testtasklet")
    plugin_directory = ClassProperty("./usr/lib/rift/plugins/testtasklet")