Re: [vpp-dev] #vapi -- Need multiple times " ip table del xxx" to delete a specific 'ip table' within vpp?
From: on behalf of "rya...@yunify.com" Date: Tuesday 14 January 2020 at 14:07 To: "vpp-dev@lists.fd.io" Subject: Re: [vpp-dev] #vapi -- Need multiple times " ip table del xxx" to delete a specific 'ip table' within vpp? Hi Neale, Thanks for answer. Another question: If I remove the l3 interface directly, the num in " locks:[src:CLI:6, ]" won't decrease. If I remove the l3 interface from vrf, the num in " locks:[src:CLI:6, ]" will decrease. Does this imply the correct api sequence should be "removing from VRF" before "deleting interface". yes, you must unbind an interface from a non-default table before deleting it. /neale If I remove the l3 interface directly, would it bring any side affect? Thanks, Ryan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15154): https://lists.fd.io/g/vpp-dev/message/15154 Mute This Topic: https://lists.fd.io/mt/69666295/21656 Mute #vapi: https://lists.fd.io/mk?hashtag=vapi=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] #vapi -- Need multiple times " ip table del xxx" to delete a specific 'ip table' within vpp?
Hi Neale, Thanks for answer. Another question: If I remove the l3 interface directly, the num in " locks:[src:CLI:6, ]" *won't* decrease. If I remove the l3 interface from vrf, the num in " locks:[src:CLI:6, ]" *will* decrease. Does this imply the correct api sequence should be "removing from VRF" before "deleting interface". If I remove the l3 interface directly, would it bring any side affect? Thanks, Ryan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15153): https://lists.fd.io/g/vpp-dev/message/15153 Mute This Topic: https://lists.fd.io/mt/69666295/21656 Mute #vapi: https://lists.fd.io/mk?hashtag=vapi=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] #vapi -- Need multiple times " ip table del xxx" to delete a specific 'ip table' within vpp?
Hi Ryan, It’s probably a sign that you have bound multiple interfaces to that table : set int ip table And you need to unbind them (or bind them back to the default table) all before deleting the table : set int ip table 0 regards, neale From: on behalf of "rya...@yunify.com" Date: Monday 13 January 2020 at 21:57 To: "vpp-dev@lists.fd.io" Subject: [vpp-dev] #vapi -- Need multiple times " ip table del xxx" to delete a specific 'ip table' within vpp? Hi guys, I have a question when I delete 'ip table'/'vrf' within VPP. It need issue multiple times " ip table del xxx" to delete a specific 'ip table' within vpp. The number decided by num in " locks:[src:CLI:6, ]" For example, with follow 'ip table'/'vrf', I need issue " ip table del 4114532" six times to delete this specific 'ip table'/'vrf'. It this a design behavior or an issue? Thanks for help! vpp# show ip fib table 4114532 ipv4-VRF:4114532, fib_index:5, flow hash:[src dst sport dport proto ] locks:[src:CLI:6, ] 0.0.0.0/0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:49 buckets:1 uRPF:50 to:[0:0]] [0] [@0]: dpo-drop ip4 0.0.0.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:50 buckets:1 uRPF:51 to:[0:0]] [0] [@0]: dpo-drop ip4 224.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:52 buckets:1 uRPF:53 to:[0:0]] [0] [@0]: dpo-drop ip4 240.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:51 buckets:1 uRPF:52 to:[0:0]] [0] [@0]: dpo-drop ip4 255.255.255.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:53 buckets:1 uRPF:54 to:[0:0]] [0] [@0]: dpo-drop ip4 vpp# Thanks, Ryan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15152): https://lists.fd.io/g/vpp-dev/message/15152 Mute This Topic: https://lists.fd.io/mt/69666295/21656 Mute #vapi: https://lists.fd.io/mk?hashtag=vapi=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vapi -- Need multiple times " ip table del xxx" to delete a specific 'ip table' within vpp?
Hi guys , I have a question when I delete 'ip table'/'vrf' within VPP. It need issue multiple times " ip table del xxx" to delete a specific 'ip table' within vpp. The number decided by num in " locks:[src:CLI:6, ]" For example, with follow 'ip table'/'vrf', I need issue " ip table del 4114532" six times to delete this specific 'ip table'/'vrf'. It this a design behavior or an issue? Thanks for help! vpp# show ip fib table 4114532 ipv4-VRF:4114532, fib_index:5, flow hash:[src dst sport dport proto ] locks:[src:CLI:6, ] 0.0.0.0/0 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:49 buckets:1 uRPF:50 to:[0:0]] [0] [@0]: dpo-drop ip4 0.0.0.0/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:50 buckets:1 uRPF:51 to:[0:0]] [0] [@0]: dpo-drop ip4 224.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:52 buckets:1 uRPF:53 to:[0:0]] [0] [@0]: dpo-drop ip4 240.0.0.0/4 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:51 buckets:1 uRPF:52 to:[0:0]] [0] [@0]: dpo-drop ip4 255.255.255.255/32 unicast-ip4-chain [@0]: dpo-load-balance: [proto:ip4 index:53 buckets:1 uRPF:54 to:[0:0]] [0] [@0]: dpo-drop ip4 vpp# Thanks, Ryan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15139): https://lists.fd.io/g/vpp-dev/message/15139 Mute This Topic: https://lists.fd.io/mt/69666295/21656 Mute #vapi: https://lists.fd.io/mk?hashtag=vapi=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-