xenserver: Hoist identical bridge and vswitch functions into common code.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Feb 2010 17:47:31 +0000 (09:47 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 23 Feb 2010 17:52:13 +0000 (09:52 -0800)
commit96c7918c4043326bfa0e05b3fc9cbb9547279d40
tree07f851e717c09d7164a38b23436bf4dc202c7779
parent6987c81c05f21c579fbe60e9b6693862abbbb762
xenserver: Hoist identical bridge and vswitch functions into common code.

The previous commit made pif_bridge_name() in the bridge and vswitch
versions of interface-reconfigure functionally identical, so this commit
hoists them into a single common implementation in InterfaceReconfigure.py.

pif_is_bridged() also comes along for the ride because it is also generic
and because it is logically related.  Only the bridge code uses it at the
moment.

Suggested-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/opt_xensource_libexec_InterfaceReconfigure.py
xenserver/opt_xensource_libexec_InterfaceReconfigureBridge.py
xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py