-
Notifications
You must be signed in to change notification settings - Fork 944
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 #3100 from Beanfield/onefinity
Initial implementation of the Fujistu 1Finity
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
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
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,18 @@ | ||
class OneFinity < Oxidized::Model | ||
using Refinements | ||
|
||
# Fujitsu 1finity | ||
|
||
prompt /(\r?[\w.@_()-]+[>]\s?)$/ | ||
|
||
cmd :all do |cfg| | ||
cfg.each_line.to_a[1..-3].join | ||
end | ||
|
||
cmd 'show configuration | display set | nomore' | ||
|
||
cfg :ssh do | ||
pre_logout 'exit' | ||
exec true | ||
end | ||
end |