jnpr.junos.facts

jnpr.junos.facts.chassis

jnpr.junos.facts.chassis.facts_chassis(junos, facts)[source]
The following facts are assigned:
facts[‘2RE’] : designates if the device can support two RE, not that it has them facts[‘RE_hw_mi’] : designates if the device is multi-instance-routing-engine facts[‘model’] : product model facts[‘serialnumber’] : serial number
NOTES:
  1. if in a 2RE system, this routine will only load the information from the first chassis item.
  2. hostname, domain, and fqdn are retrieved from configuration data; inherited configs are checked.

jnpr.junos.facts.domain

jnpr.junos.facts.domain.facts_domain(junos, facts)[source]
The following facts are required:
facts[‘hostname’]
The following facts are assigned:
facts[‘domain’] facts[‘fqdn’]

jnpr.junos.facts.ifd_style

jnpr.junos.facts.ifd_style.facts_ifd_style(junos, facts)[source]

jnpr.junos.facts.personality

jnpr.junos.facts.personality.facts_personality(junos, facts)[source]

jnpr.junos.facts.routing_engines

jnpr.junos.facts.routing_engines.facts_routing_engines(junos, facts)[source]

jnpr.junos.facts.session

facts[‘HOME’] = login home directory

jnpr.junos.facts.session.facts_session(dev, facts)[source]

jnpr.junos.facts.srx_cluster

jnpr.junos.facts.srx_cluster.facts_srx_cluster(junos, facts)[source]

jnpr.junos.facts.switch_style

jnpr.junos.facts.switch_style.facts_switch_style(junos, facts)[source]

jnpr.junos.facts.swver

jnpr.junos.facts.swver.facts_software_version(junos, facts)[source]
The following facts are required:
facts[‘master’]
The following facts are assigned:
facts[‘hostname’] facts[‘version’] facts[‘version_<RE#>’] for each RE in dual-RE, cluster or VC system facts[‘version_info’] for master RE
class jnpr.junos.facts.swver.version_info(verstr)[source]

Bases: object

__init__(verstr)[source]

verstr - version string

jnpr.junos.facts.swver.version_yaml_representer(dumper, version)[source]