summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMate Lakat <mate.lakat@citrix.com>2012-07-24 15:14:21 +0100
committerMate Lakat <mate.lakat@citrix.com>2012-07-27 14:41:56 +0100
commitcdc5a6a237dd57da59102b2a2020cadd67e4c168 (patch)
treefb158278532b5f959a35f223c3af9a1fa31de989 /plugins
parent0626def72e8c2271ef72910c1a2f64015ac9c38b (diff)
downloadnova-cdc5a6a237dd57da59102b2a2020cadd67e4c168.tar.gz
nova-cdc5a6a237dd57da59102b2a2020cadd67e4c168.tar.xz
nova-cdc5a6a237dd57da59102b2a2020cadd67e4c168.zip
Fix ip6tables support in xenapi bug 934603
Change-Id: Id7c4b0c4f8710652249b5c4fcb82abd5cccde6dd
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
index 4006de420..e556931bb 100755
--- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
+++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost
@@ -227,7 +227,10 @@ def iptables_config(session, args):
# either execute iptable-save or iptables-restore
# command must be only one of these two
# process_input must be used only with iptables-restore
- if len(cmd) > 0 and cmd[0] in ('iptables-save', 'iptables-restore'):
+ if len(cmd) > 0 and cmd[0] in ('iptables-save',
+ 'iptables-restore',
+ 'ip6tables-save',
+ 'ip6tables-restore'):
result = _run_command_with_input(cmd, process_input)
ret_str = json.dumps(dict(out=result,
err=''))