Updated Branches: refs/heads/4.0 a51343508 -> 9a37cd6cd
fix devcloud: add router_proxy.sh Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9a37cd6c Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9a37cd6c Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9a37cd6c Branch: refs/heads/4.0 Commit: 9a37cd6cdc60cd24a3b3a789c9a269996a8fc8cb Parents: 092f50c Author: Edison Su <[email protected]> Authored: Wed Oct 3 18:54:28 2012 -0700 Committer: Edison Su <[email protected]> Committed: Wed Oct 3 18:54:28 2012 -0700 ---------------------------------------------------------------------- scripts/vm/hypervisor/xenserver/xcposs/vmops | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9a37cd6c/scripts/vm/hypervisor/xenserver/xcposs/vmops ---------------------------------------------------------------------- diff --git a/scripts/vm/hypervisor/xenserver/xcposs/vmops b/scripts/vm/hypervisor/xenserver/xcposs/vmops index c8e6013..52625e1 100644 --- a/scripts/vm/hypervisor/xenserver/xcposs/vmops +++ b/scripts/vm/hypervisor/xenserver/xcposs/vmops @@ -1516,6 +1516,22 @@ def createISOVHD(session, args): return vdi_uuid @echo +def routerProxy(session, args): + sargs = args['args'] + cmd = sargs.split(' ') + cmd.insert(0, "/usr/lib/xcp/bin/router_proxy.sh") + cmd.insert(0, "/bin/bash") + try: + txt = util.pread2(cmd) + if txt is None or len(txt) == 0 : + txt = 'success' + except: + util.SMlog("routerProxy command " + sargs + " failed " ) + txt = '' + + return txt + +@echo def getDomRVersion(session, args): sargs = args['args'] cmd = sargs.split(' ') @@ -1546,4 +1562,5 @@ if __name__ == "__main__": "bumpUpPriority":bumpUpPriority, "getDomRVersion":getDomRVersion, "kill_copy_process":kill_copy_process, "createISOVHD":createISOVHD, + "routerProxy":routerProxy, "setDNATRule":setDNATRule})
