]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Tunnel ID range validation for VXLAN/GRE networks
authoryangxurong <yangxurong@huawei.com>
Thu, 24 Apr 2014 01:26:22 +0000 (09:26 +0800)
committerRomil Gupta <romilg@hp.com>
Mon, 15 Sep 2014 15:41:09 +0000 (08:41 -0700)
commit22bec67395b52a879ad4eb37b150eead9d4bb444
tree55eebbd93122f7f2e541e50af93c5635fa357794
parent5ba47e8ca3d6f99f9953d0475d2977f2b3e5bea5
Tunnel ID range validation for VXLAN/GRE networks

Currently, there is no check which validates the values of
tunnel range for VXLAN/GRE networks. The VXLAN VNI is 24 bit
which have range between 1 to 2^24 - 1. Similarly, GRE key field
is 32 bit which have range between 1 to 2^32 - 1.

Closes-Bug: #1306488

Co-Authored-By: romilg romilg@hp.com
Change-Id: Idb3d0f41166df589a1e90394d9319901b5f9b439
neutron/common/constants.py
neutron/common/exceptions.py
neutron/common/utils.py
neutron/plugins/common/utils.py
neutron/plugins/ml2/drivers/type_gre.py
neutron/plugins/ml2/drivers/type_tunnel.py
neutron/plugins/ml2/drivers/type_vxlan.py
neutron/tests/unit/test_common_utils.py