]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove redundant code in tests/unit/test_l3_agent
authorAssaf Muller <amuller@redhat.com>
Sun, 27 Jul 2014 14:50:26 +0000 (17:50 +0300)
committerAssaf Muller <amuller@redhat.com>
Sun, 27 Jul 2014 14:53:55 +0000 (17:53 +0300)
Change-Id: I87d09507cb9e9e37179d6d2035b211aa99f37260

neutron/tests/unit/test_l3_agent.py

index 78f0ff2d43a5520e7b21a4bc7c52ad2c16ba037b..4bba340ed9cc4e6f39eaacf30844fff1d0a4e2dd 100644 (file)
@@ -520,19 +520,9 @@ class TestBasicRouterOperations(base.BaseTestCase):
                                      'subnet_id': _uuid()}],
                       'subnet': {'cidr': cidr,
                                  'gateway_ip': gateway_ip}}
-        int_ports = []
         self.subnet_id_list = []
         for i in range(num_internal_ports):
             self.subnet_id_list.append(_uuid())
-            subnet_id = self.subnet_id_list[i]
-            int_ports.append({'id': _uuid(),
-                              'network_id': _uuid(),
-                              'admin_state_up': True,
-                              'fixed_ips': [{'ip_address': '35.4.%s.4' % i,
-                                             'subnet_id': subnet_id}],
-                              'mac_address': 'ca:fe:de:ad:be:ef',
-                              'subnet': {'cidr': '35.4.%s.0/24' % i,
-                                         'gateway_ip': '35.4.%s.1' % i}})
 
         router = {
             'id': router_id,