Beispiel #1
0
 def get_actions(self):
     """Return the actions the extension adds, as required by contract."""
     actions = [extensions.ActionExtension("servers", "os-getVNCConsole",
                                           self.get_vnc_console),
                extensions.ActionExtension("servers", "os-getSPICEConsole",
                                           self.get_spice_console)]
     return actions
 def get_actions(self):
     actions = []
     actions.append(extensions.ActionExtension('servers', 'add_tweedle',
                                                 self._add_tweedle))
     actions.append(extensions.ActionExtension('servers', 'delete_tweedle',
                                                 self._delete_tweedle))
     return actions
Beispiel #3
0
    def get_actions(self):
        """Return the actions the extension adds, as required by contract."""
        actions = [
            exts.ActionExtension("servers", "rescue", self._rescue),
            exts.ActionExtension("servers", "unrescue", self._unrescue),
        ]

        return actions
 def get_actions(self):
     """Return the actions the extensions adds"""
     actions = [
             extensions.ActionExtension("servers", "addSecurityGroup",
                                        self._addSecurityGroup),
             extensions.ActionExtension("servers", "removeSecurityGroup",
                                        self._removeSecurityGroup)
                ]
     return actions
Beispiel #5
0
    def get_actions(self):
        """Return the actions the extension adds, as required by contract."""
        actions = [
                extensions.ActionExtension("servers", "addFloatingIp",
                                            self._add_floating_ip),
                extensions.ActionExtension("servers", "removeFloatingIp",
                                            self._remove_floating_ip),
        ]

        return actions
Beispiel #6
0
    def get_actions(self):
        """Return the actions the extension adds, as required by contract."""

        actions = []

        # Add the add_fixed_ip action
        act = extensions.ActionExtension("servers", "addFixedIp",
                                         self._add_fixed_ip)
        actions.append(act)

        # Add the remove_fixed_ip action
        act = extensions.ActionExtension("servers", "removeFixedIp",
                                         self._remove_fixed_ip)
        actions.append(act)

        return actions