From cdc5a6a237dd57da59102b2a2020cadd67e4c168 Mon Sep 17 00:00:00 2001 From: Mate Lakat Date: Tue, 24 Jul 2012 15:14:21 +0100 Subject: Fix ip6tables support in xenapi bug 934603 Change-Id: Id7c4b0c4f8710652249b5c4fcb82abd5cccde6dd --- plugins/xenserver/xenapi/etc/xapi.d/plugins/xenhost | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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='')) -- cgit