summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/procurve.rb
diff options
context:
space:
mode:
authorArnoud Vermeer <funzoneq@users.noreply.github.com>2016-05-18 10:44:15 +0200
committerArnoud Vermeer <funzoneq@users.noreply.github.com>2016-05-18 10:44:15 +0200
commiteed8b050a4e38bcb57ccf2fe9b573886095a272b (patch)
tree5dc85f362f3cbe213ffbe00c7c18848ceda63abf /lib/oxidized/model/procurve.rb
parent6c38bdbed01d9ae9f54571daddda958985e3a9d8 (diff)
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. ```
Diffstat (limited to 'lib/oxidized/model/procurve.rb')
-rw-r--r--lib/oxidized/model/procurve.rb2
1 files changed, 1 insertions, 1 deletions
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 '! '