# HG changeset patch # User igor # Date 1190380752 -10800 # Node ID fcd08a4f3216b3610c2e318f0433945bfa8aa97d # Parent 6bb2a29e91bef3eeb5aebb7a0fe3869f136a7de3 reconnect and show diff -r 6bb2a29e91be -r fcd08a4f3216 xentaur.py --- a/xentaur.py Fri Sep 21 16:01:04 2007 +0300 +++ b/xentaur.py Fri Sep 21 16:19:12 2007 +0300 @@ -227,7 +227,7 @@ def int_connect(domain, int_number, bridge): """ Connect the interface with the number - of the domain the the bridge + of the domain to the bridge """ dom_id=get_domain_id(domain) @@ -237,6 +237,18 @@ run_command("sudo brctl addif %s vif%s.%s" % (bridge, dom_id, int_number)) vbridges_table[domain][int_number]=bridge +def int_reconnect(domain, int_number, bridge): + """ + Reconnect the interface with the number + of the domain from the bridge to which + it is connected to the bridge + """ + int_disconnect(domain, int_number) + int_connect(domain, int_number, bridge) + +def show_int(domain, int_number): + vbridges_table[domain][int_number] + #-----------------------------------------------------------------------