Skip to content

Commit

Permalink
Merge pull request #162 from netixx/netixx/add-xr-run-shell
Browse files Browse the repository at this point in the history
Add run shell definition to ios-xr
  • Loading branch information
carlmontanari authored Nov 11, 2023
2 parents 071f5bf + d8c5674 commit 9f78e4b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/platforms/cisco_iosxr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ default:
escalate: 'configure exclusive'
escalate-auth: false
escalate-prompt:
run:
name: 'run'
# match [xr-vm_node0_RP0_CPU0:~]$ (Cisco NC55XX)
# match [node0_RP0_CPU0:~]$ (Cisco 8000)
pattern: '(?im)^\[[^]]+\]\$\s*$'
previous-priv: 'exec'
deescalate: 'logout'
escalate: 'run'
escalate-auth: false
escalate-prompt:
default-desired-privilege-level: 'exec'
failed-when-contains:
- '% Ambiguous command'
Expand Down

0 comments on commit 9f78e4b

Please sign in to comment.