def test_avi_to_ansible_delete(self, cleanup): obj = AviAnsibleConverter(avi_cfg, outdir) obj.write_ansible_playbook() assert outdir + '/avi_config_delete.yml' file = outdir + '/avi_config_delete.yml' output = subprocess.check_output('/usr/local/bin/ansible-playbook ' '%s --extra-vars "controller=%s username=%s password=%s"' % (file, setup.get('controller_ip'), setup.get('controller_user'), setup.get('controller_password')), shell=True)
def test_avi_to_ansible_delete(self, cleanup): obj = AviAnsibleConverter(avi_cfg, outdir) obj.write_ansible_playbook() assert outdir + '/avi_config_delete.yml' file = outdir + '/avi_config_delete.yml' output = subprocess.check_output( '/usr/local/bin/ansible-playbook ' '-s %s --extra-vars "controller=%s username=%s password=%s"' % (file, '10.10.29.206', 'admin', 'avi123$%'), shell=True)
def test_avi_to_ansible_delete(self, cleanup): obj = AviAnsibleConverter(avi_cfg, outdir) obj.write_ansible_playbook() assert outdir + '/avi_config_delete.yml' file = outdir + '/avi_config_delete.yml' output = subprocess.check_output( '/usr/local/bin/ansible-playbook ' '%s --extra-vars "controller=%s username=%s password=%s"' % (file, setup.get('controller_ip'), setup.get('controller_user'), setup.get('controller_password')), shell=True)
def test_avi_to_ansible_playbook_conv(self, cleanup): obj = AviAnsibleConverter(avi_cfg, outdir) obj.write_ansible_playbook() assert outdir + '/avi_config.yml' assert outdir + '/avi_config_delete.yml'