From eed8b050a4e38bcb57ccf2fe9b573886095a272b Mon Sep 17 00:00:00 2001 From: Arnoud Vermeer Date: Wed, 18 May 2016 10:44:15 +0200 Subject: Dot's in hostnames are frowned upon, but allowed ``` AMS01.LI17.RM.SW01(config)# hostname "AMS01.LI17.RM.SW01" Note: To be compliant with RFC 1123, the hostname must contain only letters, numbers and hyphens, and must not start or end with a hyphen. ``` --- lib/oxidized/model/procurve.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index e667f48..4e4f17a 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -2,7 +2,7 @@ class Procurve < Oxidized::Model # some models start lines with \r # previous command is repeated followed by "\eE", which sometimes ends up on last line - prompt /^\r?([\w -]+\eE)?([\w-]+# )$/ + prompt /^\r?([\w -]+\eE)?([\w\-\.]+# )$/ comment '! ' -- cgit v1.2.1 From c29f871b819372587d800e1d2bc0828c0d02c64e Mon Sep 17 00:00:00 2001 From: Arnoud Vermeer Date: Wed, 18 May 2016 13:43:14 +0200 Subject: Update procurve.rb Feedback from @ytti --- lib/oxidized/model/procurve.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index 4e4f17a..09a18ca 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -2,7 +2,7 @@ class Procurve < Oxidized::Model # some models start lines with \r # previous command is repeated followed by "\eE", which sometimes ends up on last line - prompt /^\r?([\w -]+\eE)?([\w\-\.]+# )$/ + prompt /^\r?([\w -]+\eE)?([\w\.-]+# )$/ comment '! ' -- cgit v1.2.1 From 3eecb15399334dfcb519680fc39e666c3b4f1ada Mon Sep 17 00:00:00 2001 From: Arnoud Vermeer Date: Wed, 18 May 2016 14:38:09 +0200 Subject: Update procurve.rb Less escaping. --- lib/oxidized/model/procurve.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/model/procurve.rb b/lib/oxidized/model/procurve.rb index 09a18ca..392f510 100644 --- a/lib/oxidized/model/procurve.rb +++ b/lib/oxidized/model/procurve.rb @@ -2,7 +2,7 @@ class Procurve < Oxidized::Model # some models start lines with \r # previous command is repeated followed by "\eE", which sometimes ends up on last line - prompt /^\r?([\w -]+\eE)?([\w\.-]+# )$/ + prompt /^\r?([\w -]+\eE)?([\w.-]+# )$/ comment '! ' -- cgit v1.2.1