NSX|V3+P: Change max allowed host routes

Change number of max allowed host routes to 26.
option121 is set as 27, but there's 1 host route set by default.
Fixing test.

Change-Id: I660ee1f710dd84fe3e91122a009d520d0341f261
Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
This commit is contained in:
Michal Kelner Mishali 2019-05-15 14:52:29 +03:00
parent db82bd3c14
commit 5454b916fb
1 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ from vmware_nsx.tests.unit.extensions import test_metadata
from vmware_nsxlib.tests.unit.v3 import mocks as nsx_v3_mocks
from vmware_nsxlib.tests.unit.v3 import nsxlib_testcase
from vmware_nsxlib.v3 import exceptions as nsxlib_exc
from vmware_nsxlib.v3 import nsx_constants
PLUGIN_NAME = 'vmware_nsx.plugin.NsxV3Plugin'
@ -929,7 +930,7 @@ class TestSubnetsV2(common_v3.NsxV3TestSubnets, NsxV3PluginTestCaseMixin):
'ip_version': 4}}
count = 1
host_routes = []
while count < 28:
while count < nsx_constants.MAX_STATIC_ROUTES:
host_routes.append("'host_routes': [{'destination': "
"'135.207.0.0/%s', 'nexthop': "
"'1.2.3.%s'}]" % (count, count))