15
15
# License for the specific language governing permissions and limitations
16
16
# under the License.
19
18
from nova.rootwrap import filters
22
22
# nova/network/linux_net.py: 'ip', 'addr', 'add', str(floating_ip)+'/32'i..
23
23
# nova/network/linux_net.py: 'ip', 'addr', 'del', str(floating_ip)+'/32'..
41
41
# nova/network/linux_net.py: 'ip[6]tables-save' % (cmd,), '-t', ...
42
42
filters.CommandFilter("/sbin/iptables-save", "root"),
43
filters.CommandFilter("/usr/sbin/iptables-save", "root"),
43
44
filters.CommandFilter("/sbin/ip6tables-save", "root"),
45
filters.CommandFilter("/usr/sbin/ip6tables-save", "root"),
45
47
# nova/network/linux_net.py: 'ip[6]tables-restore' % (cmd,)
46
48
filters.CommandFilter("/sbin/iptables-restore", "root"),
49
filters.CommandFilter("/usr/sbin/iptables-restore", "root"),
47
50
filters.CommandFilter("/sbin/ip6tables-restore", "root"),
51
filters.CommandFilter("/usr/sbin/ip6tables-restore", "root"),
49
53
# nova/network/linux_net.py: 'arping', '-U', floating_ip, '-A', '-I', ...
50
54
# nova/network/linux_net.py: 'arping', '-U', network_ref['dhcp_server'],..
51
55
filters.CommandFilter("/usr/bin/arping", "root"),
56
filters.CommandFilter("/sbin/arping", "root"),
53
58
# nova/network/linux_net.py: 'route', '-n'
54
59
# nova/network/linux_net.py: 'route', 'del', 'default', 'gw'