Randomize second octet to avoid test vlan IP collision

The VlanTransparencyTest tests fail when the randomly chosen vlan
IP gets assigned to 192.168.122.x/24. This patch replaces the
fixed second octet with the same randomized value as the third
octet to avoid conflicts.

Related-Bug: OSPRH-11751
Closes-Bug: #2112541
Change-Id: I3f4ba272f44f2fd3132741ccc30b4442064dabdd
diff --git a/neutron_tempest_plugin/scenario/test_vlan_transparency.py b/neutron_tempest_plugin/scenario/test_vlan_transparency.py
index 85648bc..11ff510 100644
--- a/neutron_tempest_plugin/scenario/test_vlan_transparency.py
+++ b/neutron_tempest_plugin/scenario/test_vlan_transparency.py
@@ -123,8 +123,8 @@
             self, port_security=True, use_allowed_address_pairs=False):
         self._ensure_ethtype()
         vlan_tag = data_utils.rand_int_id(start=MIN_VLAN_ID, end=MAX_VLAN_ID)
-        vlan_ipmask_template = '192.168.%d.{ip_last_byte}/24' % (vlan_tag %
-                                                                 256)
+        vtag = vlan_tag % 256
+        vlan_ipmask_template = '192.%d.%d.{ip_last_byte}/24' % (vtag, vtag)
         vms = []
         vlan_ipmasks = []
         floating_ips = []