neutron/tools
Aaron Rosen d9c78880d2 Disable allowed_address_pair ip 0.0.0.0/0 ::/0 for ipset
Previously, the ipset_manager would pass in 0.0.0.0/0 or ::/0 if
these addresses were inputted as allowed address pairs. This causes
ipset to raise an error as it does not work with zero prefix sizes.
To solve this problem we use two ipset rules to represent this.

This was correctly fixed in a backport to kilo though we did not have the
cycles to backport this exact fix to juno as in juno additional work needs to
be done because the iptable and ipset code are interleaved together. This
patch fixes this issue by disabling one from creating an address pair of
zero lenght. This patch also provides a small tool which one should run:
tools/fix_zero_length_ip_prefix.py which changes all zero length address_pair
rules into two address pair rules of:

Ipv4: 0.0.0.0/1 and 128.0.0.1/1
IPv6: ::/1' and '8000::/1

to avoid the problem.
After this patch is merged into juno it will be easier for us to apply
a better change to allow /0 addresses again in juno.

Change-Id: I8c6a08e0cf3b5b5386fe03af9f2174c666b8ac75
Closes-bug: 1461054
Co-Authored-by: Darragh O'Reilly <darragh.oreilly@hp.com>
2015-06-23 15:01:13 +00:00
..
check_i18n.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
check_i18n_test_case.txt Add script for checking i18n message 2012-12-10 17:29:54 +08:00
clean.sh Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
fix_zero_length_ip_prefix.py Disable allowed_address_pair ip 0.0.0.0/0 ::/0 for ipset 2015-06-23 15:01:13 +00:00
i18n_cfg.py Fix message i18n error 2013-09-08 15:58:12 +08:00
install_venv.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
install_venv_common.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
with_venv.sh Remove the useless vim modelines 2014-06-21 15:07:31 +08:00