summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Salo <jari.salo@tdc.fi>2014-08-05 16:07:54 +0300
committerJari Salo <jari.salo@tdc.fi>2014-08-05 16:07:54 +0300
commitc2609188c4ac5cc4843e5336e9817d1db31a790c (patch)
treeddc38449daef20e16cbfb9782bfe6d5b573f43a7
parent658c824d76e916db8bc7369a70f5cb80bed2a023 (diff)
Add Alcatel-Lucent ISAM 7302/7330 DSLAM model support
-rw-r--r--CHANGELOG.md1
-rw-r--r--README.md1
-rw-r--r--lib/oxidized/model/isam.rb35
3 files changed, 37 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index daf1fda..b5f59f6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,6 @@
# 0.2.3
- BUGFIX: rescue @ssh.close when far end closes disgracefully (ALU ISAM)
+- FEATURE: Alcatel-Lucent ISAM 7302/7330 model added by @jalmargyyk
# 0.2.2
- BUGFIX: mark node as failure if unknown error is raised
diff --git a/README.md b/README.md
index c45320d..2bb2b34 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@
# Supported OS types
* A10 Networks ACOS
+ * Alcatel-Lucent ISAM 7302/7330
* Alcatel-Lucent Operating System AOS
* Alcatel-Lucent Operating System AOS7
* Alcatel-Lucent Operating System Wireless
diff --git a/lib/oxidized/model/isam.rb b/lib/oxidized/model/isam.rb
new file mode 100644
index 0000000..1709500
--- /dev/null
+++ b/lib/oxidized/model/isam.rb
@@ -0,0 +1,35 @@
+class ISAM < Oxidized::Model
+ #Alcatel ISAM 7302/7330 FTTN
+
+ prompt /^([\w.:@-]+>#\s)$/
+ comment '# '
+
+ cmd :all do |cfg|
+ cfg.each_line.to_a[1..-2].join
+ end
+
+ cfg :telnet do
+ username /^login:\s*/
+ password /^password:\s*/
+ end
+
+ cfg :telnet, :ssh do
+ post_login 'environment prompt "%n># "'
+ post_login 'environment mode batch'
+ post_login 'environment inhibit-alarms print no-more'
+ pre_logout 'logout'
+ end
+
+ cmd 'show software-mngt oswp detail' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show equipment slot detail' do |cfg|
+ comment cfg
+ end
+
+ cmd 'info configure flat' do |cfg|
+ cfg
+ end
+
+end