(vmName)
| 785 | |
| 786 | |
| 787 | def check_domid_changed(vmName): |
| 788 | curr_domid = get_vm_id(vmName) |
| 789 | if (curr_domid is None) or (not curr_domid.isdigit()): |
| 790 | curr_domid = '-1' |
| 791 | |
| 792 | vm_name = vmName |
| 793 | logfilename = logpath + vm_name + ".log" |
| 794 | if not os.path.exists(logfilename): |
| 795 | return ['-1', curr_domid] |
| 796 | |
| 797 | lines = (line.rstrip() for line in open(logfilename)) |
| 798 | |
| 799 | [_vmName,_vmID,_vmIP,old_domid,_signature,_seqno] = ['_', '-1', '_', '-1', '_', '-1'] |
| 800 | for line in lines: |
| 801 | [_vmName,_vmID,_vmIP,old_domid,_signature,_seqno] = line.split(',') |
| 802 | break |
| 803 | |
| 804 | return [curr_domid, old_domid] |
| 805 | |
| 806 | |
| 807 | def network_rules_for_rebooted_vm(vmName): |
no test coverage detected