From: | "Matt Thode (prometheanfire)" <prometheanfire@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/openvswitch/files: xcp-interface-reconfigure-2.3.2.patch |
Date: | Wed, 29 Jul 2015 22:36:50 |
Message-Id: | 20150729223621.3806E113@oystercatcher.gentoo.org |
1 | prometheanfire 15/07/29 22:36:21 |
2 | |
3 | Added: xcp-interface-reconfigure-2.3.2.patch |
4 | Log: |
5 | bup |
6 | |
7 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-misc/openvswitch/files/xcp-interface-reconfigure-2.3.2.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/xcp-interface-reconfigure-2.3.2.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/xcp-interface-reconfigure-2.3.2.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: xcp-interface-reconfigure-2.3.2.patch |
16 | =================================================================== |
17 | Description: Use xcp-xapi interface-reconfigure if found |
18 | Ubuntu/Debian provide the XCP interface-reconfigure hook in |
19 | a FHS compliant location; use this if found. |
20 | Author: James Page <james.page@××××××.com> |
21 | Ubuntu-Bug: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1195053 |
22 | Forwarded: no |
23 | |
24 | --- a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update |
25 | +++ b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update |
26 | @@ -43,6 +43,10 @@ def delete_cacert(): |
27 | def update(session, args): |
28 | # Refresh bridge network UUIDs in case this host joined or left a pool. |
29 | script = '/opt/xensource/libexec/interface-reconfigure' |
30 | + # NOTE(jamespage): Override with distro xcp xapi locations |
31 | + # if present |
32 | + if os.path.exists('/usr/lib/xcp/lib/interface-reconfigure'): |
33 | + script = '/usr/lib/xcp/lib/interface-reconfigure' |
34 | try: |
35 | retval = subprocess.call([script, 'rewrite']) |
36 | if retval != 0: |