Let's add an IPv4 route into freeRouter CLI Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | route addition via freeRouter |
---|
| conf t
ipv4 route v1 1.2.3.0 255.255.255.0 4.4.4.4
... |
Upon entering the ipv4 route and pressing <enter>, you'll see the following message appearing Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | message API: route4_add |
---|
| ...
rx: ['route4_add', '1.2.3.0/24', '13063', '4.4.4.4', '1', '\n']
... |
Let's delete the route via FreeRouter CLI Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | route deletion via freeRouter |
---|
| conf t
no ipv4 route v1 1.2.3.0 255.255.255.0 4.4.4.4
... |
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | message API: route4_del |
---|
| ...
rx: ['route4_del', '1.2.3.0/24', '13063', '4.4.4.4', '1', '\n']
... |
Warning |
---|
| In short, the message API is simply a collection of message that would trigger an entry ADD/ | DELDELETE/MODIFY into the dataplane corresponding table. |
The documentation of this message API will be documented and published soon, but for those who are curious and can't wait this documentation, you can read forwarder.py, bf_forwarder.py or p4dpdk.bin source code |