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