Alexander,
> I want to list all NAT sessions. In order to do that I used to call
> VL_API_NAT44_USER_DUMP. After that, I had all users, and I could call
> VL_API_NAT44_USER_SESSION_DUMP to get sessions for every user.
>
> Now VL_API_NAT44_USER_DUMP returns nothing in ED mode and I don't know what
> users are. At the same time, VL_API_NAT44_USER_SESSION_DUMP requires
> ip_address and vrf_id arguments. So if you don't know users, you cannot get
> sessions.
For the NAT ED mode which has port overloading, we removed the concept of users.
We could add a session_dump API. Given that there could be millions of
sessions, we would have to revamp that somewhat to avoid blocking the main
thread as well as the workers for too long a time.
What's the use case you need this for?
If it's for session logging, there is ipfix and syslog available for that.
Best regards,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16333): https://lists.fd.io/g/vpp-dev/message/16333
Mute This Topic: https://lists.fd.io/mt/74156168/21656
Mute #nat44: https://lists.fd.io/mk?hashtag=nat44&subid=1480452
Mute #nat: https://lists.fd.io/mk?hashtag=nat&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-