Hoi list,

After completing task1-3 of the Linux CP work (see my mail from Aug 12 to
the list, I've now turned my attention to the Netlink Listener. I've
documented that journey in
https://ipng.ch/s/articles/2021/08/25/vpp-4.html which explains my test
setup, the results with the new plugin, based on an older patch in
https://gerrit.fd.io/r/c/vpp/+/31122.

Mirroring Linux changes into VPP are complete with exception of routes
(although that's
already done by Matt/Neale in #31122, so not much work for me to do. As a
teaser, here's a screencast showing me committing a few commands to VPP
[1], with all further interaction done solely with `ip` in the Linux
namespace [2].

Here's a teaser screencast for those following along:
https://asciinema.org/a/432243

I'll be offering my contribution in order:
1) review/commit Part 1 (Linux interface plumbing) in #33481 <- we are here
:)
2) mirroring VPP changes into Linux
3) auto-creating sub-interfaces from VPP in Linux
4) this change, mirroring Linux changes into VPP.

I look forward to your review!. I hope to make the 21.10 cutoff date for
these changes, as I think it'll make the Linux CP plugin much more
appealing for users!

groet,
Pim

[1] VPP configuration that creates two LCP devices:
create bond mode lacp load-balance l34
bond add BondEthernet0 TenGigabitEthernet3/0/2
bond add BondEthernet0 TenGigabitEthernet3/0/3
set interface state TenGigabitEthernet3/0/2 up
set interface state TenGigabitEthernet3/0/3 up
lcp default netns dataplane
lcp lcp-sync on
lcp lcp-auto-subint on
lcp create TenGigabitEthernet3/0/0 host-if e0
lcp create BondEthernet0 host-if be0

[2] Linux CP side configuration, copied into VPP:
IP="sudo ip netns exec dataplane ip"
$IP link add link e0 name e0.1234 type vlan id 1234
$IP link add link e0.1234 name e0.1235 type vlan id 1000
$IP link add link e0 name e0.1236 type vlan id 2345 proto 802.1ad
$IP link add link e0.1236 name e0.1237 type vlan id 1000
$IP link set e0 up mtu 9000

$IP addr add 10.0.1.1/30 dev e0
$IP addr add 2001:db8:0:1::1/64 dev e0
$IP addr add 10.0.2.1/30 dev e0.1234
$IP addr add 2001:db8:0:2::1/64 dev e0.1234
$IP addr add 10.0.3.1/30 dev e0.1235
$IP addr add 2001:db8:0:3::1/64 dev e0.1235
$IP addr add 10.0.4.1/30 dev e0.1236
$IP addr add 2001:db8:0:4::1/64 dev e0.1236
$IP addr add 10.0.5.1/30 dev e0.1237
$IP addr add 2001:db8:0:5::1/64 dev e0.1237
$IP link add link be0 name be0.1234 type vlan id 1234
$IP link add link be0.1234 name be0.1235 type vlan id 1000
$IP link add link be0 name be0.1236 type vlan id 2345 proto 802.1ad
$IP link add link be0.1236 name be0.1237 type vlan id 1000
$IP link set be0 up mtu 9000

$IP addr add 10.1.1.1/30 dev be0
$IP addr add 2001:db8:1:1::1/64 dev be0
$IP addr add 10.1.2.1/30 dev be0.1234
$IP addr add 2001:db8:1:2::1/64 dev be0.1234
$IP addr add 10.1.3.1/30 dev be0.1235
$IP addr add 2001:db8:1:3::1/64 dev be0.1235
$IP addr add 10.1.4.1/30 dev be0.1236
$IP addr add 2001:db8:1:4::1/64 dev be0.1236
$IP addr add 10.1.5.1/30 dev be0.1237
$IP addr add 2001:db8:1:5::1/64 dev be0.1237

-- 
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20018): https://lists.fd.io/g/vpp-dev/message/20018
Mute This Topic: https://lists.fd.io/mt/85134324/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to