Skip to content

Commit

Permalink
op_mode: T6651: Add a top level op mode word "execute"
Browse files Browse the repository at this point in the history
  • Loading branch information
natali-rs1985 committed Aug 14, 2024
1 parent e229d74 commit 69ab443
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions op-mode-definitions/execute.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<interfaceDefinition>
<node name="execute">
<properties>
<help>Initiate an operation</help>
</properties>
</node>
</interfaceDefinition>
2 changes: 1 addition & 1 deletion python/vyos/opmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class InternalError(Error):


def _is_op_mode_function_name(name):
if re.match(r"^(show|clear|reset|restart|add|update|delete|generate|set|renew|release)", name):
if re.match(r"^(show|clear|reset|restart|add|update|delete|generate|set|renew|release|execute)", name):
return True
else:
return False
Expand Down
1 change: 1 addition & 0 deletions src/opt/vyatta/etc/shell/level/users/allowed-op
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ clear
connect
delete
disconnect
execute
exit
force
monitor
Expand Down
1 change: 1 addition & 0 deletions src/opt/vyatta/etc/shell/level/users/allowed-op.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ clear
connect
delete
disconnect
execute
exit
force
monitor
Expand Down

0 comments on commit 69ab443

Please sign in to comment.