Last active
July 30, 2022 14:20
-
-
Save fire-ant/d137de539f596af24eef17703fbb68d9 to your computer and use it in GitHub Desktop.
sonic_vs.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| default: | |
| driver-type: 'network' | |
| default-desired-privilege-level: "linux" | |
| privilege-levels: | |
| linux: | |
| name: 'linux' | |
| pattern: '(?im)^[\w.\-@()\/: ]{1,63}' | |
| previous-priv: | |
| deescalate: "" | |
| escalate: "" | |
| escalate-auth: false | |
| escalate-prompt: "" | |
| exec: | |
| name: 'exec' | |
| pattern: '(?im)^[\w.\-@()\/: ]{1,63}' | |
| previous-priv: "linux" | |
| deescalate: "logout" | |
| escalate: "sonic-cli" | |
| escalate-auth: false | |
| escalate-prompt: | |
| privilege-exec: | |
| name: 'privilege-exec' | |
| pattern: '(?im)^[\w.\-@()\/: ]{1,63}' | |
| previous-priv: "exec" | |
| deescalate: "disable" | |
| escalate: "enable" | |
| escalate-auth: false | |
| escalate-prompt: | |
| configuration: | |
| name: 'configuration' | |
| pattern: '(?im)^[\w.\-@()\/: ]{1,63}:sonic-cli' | |
| previous-priv: 'privilege-exec' | |
| deescalate: 'end' | |
| escalate: 'configure terminal' | |
| escalate-auth: false | |
| escalate-prompt: | |
| failed-when-contains: | |
| - "% Ambiguous command" | |
| - "% Incomplete command" | |
| - "% Invalid input detected" | |
| - "% Unknown command" | |
| textfsm-platform: '' # ignored in go because no ntc-templates | |
| network-on-open: | |
| - operation: 'acquire-priv' # targets default desired priv by default | |
| - operation: 'driver.send-command' | |
| command: 'terminal length 0' | |
| - operation: 'driver.send-command' | |
| command: 'terminal width 511' | |
| network-on-close: | |
| - operation: 'acquire-priv' | |
| - operation: 'channel.write' | |
| input: 'exit' | |
| - operation: 'channel.return' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment