def main_function(self):

        # create Outside Firmware Source
        self.look_up_mo('uni/fabric/fwrepop', '')
        createOutsideFirmwareSource.create_outside_firmware_source(self.mo, self.firmware_source['name'], optional_args=return_valid_optional_args(self.firmware_source))
        self.commit_change()

        # upgrade controller firmware policy
        self.look_up_mo('uni/controller', '')
        upgradeControllerFirmwarePolicy.upgrade_controller_firmware_policy(self.mo, optional_args=self.upgrade_controller_firmware_policy)
Ejemplo n.º 2
0
    def main_function(self):

        # create Outside Firmware Source
        self.look_up_mo('uni/fabric/fwrepop', '')
        createOutsideFirmwareSource.create_outside_firmware_source(
            self.mo,
            self.firmware_source['name'],
            optional_args=return_valid_optional_args(self.firmware_source))
        self.commit_change()

        # upgrade controller firmware policy
        self.look_up_mo('uni/controller', '')
        upgradeControllerFirmwarePolicy.upgrade_controller_firmware_policy(
            self.mo, optional_args=self.upgrade_controller_firmware_policy)
    def main_function(self):

        # create Outside Firmware Source
        self.look_up_mo("uni/fabric/fwrepop", "")
        createOutsideFirmwareSource.create_outside_firmware_source(
            self.mo, self.firmware_source["name"], optional_args=return_valid_optional_args(self.firmware_source)
        )
        self.commit_change()

        # create Firmware Group and Maintenance Group
        self.look_up_mo("uni/fabric", "")
        createFirmwareGroup.create_firmware_group(
            self.mo, self.firmware_group["name"], optional_args=return_valid_optional_args(self.firmware_group)
        )
        createMaintenanceGroup.create_maintenance_group(
            self.mo, self.maintenance_group["name"], optional_args=return_valid_optional_args(self.maintenance_group)
        )
    def main_function(self):

        # create Outside Firmware Source
        self.look_up_mo('uni/fabric/fwrepop', '')
        createOutsideFirmwareSource.create_outside_firmware_source(
            self.mo,
            self.firmware_source['name'],
            optional_args=return_valid_optional_args(self.firmware_source))
        self.commit_change()

        # create Firmware Group and Maintenance Group
        self.look_up_mo('uni/fabric', '')
        createFirmwareGroup.create_firmware_group(
            self.mo,
            self.firmware_group['name'],
            optional_args=return_valid_optional_args(self.firmware_group))
        createMaintenanceGroup.create_maintenance_group(
            self.mo,
            self.maintenance_group['name'],
            optional_args=return_valid_optional_args(self.maintenance_group))