From f751b7e8deeb41fd9ad1e23fd3a254172b6daaaa Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 14 Jun 2014 15:21:57 +0530 Subject: [PATCH] to support VMX --- lib/jnpr/junos/facts/personality.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/junos/facts/personality.py b/lib/jnpr/junos/facts/personality.py index 0c3115264..d36914eb5 100644 --- a/lib/jnpr/junos/facts/personality.py +++ b/lib/jnpr/junos/facts/personality.py @@ -16,7 +16,7 @@ def facts_personality(junos, facts): persona = 'SWITCH' elif examine.startswith("MX"): persona = 'MX' - elif examine.startswith("vMX"): + elif re.match('^VMX', examine, re.I): facts['virtual'] = True persona = 'MX' elif examine.startswith("VJX"):