diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-05-01 10:34:03 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-06-05 14:36:53 -0300 |
| commit | a7b2821884074b0e16a4de4588a8b27b6ae086be (patch) | |
| tree | f172a3e91ff30f070464afbf7115718305e24ae2 /lib/filter_cli.c | |
| parent | 25ceb5d807d0062d5426dd11f72cf9c279173f74 (diff) | |
lib: fix prefix list installation
Based on the function `prefix_list_entry_add` and
`prefix_list_entry_delete` it was created two functions to replicate
its functionality without the assumption we are always alocating a new
prefix list entry.
Since the prefix list entry is stored in the YANG private data
structures, we want to avoid the allocation/free of memory that is
hold by the schema.
Every time a prefix list entry values change we must call
`prefix_list_entry_update_start` to uninstall the entry from prefix
list internal structures and then call
`prefix_list_entry_update_finish` to put them back.
The variable `installed` in the prefix list entry tracks the
installation status of the internal structure. It is possible that a
user unconfigures or forgets to add a `prefix` value and so we can't
install the entry until then.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/filter_cli.c')
0 files changed, 0 insertions, 0 deletions
