On Thu, Mar 28, 2019 at 4:38 PM Michal Cmarada -X (mcmarada - PANTHEON TECHNOLOGIES at Cisco) <mcmar...@cisco.com> wrote: > > Raj: If you have more data available after testing, please provide them here. > Thanks
My observation is when I use skip of 1, cli works fine while RESTCONF do not. Config using CLI: vpp# classify table mask l3 ip4 src skip 1 vpp# configure policer name policy1 cir 500 eir 0 cb 5000 eb 15000 rate kbps round closest type 1r3c conform-action transmit exceed-action mark-and-transmit AF22 violate-action drop vpp# classify session policer-hit-next policy1 exceed-color table-index 0 match l3 ip4 src 192.168.1.2 vpp# sh classify tables verbose TableIdx Sessions NextTbl NextNode 0 1 -1 -1 Heap: total: 2.06M, used: 1.27K, free: 2.06M, trimmable: 2.06M no traced allocations nbuckets 2, skip 1 match 1 flag 0 offset 0 mask 00000000000000000000ffffffff0000 linear-search buckets 0 [1]: heap offset 1136, elts 2, normal 0: [1136]: next_index 0 advance 0 opaque 1 action 0 metadata 0 k: 00000000000000000000c0a801020000 hits 0, last_heard 0.00 1 active elements 1 free lists 0 linear-search buckets The `k` value is what is expected. Config using RESTCONF: PUT https://{{machine}}/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0 json { "classify-table": [ { "name": "table0", "nbuckets": "2", "memory_size": "1073857", "miss_next": "permit", "skip_n_vectors": "1", "mask": "00:00:00:00:00:00:00:00:00:00:ff:ff:ff:ff:00:00" } ] } adding limiting for src ip PUT https://{{machine}}/restconf/config/vpp-classifier:vpp-classifier/classify-table/table0/classify-session/00:00:00:00:00:00:00:00:00:00:c0:a8:1e:8e:00:01 json { "classify-session": [ { "policer_hit_next": "policy1", "color_classfier": "exceed-color", "match": "00:00:00:00:00:00:00:00:00:00:c0:a8:1e:8e:00:01" } ] } vpp# sh policer Name "policy1" type 1r3c cir 500 eir 0 cb 5000 eb 15000 rate type kbps, round type closest conform action transmit, exceed action mark-and-transmit CS0, violate action drop Template policer at 7fd3f972de5c: single rate, not color-aware cir 825955 tok/period, pir 1 tok/period, scale 18 cur lim 1310720000, cur bkt 1310720000, ext lim 3932160000, ext bkt 3932160000 last update 0 ----------- vpp# vpp# vpp# sh classify tables verbose TableIdx Sessions NextTbl NextNode 0 1 -1 -1 Heap: total: 1.06M, used: 1.27K, free: 1.06M, trimmable: 1.06M no traced allocations nbuckets 2, skip 1 match 1 flag 0 offset 0 mask 00000000000000000000ffffffff0000 linear-search buckets 0 [0]: heap offset 1136, elts 2, normal 0: [1136]: next_index 0 advance 0 opaque 1 action 0 metadata 0 k: 00000000000000000000000000000000 hits 0, last_heard 0.00 1 active elements 1 free lists 0 linear-search buckets As it can be seen `k` is all zeros here. @Michal Cmarada: I am curious as to why a skip value of 12 was chosen? Thanks and Regards, Raj
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12660): https://lists.fd.io/g/vpp-dev/message/12660 Mute This Topic: https://lists.fd.io/mt/30810146/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-