**NOTES:**
- higher number of pg-ip4 interfaces causes problems => only 15 pg-ip4 \
- interfaces in 5 VRFs are tested
+ interfaces in 5 VRFs are tested
- jumbo packets in configuration with 15 pg-ip4 interfaces leads to \
- problems too
+ problems too
**config 1**
- add 15 pg-ip4 interfaces
**verify 1**
- check VRF data by parsing output of ip_fib_dump API command
- - all packets received correctly in case of pg-ip4 interfaces in the same
- VRF
+ - all packets received correctly in case of pg-ip4 interfaces in the
+ same VRF
- no packet received in case of pg-ip4 interfaces not in VRF
- no packet received in case of pg-ip4 interfaces in different VRFs
- send IP4 packets between all pg-ip4 interfaces in all VRF groups
**verify 2**
- - all packets received correctly in case of pg-ip4 interfaces in the same
- VRF
+ - all packets received correctly in case of pg-ip4 interfaces in the
+ same VRF
- no packet received in case of pg-ip4 interfaces not in VRF
- no packet received in case of pg-ip4 interfaces in different VRFs
**verify 3**
- check VRF data by parsing output of ip_fib_dump API command
- - all packets received correctly in case of pg-ip4 interfaces in the same
- VRF
+ - all packets received correctly in case of pg-ip4 interfaces in the
+ same VRF
- no packet received in case of pg-ip4 interfaces not in VRF
- no packet received in case of pg-ip4 interfaces in different VRFs
**verify 4**
- check VRF data by parsing output of ip_fib_dump API command
- - all packets received correctly in case of pg-ip4 interfaces in the same
- VRF
+ - all packets received correctly in case of pg-ip4 interfaces in the
+ same VRF
- no packet received in case of pg-ip4 interfaces not in VRF
- no packet received in case of pg-ip4 interfaces in different VRFs
"""
for i in range(count):
vrf_id = i + start
pg_if = self.pg_if_by_vrf_id[vrf_id][0]
- dest_addr = pg_if.local_ip4n
- dest_addr_len = 24
self.vapi.ip_table_add_del(is_add=1, table={'table_id': vrf_id})
self.logger.info("IPv4 VRF ID %d created" % vrf_id)
if vrf_id not in self.vrf_list:
def run_crosswise_vrf_test(self):
"""
Create packet streams for every pg-ip4 interface in VRF towards all
- pg-ip4 interfaces in other VRFs, send all prepared packet streams and \
+ pg-ip4 interfaces in other VRFs, send all prepared packet streams and
verify that:
- - no packet received on all configured pg-ip4 interfaces
+
+ - no packet received on all configured pg-ip4 interfaces
:raise RuntimeError: If any packet is captured on any pg-ip4 interface.
"""