diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-04-02 11:09:59 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-04-02 11:09:59 +0300 |
| commit | 24ae7cd30a055dc17fc9d75762320e1359e005b2 (patch) | |
| tree | b0ec9a9bf1697436c34e3a575dde3660192638db /lib/filter_cli.c | |
| parent | 90b004cd468b224a079a9f7501244e5aa3e4e83e (diff) | |
lib: Return duplicate ipv6 prefix-list entry test
Fixes: 8384d41144496019725c1e250abd0ceea854341f ("lib: Return duplicate prefix-list entry test")
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/filter_cli.c')
| -rw-r--r-- | lib/filter_cli.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/filter_cli.c b/lib/filter_cli.c index b3ad5fb46d..6d8d288d81 100644 --- a/lib/filter_cli.c +++ b/lib/filter_cli.c @@ -1400,10 +1400,14 @@ DEFPY_YANG( snprintf(xpath, sizeof(xpath), "/frr-filter:lib/prefix-list[type='ipv6'][name='%s']", name); if (seq_str == NULL) { - /* Use XPath to find the next sequence number. */ - sseq = acl_get_seq(vty, xpath, false); - if (sseq < 0) - return CMD_WARNING_CONFIG_FAILED; + if (plist_is_dup(vty->candidate_config->dnode, &pda)) + sseq = pda.pda_seq; + else { + /* Use XPath to find the next sequence number. */ + sseq = acl_get_seq(vty, xpath, false); + if (sseq < 0) + return CMD_WARNING_CONFIG_FAILED; + } snprintfrr(xpath_entry, sizeof(xpath_entry), "%s/entry[sequence='%" PRId64 "']", xpath, sseq); |
