Exemplo n.º 1
0
    def test_module_parameters_mgmt_address_subnet(self):
        args = dict(mgmt_network='bridged',
                    mgmt_address='1.2.3.4/255.255.255.0')

        p = ModuleParameters(params=args)
        assert p.mgmt_network == 'bridged'
        assert p.mgmt_address == '1.2.3.4/24'
Exemplo n.º 2
0
    def test_module_parameters_mgmt_route(self):
        args = dict(
            mgmt_route='1.2.3.4'
        )

        p = ModuleParameters(params=args)
        assert p.mgmt_route == '1.2.3.4'
Exemplo n.º 3
0
    def test_module_parameters_vcmp_software_image_facts(self):
        # vCMP images may include a forward slash in their names. This is probably
        # related to the slots on the system, but it is not a valid value to specify
        # that slot when providing an initial image
        args = dict(initial_image='BIGIP-12.1.0.1.0.1447-HF1.iso/1', )

        p = ModuleParameters(params=args)
        assert p.initial_image == 'BIGIP-12.1.0.1.0.1447-HF1.iso/1'
Exemplo n.º 4
0
    def test_module_parameters(self):
        args = dict(initial_image='BIGIP-12.1.0.1.0.1447-HF1.iso',
                    mgmt_network='bridged',
                    mgmt_address='1.2.3.4/24',
                    vlans=['vlan1', 'vlan2'])

        p = ModuleParameters(params=args)
        assert p.initial_image == 'BIGIP-12.1.0.1.0.1447-HF1.iso'
        assert p.mgmt_network == 'bridged'