Skip to content

Commit 6ee1a27

Browse files
authored
Merge pull request #72 from Botinoc/dev
Juniper: fix parsing version bug
2 parents d44bc4b + ac304df commit 6ee1a27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

JuniperMigration/JuniperParser.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ protected override void ParseVersion(object versionProvider)
157157
if (versionNode != null && versionNode.Value.Length > 0)
158158
{
159159
VendorVersion = Regex.Match(versionNode.Value, @"\d+(\.\d+)?").Value;
160+
} else
161+
{
162+
if (configNode.Parent.FirstAttribute.Value.Contains("xml.juniper.net"))
163+
{
164+
VendorVersion = Regex.Match(configNode.Parent.FirstAttribute.Value, @"\d+(\.\d+)?").Value;
165+
}
160166
}
161167
}
162168
}

0 commit comments

Comments
 (0)