Skip to content

Commit

Permalink
Merge pull request #170 from wwijkander/main
Browse files Browse the repository at this point in the history
Add support for Huawei VRP CLI
  • Loading branch information
carlmontanari authored Jan 18, 2024
2 parents e11d596 + 66082d7 commit c788416
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions assets/platforms/huawei_vrp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
platform-type: 'huawei_vrp'
default:
driver-type: 'network'
privilege-levels:
user-view:
name: 'user-view'
pattern: '(?im)^<[\w.\-@/:]{1,63}>$'
previous-priv:
deescalate:
escalate:
escalate-auth: false
escalate-prompt:
system-view:
name: 'system-view'
pattern: '(?im)^[[\w.\-@/:]{1,63}]$'
previous-priv: 'user-view'
deescalate: 'quit'
escalate: 'system-view'
escalate-auth: false
escalate-prompt:
default-desired-privilege-level: 'user-view'
failed-when-contains:
- 'Error: Unrecognized command'
- 'Error: Wrong parameter'
# missing whitespace is intentional below
- 'Error:Ambiguous command'
- 'Error:Incomplete command'
textfsm-platform: 'huawei_vrp' # ignored in go because no ntc-templates
network-on-open:
- operation: 'acquire-priv' # targets default desired priv by default
- operation: 'driver.send-command'
command: 'screen-length 0 temporary'
network-on-close:
- operation: 'acquire-priv'
- operation: 'channel.write'
input: 'quit'
- operation: 'channel.return'

0 comments on commit c788416

Please sign in to comment.