diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-08-25 09:29:00 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2020-08-25 10:35:46 -0300 |
| commit | 4204c59a99c10e8338d441b3415391656687db8d (patch) | |
| tree | 8bebc03cac3d9f0cefaeaf23393d0f93b8d88c83 /lib/filter_cli.c | |
| parent | 4859a57e11db58977eafaa28fcaea9f32375546c (diff) | |
lib: remove ambiguous cisco command
When configuring a access list rule with type `any` it is now ambiguous
between cisco and zebra because both have the same syntax, so lets
remove the cisco command to avoid that.
YANG users will not notice this change.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/filter_cli.c')
| -rw-r--r-- | lib/filter_cli.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/filter_cli.c b/lib/filter_cli.c index be9de71a28..6529fd6e18 100644 --- a/lib/filter_cli.c +++ b/lib/filter_cli.c @@ -165,7 +165,7 @@ static long acl_get_seq(struct vty *vty, const char *xpath) */ DEFPY_YANG( access_list_std, access_list_std_cmd, - "access-list WORD$name [seq (1-4294967295)$seq] <deny|permit>$action <[host] A.B.C.D$host|A.B.C.D$host A.B.C.D$mask|any>", + "access-list WORD$name [seq (1-4294967295)$seq] <deny|permit>$action <[host] A.B.C.D$host|A.B.C.D$host A.B.C.D$mask>", ACCESS_LIST_STR ACCESS_LIST_LEG_STR ACCESS_LIST_SEQ_STR @@ -173,8 +173,7 @@ DEFPY_YANG( "A single host address\n" "Address to match\n" "Address to match\n" - "Wildcard bits\n" - "Any source host\n") + "Wildcard bits\n") { int64_t sseq; char ipmask[64]; @@ -214,7 +213,7 @@ DEFPY_YANG( DEFPY_YANG( no_access_list_std, no_access_list_std_cmd, - "no access-list WORD$name [seq (1-4294967295)$seq] <deny|permit>$action <[host] A.B.C.D$host|A.B.C.D$host A.B.C.D$mask|any>", + "no access-list WORD$name [seq (1-4294967295)$seq] <deny|permit>$action <[host] A.B.C.D$host|A.B.C.D$host A.B.C.D$mask>", NO_STR ACCESS_LIST_STR ACCESS_LIST_LEG_STR @@ -223,8 +222,7 @@ DEFPY_YANG( "A single host address\n" "Address to match\n" "Address to match\n" - "Wildcard bits\n" - "Any source host\n") + "Wildcard bits\n") { struct access_list *acl; struct lyd_node *dnode; |
