コード例 #1
0
    def setUp(self):
        # Instantiate class object
        self.cls = InstallRemoveInactive()

        # Instantiate device object. This also sets up commonly needed
        # attributes and Mock objects associated with the device.
        self.device = create_test_device('PE1', os='iosxe')
コード例 #2
0
    def setUp(self):
        # Instantiate class object
        self.cls = ExpandImage()

        # Instantiate device object. This also sets up commonly needed
        # attributes and Mock objects associated with the device.
        self.device = create_test_device('PE1', os='iosxe', platform='sdwan')
コード例 #3
0
    def setUp(self):
        # Instantiate class object
        self.cls = DeleteBackupFromDevice()

        # Instantiate device object. This also sets up commonly needed
        # attributes and Mock objects associated with the device.
        self.device = create_test_device('PE1', os='iosxe')
コード例 #4
0
    def setUp(self):
        # Instantiate class object
        self.cls = FabricClean()

        # Instantiate device object. This also sets up commonly needed
        # attributes and Mock objects associated with the device.
        self.device = create_test_device('PE1', os='apic')
コード例 #5
0
    def setUp(self):
        # Instantiate class object
        self.cls = ChangeBootVariable()

        # Instantiate device object. This also sets up commonly needed
        # attributes and Mock objects associated with the device.
        self.device = create_test_device('PE1', os='iosxe')
コード例 #6
0
    def setUp(self):
        # Instantiate class object
        self.cls = ApplyConfiguration()

        # Instantiate device object. This also sets up commonly needed
        # attributes and Mock objects associated with the device.
        self.device = create_test_device('PE1', os='iosxe')
コード例 #7
0
    def setUp(self):
        # Instantiate class object
        self.cls = InstallPackages()

        # Instantiate device object. This also sets up commonly needed
        # attributes and Mock objects associated with the device.
        self.device = create_test_device('PE1', os='iosxe')
        self.device.hostname = 'PE1'
コード例 #8
0
 def setUp(self):
     self.cls = ChangeBootVariable()
     self.device = create_test_device('PE1', os='iosxe')
コード例 #9
0
 def setUp(self):
     self.cls = ChangeBootVariable()
     self.device = create_test_device('PE1', os='nxos')
     self.device.is_ha = True