grc.conf : command ip :

- accept parameters between "ip" and main parameter
	- accept all correct syntax of "address" ("a", "ad", "add", "addr", "addre",...,"address")
	- do the the same with "link", "route" and "neighbour"
This commit is contained in:
Raizo62 2019-09-14 10:50:55 +02:00
parent 30606591b7
commit 1a8a777ee0
1 changed files with 4 additions and 4 deletions

View File

@ -99,18 +99,18 @@ conf.df
conf.du
# ip addr/link
(^|[/\w\.]+/)ip a(ddr)*\s?
(^|[/\w\.]+/)ip( -\w+)* a(d(d(r(e(ss?)?)?)?)?)?\b
conf.ipaddr
(^|[/\w\.]+/)ip ?(-.)* ?l(ink)*\s?
(^|[/\w\.]+/)ip( -\w+)* l(i(nk?)?)?\b
conf.ipaddr
# ip route
(^|[/\w\.]+/)ip r(oute)*\s?
(^|[/\w\.]+/)ip( -\w+)* r(o(u(te?)?)?)?\b
conf.iproute
# ip neighbor
(^|[/\w\.]+/)ip n(eighbor)*\s?
(^|[/\w\.]+/)ip( -\w+)* n(e(i(g(h(b(o(ur?)?)?)?)?)?)?)?\b
conf.ipneighbor
# ip command - rest of commands