diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-28 17:28:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 17:28:51 +0100 |
commit | baaaf4f5b6b5904499a6a95976d73be5a9b454ca (patch) | |
tree | aa2b0f1c16299e13377b87a166c0ad6321c36fa9 /pbrd | |
parent | Merge pull request #5876 from ton31337/feature/doc_vrrpd_update (diff) | |
parent | pbrd: unconfigure table range (diff) | |
download | frr-baaaf4f5b6b5904499a6a95976d73be5a9b454ca.tar.xz frr-baaaf4f5b6b5904499a6a95976d73be5a9b454ca.zip |
Merge pull request #5862 from sworleys/PBR-No-Table-Range
pbrd: unconfigure table range
Diffstat (limited to 'pbrd')
-rw-r--r-- | pbrd/pbr_vty.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index c1922d872..e395b7831 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -88,8 +88,7 @@ DEFUN_NOSH(no_pbr_map, no_pbr_map_cmd, "no pbr-map PBRMAP [seq (1-700)]", DEFPY(pbr_set_table_range, pbr_set_table_range_cmd, - "[no] pbr table range (10000-4294966272)$lb (10000-4294966272)$ub", - NO_STR + "pbr table range (10000-4294966272)$lb (10000-4294966272)$ub", PBR_STR "Set table ID range\n" "Set table ID range\n" @@ -113,6 +112,19 @@ DEFPY(pbr_set_table_range, return ret; } +DEFPY(no_pbr_set_table_range, no_pbr_set_table_range_cmd, + "no pbr table range [(10000-4294966272)$lb (10000-4294966272)$ub]", + NO_STR + PBR_STR + "Set table ID range\n" + "Set table ID range\n" + "Lower bound for table ID range\n" + "Upper bound for table ID range\n") +{ + pbr_nht_set_tableid_range(PBR_NHT_DEFAULT_LOW_TABLEID, + PBR_NHT_DEFAULT_HIGH_TABLEID); + return CMD_SUCCESS; +} DEFPY(pbr_map_match_src, pbr_map_match_src_cmd, "[no] match src-ip <A.B.C.D/M|X:X::X:X/M>$prefix", @@ -854,6 +866,7 @@ void pbr_vty_init(void) install_element(CONFIG_NODE, &pbr_map_cmd); install_element(CONFIG_NODE, &no_pbr_map_cmd); install_element(CONFIG_NODE, &pbr_set_table_range_cmd); + install_element(CONFIG_NODE, &no_pbr_set_table_range_cmd); install_element(INTERFACE_NODE, &pbr_policy_cmd); install_element(PBRMAP_NODE, &pbr_map_match_src_cmd); install_element(PBRMAP_NODE, &pbr_map_match_dst_cmd); |