Skip to content
Ondrej Fabry edited this page Oct 30, 2017 · 2 revisions

Testing scenarios

IP routing and VRF tables

Notes

  • Interfaces must NOT have IP address before assignment to VRF table!
  • If VRF table was not created before assignment, it will be created automatically.

Scenarios


1. Assign VRF table to interface

This process assigns VRF table to interface.

  1. create new interface IFACE
  2. assign VRF table X to IFACE
  3. set IP address for IFACE

Now the routes for the interface will be listed in the assigned VRF table.


2. Automatic removal of VRF table

This process assigns VRF table to interface and then changes back to default table (VRF 0).

  1. create new interface IFACE
  2. assign VRF table X to IFACE
  3. set IP address for IFACE
  4. unset all IP addresses from IFACE

Now the assigned VRF table will be automatically deleted, since no other interface uses it.


3. Assigning IP to deleted VRF table

This process will crash the VPP!!

  1. create new interface IFACE
  2. assign VRF table X to IFACE
  3. add IP address for IFACE
  4. delete IP address from IFACE
  5. delete VRF table X
  6. add IP address for IFACE

This is probably caused by some access of invalid pointer from deleted VRF table.


vpp-agent-ctl -put /vnf-agent/vpp1/vpp/config/v1/vrf/2 - << EOF
{
  "name": "vrf2",
  "interfaces": [
    { "name": "pg0" }
  ]
}
EOF