-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196 from wangxin688/main
add more vendors support.
- Loading branch information
Showing
5 changed files
with
194 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
platform-type: 'aruba_wlc' | ||
default: | ||
driver-type: 'network' | ||
privilege-levels: | ||
exec: | ||
name: 'exec' | ||
pattern: '(?im)^[\w.\-@/: ()*]{1,63}>$' | ||
previous-priv: | ||
deescalate: | ||
escalate: | ||
escalate-auth: false | ||
escalate-prompt: | ||
privilege-exec: | ||
name: 'privilege-exec' | ||
pattern: '(?im)^[\w.\-@/: ()*]{1,63}#$' | ||
previous-priv: 'exec' | ||
deescalate: 'disable' | ||
escalate: 'enable' | ||
escalate-auth: true | ||
escalate-prompt: '(?im)^(?:enable\s){0,1}password:\s?$' | ||
configuration: | ||
name: 'configuration' | ||
pattern: '(?im)^[\w.\-@/: ()*]{1,63}\([\+\w.\-@/:+]{0,32}\)#$' | ||
not-contains: | ||
- 'tcl)' | ||
previous-priv: 'privilege-exec' | ||
deescalate: 'end' | ||
escalate: 'configure terminal' | ||
escalate-auth: false | ||
escalate-prompt: | ||
tclsh: | ||
name: 'tclsh' | ||
pattern: '(?im)^([\w.\-@/+>:]+\(tcl\)[>#]|\+>)$' | ||
previous-priv: 'privilege-exec' | ||
deescalate: 'tclquit' | ||
escalate: 'tclsh' | ||
escalate-auth: false | ||
escalate-prompt: | ||
default-desired-privilege-level: 'privilege-exec' | ||
failed-when-contains: | ||
- '% Unrecognized command' | ||
- '% Ambiguous command' | ||
- '% Wrong parameter' | ||
- "% Incomplete command" | ||
- "% Too many parameters" | ||
- "% Invalid input" | ||
textfsm-platform: 'aruba_wlc' # ignored in go because no ntc-templates | ||
network-on-open: | ||
- operation: 'acquire-priv' # targets default desired priv by default | ||
- operation: 'driver.send-command' | ||
command: 'no paging' | ||
network-on-close: | ||
- operation: 'acquire-priv' | ||
- operation: 'channel.write' | ||
input: 'exit' | ||
- operation: 'channel.return' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
platform-type: 'hp_comware' | ||
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: | ||
- '% Unrecognized command' | ||
- '% Ambiguous command' | ||
- '% Wrong parameter' | ||
- "% Incomplete command" | ||
- "% Too many parameters" | ||
textfsm-platform: 'hp_comware' # 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 disable' | ||
network-on-close: | ||
- operation: 'acquire-priv' | ||
- operation: 'channel.write' | ||
input: 'quit' | ||
- operation: 'channel.return' |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
platform-type: 'ruijie_rgos' | ||
default: | ||
driver-type: 'network' | ||
privilege-levels: | ||
exec: | ||
name: 'exec' | ||
pattern: '(?im)^[\w.\-@/:]{1,63}>$' | ||
previous-priv: | ||
deescalate: | ||
escalate: | ||
escalate-auth: false | ||
escalate-prompt: | ||
privilege-exec: | ||
name: 'privilege-exec' | ||
pattern: '(?im)^[\w.\-@/:]{1,63}#$' | ||
previous-priv: 'exec' | ||
deescalate: 'disable' | ||
escalate: 'enable' | ||
escalate-auth: true | ||
escalate-prompt: '(?im)^(?:enable\s){0,1}password:\s?$' | ||
configuration: | ||
name: 'configuration' | ||
pattern: '(?im)^[\w.\-@/:]{1,63}\([\+\w.\-@/:+]{0,32}\)#$' | ||
not-contains: | ||
- 'tcl)' | ||
previous-priv: 'privilege-exec' | ||
deescalate: 'end' | ||
escalate: 'configure terminal' | ||
escalate-auth: false | ||
escalate-prompt: | ||
tclsh: | ||
name: 'tclsh' | ||
pattern: '(?im)^([\w.\-@/+>:]+\(tcl\)[>#]|\+>)$' | ||
previous-priv: 'privilege-exec' | ||
deescalate: 'tclquit' | ||
escalate: 'tclsh' | ||
escalate-auth: false | ||
escalate-prompt: | ||
default-desired-privilege-level: 'privilege-exec' | ||
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' | ||
network-on-close: | ||
- operation: 'acquire-priv' | ||
- operation: 'channel.write' | ||
input: 'exit' | ||
- operation: 'channel.return' |
This file contains 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