Esempio n. 1
0
 def test1(self):
     objs = resource_handler.create(self, tmpl, env)
     resource_handler.verify_on_setup(objs)
     #env['parameters']['vn1_subnet1_dhcp'] = False
     #env['parameters']['vn1_subnet2_prefix'] = '1.1.1.0'
     #env['parameters']['vn1_subnet2_prefixlen'] = 24
     #objs = resource_handler.update(self, objs, tmpl, env)
     return True
 def test1(self):
     objs = resource_handler.create(self, tmpl, env)
     resource_handler.verify_on_setup(objs)
     # TODO-3:
     # update tmpl and/or env as appropriate
     # objs = resource_handler.update(self, objs, tmpl, env)
     # resource_handler.verify_on_setup(objs)
     return True
Esempio n. 3
0
 def one_si_two_svm(self, param):
     tmpl = copy.deepcopy(svc_tmpl)
     objs = resource_handler.create(self, tmpl, param)
     import pdb
     pdb.set_trace()
     tmpl['resources']['policy']['properties']['network_policy_entries']\
         ['network_policy_entries_policy_rule'][0]['network_policy_entries_policy_rule_action_list']\
         ['network_policy_entries_policy_rule_action_list_apply_service'] = \
           [{'list_join': [':', {'get_attr': ['svcinst', 'fq_name']}]}]
     import pdb
     pdb.set_trace()
     objs = resource_handler.update(self, objs, tmpl, param)
     resource_handler.verify_on_setup(objs)
     return True
Esempio n. 4
0
    def test1 (self):
        orch_ctrl = self.connections.get_orch_ctrl()
        zones = orch_ctrl.get_zones()
        hosts = orch_ctrl.get_hosts()
        #pass only zone for vm1
        env['parameters']['availability_zone'] = zones[0]
        #pass zone as well as host for vm2
        env['parameters']['availability_zone2'] = zones[0] + ':' + hosts[0]
        offset = 5
        fixed_ip = get_an_ip(env['parameters']['vn1_subnet2_prefix']+ '/' +
            str(env['parameters']['vn1_subnet2_prefixlen']), offset=offset)
        env['parameters']['fixed_ip'] = fixed_ip

        objs = resource_handler.create(self, tmpl, env)
        resource_handler.verify_on_setup(objs)
        #objs = resource_handler.update(self, objs, tmpl, env)
        #resource_handler.verify_on_setup(objs)
        return True
Esempio n. 5
0
 def test1(self):
     objs = resource_handler.create(self, tmpl, env)
     resource_handler.verify_on_setup(objs)
     return True