From 1cafd23635497e942b4f29a5c93a3b77e6644f1e Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Wed, 30 Jan 2008 11:14:36 +0000 Subject: [PATCH] Export bridge information too gnt-backup export used to export the ip and mac of each nic, but not which bridge it was connected to. Adding this information. Reviewed-by: iustinp --- lib/backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/backend.py b/lib/backend.py index 1cea6e386..df376c5c3 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -1256,6 +1256,7 @@ def FinalizeExport(instance, snap_disks): config.set(constants.INISECT_INS, 'nic%d_mac' % nic_count, '%s' % nic.mac) config.set(constants.INISECT_INS, 'nic%d_ip' % nic_count, '%s' % nic.ip) + config.set(constants.INISECT_INS, 'nic%d_bridge' % nic_count, '%s' % nic.bridge) # TODO: redundant: on load can read nics until it doesn't exist config.set(constants.INISECT_INS, 'nic_count' , '%d' % nic_count) -- GitLab