Hi,
I used the following command to enter an entry into IP FIB so that I can
route incoming packets by their mpls label:

           " vppctl ip route add 5.6.7.8/32 via 10.10.10.10
GigabitEthernet0/9/0 out-label 46 "

Now IP FIB has a new entry like this:

5.6.7.8/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:25 buckets:1 uRPF:26 to:[0:0]]
    [0] [@10]: mpls-label:[0]:[46:255:0:eos]
        [@1]: arp-mpls: via 10.10.10.10 GigabitEthernet0/9/0

=======================
My Question:
=======================
I am trying to add an entry to IP FIB using API:

" r = vpp.ip_add_del_route(is_add=1, is_ipv6=0, is_multipath=1,
dst_address="\x01\x02\x03\x04", dst_address_length=32,
next_hop_sw_if_index=2, next_hop_n_out_labels=1,
next_hop_out_label_stack=[78] "

I expect to get an entry like the one I got by CLI containing mpls label,
but what I get is:
1.2.3.4/32
  unicast-ip4-chain
  [@0]: dpo-load-balance: [proto:ip4 index:24 buckets:1 uRPF:25 to:[0:0]]
    [0] [@3]: arp-ipv4: via 1.2.3.4 GigabitEthernet0/9/0

This entry does not have any mpls label. What is wrong with my API?

thanks in advance
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to