forked from cjdoucette/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipfix: allow empty targets column in table IPFIX
The "targets" column in IPFIX had a min=1 constraints, so OVSDB implicitly adds an empty string "" into that column if no value is given. No connection can be opened to a target with address "", so the whole IPFIX exporter for that row was disabled until that "" target was removed by users. That behavior is correct but proved to be unintuitive to users. This patch removes the min=1 constraint, to avoid the trouble for users who insert IPFIX rows with no targets: it eliminates the log messages due to failed connections to target "", and eliminates the need to manually remove the "" target after row insertion. This doesn't impact the behavior for any existing row, whether it has a "" target or not. Signed-off-by: Romain Lenglet <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters