Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #1273 for X100-202310100600.0-EVO #1274

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

chidanandpujar
Copy link
Collaborator

@chidanandpujar chidanandpujar commented Oct 18, 2023

Fix for EVO version format X100-202310100600.0-EVO

~/pyez_release_268_test1/py-junos-eznc/tests/functional# python test_get_facts_qfx.py 
> /root/pyez_release_268_test1/venv/lib/python3.9/site-packages/junos_eznc-2.6.8+0.g0745dd0e.dirty-py3.9.egg/jnpr/junos/facts/swver.py(15)__init__()
-> if "X" == self.type:
(Pdb) c
> /root/pyez_release_268_test1/venv/lib/python3.9/site-packages/junos_eznc-2.6.8+0.g0745dd0e.dirty-py3.9.egg/jnpr/junos/facts/swver.py(15)__init__()
-> if "X" == self.type:
(Pdb) c
{'2RE': False,
 'HOME': '/home/root',
 'RE0': {'last_reboot_reason': 'software reboot',
         'mastership_state': 'Master',
         'model': 'RE-QFXxyz',
         'status': 'OK',
         'up_time': '1 hour, 47 minutes, 48 seconds'},
 'RE1': None,
 'RE_hw_mi': False,
 'current_re': ['re0'],
 'domain': 'xyz',
 'fqdn': 'xyz',
 'hostname': 'zyz',
 'hostname_info': {'re0': 'xyz'},
 'ifd_style': 'SWITCH',
 'junos_info': {'re0': {'object': junos.version_info(major=(xx, x), type=X, minor=(100, '2', 2310100600), build=None),
                        'text': 'xx.xxX100-202310100600.0-EVO'}},
 'master': 'RE0',
 'model': 'QFXxyz',
 'model_info': {'re0': 'QFXxyz-64CD'},
 'personality': 'SWITCH',
 're_info': {'default': {'0': {'last_reboot_reason': 'software reboot',
                               'mastership_state': 'Master',
                               'model': 'RE-QFXxyz',
                               'status': 'OK'},
                         'default': {'last_reboot_reason': 'software reboot',
                                     'mastership_state': 'Master',
                                     'model': 'RE-QFXxyz',
                                     'status': 'OK'}}},
 're_master': {'default': '0'},
 'serialnumber': 'FU1923AN0012',
 'srx_cluster': None,
 'srx_cluster_id': None,
 'srx_cluster_redundancy_group': None,
 'switch_style': 'VLAN_L2NG',
 'vc_capable': False,
 'vc_fabric': None,
 'vc_master': None,
 'vc_mode': None,
 'version': 'xx.xX100-202310100600.0-EVO',
 'version_RE0': 'xx.xX100-202310100600.0-EVO',
 'version_RE1': None,
 'version_info': junos.version_info(major=(xx, x), type=X, minor=(100, '2', 2310100600), build=None),
 'virtual': False}

Copy link
Collaborator

@dineshbaburam91 dineshbaburam91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@chidanandpujar chidanandpujar merged commit 25a5f6b into Juniper:master Oct 26, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants