(vm_name)
| 1255 | |
| 1256 | |
| 1257 | def get_vm_id(vm_name): |
| 1258 | conn = get_libvirt_connection() |
| 1259 | try: |
| 1260 | dom = (conn.lookupByName (vm_name)) |
| 1261 | except libvirt.libvirtError: |
| 1262 | return None |
| 1263 | |
| 1264 | conn.close() |
| 1265 | |
| 1266 | res = dom.ID() |
| 1267 | if isinstance(res, int): |
| 1268 | res = str(res) |
| 1269 | return res |
| 1270 | |
| 1271 | |
| 1272 | def get_br_fw(brname): |
no test coverage detected