03-15-2019 12:17 AM
Hi Team,
regex for command sets, having a query: In command set, configuring as below:
Command: undo
Arguments: ospf bgp mpls
requirement is to put the regex in argument so user should not be able to run the "undo ospf" or "undo bgp" or "undo mpls" commands.
I tried with [ospf bgp mpls] but i think it differentiate the character only. not the alphabets.
Any input please.
Solved! Go to Solution.
03-27-2020 07:25 AM - edited 03-27-2020 07:27 AM
Have you tried using the pipe character ( | ) in between each one? This is often used for 'or'.
Grant: DENY
Command: undo
Arguments: ospf|bgp|mpls
03-20-2019 01:04 AM
Any input here, please
03-20-2019 01:42 AM
Hi,
this have to be three different arguments added in the command reference
undo mpls
undo ospf
undo bgp
it wont work as what you are trying to do.
The commands have to be same as what you are entering the cli.
03-27-2020 07:25 AM - edited 03-27-2020 07:27 AM
Have you tried using the pipe character ( | ) in between each one? This is often used for 'or'.
Grant: DENY
Command: undo
Arguments: ospf|bgp|mpls
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide