1 . set interface ip address
host-eth1 (up):
10.0.1.2/24
host-eth2 (up):
10.0.2.2/24
2 . del one
set interface ip addr del host-eth1 10.0.1.2/24
host-eth1 (up):
host-eth2 (up):
10.0.2.2/24
3. add route
10.0.0.0/8
4. test
10.1.1.1—will lookup OK .
10.0.1.1—will lookup fail .
when delete leaf in function "unset_leaf", need modify like this:
old:
old_ply->dst_address_bits_of_leaves[i] =
clib_max (old_ply->dst_address_bits_base,
a->cover_address_length);
new:
old_ply->dst_address_bits_of_leaves[i] = a->cover_address_length;