asterust-junos 0.4.1

Typed Juniper JunOS config views (interfaces, OSPF, BGP, IS-IS, routing instances, policy options, firewall filters, system) extracted from an asterust config tree.
Documentation

asterust-junos

Typed views of common Juniper JunOS config statements, extracted from a config tree parsed by asterust (config::juniper, brace-format show configuration).

Module Block Extracted
interfaces interfaces description, disable, mtu, speed, encapsulation, vlan-tagging, flexible-vlan-tagging, native-vlan-id, per-unit-scheduler, no-gratuitous-arp-request, hold-time, ether-options (also gigether-options and fastether-options: auto-negotiation, flow-control, loopback, source-filtering, speed, link-mode, fec, 802.3ad bundle membership), aggregated-ether-options (lacp, bfd-liveness-detection, link-speed, minimum-links, flow-control, loopback, source-filtering), optics-options (low-light alarm and warning, wavelength, tx-power, fec, modulation-format, laser-enable, ...), otn-options (fec, rate, tti, signal-degrade, ...), link-degrade-monitor (thresholds, recovery), auto-configure (vlan-ranges and stacked-vlan-ranges with their dynamic profiles; the authentication password with the secrets feature), units (description, vlan-id, vlan-id-range, vlan-tags, input-vlan-map and output-vlan-map, encapsulation, families, inet/inet6/iso addresses, and per family: mtu, filter, rpf-check, policer, sampling, address options such as primary, preferred, destination, arp vlan-id and vlan-id-list of family bridge, and vrrp-group/vrrp-inet6-group with tracking; the VRRP authentication-key with the secrets feature)
protocols::ospf protocols ospf global options (reference-bandwidth, preferences, export and import policies, rib-group, overload, spf-options including microloop-avoidance, graceful-restart, traffic-engineering, database-protection, backup-spf-options, source-packet-routing (including flexible algorithm participation), topologies, domain-id, lsa-refresh-interval, prefix-export-limit and flags), areas (stub, nssa, area-range, virtual-link, network-summary policies, label-switched-path, context-identifier) and their interfaces: passive, metric, priority, hello, dead, retransmit and poll intervals, transit delay, interface type, authentication (key ids, and the keys with the secrets feature), BFD, LDP synchronization, neighbors, topologies, protection, post-convergence-lfa and the other interface flags
protocols::ospf3 protocols ospf3 the same statements as protocols::ospf (it returns the same Ospf type, which also gains traceoptions), plus the OSPFv3-only realm entries (Ospf::realms) and the area-level inter-area-prefix-export and inter-area-prefix-import
protocols::bgp protocols bgp groups (type, peer-as, local-as, local-address, cluster, families, import/export policies) and neighbors, plus the peer options shared by bgp, group and neighbor (local-as, multihop, remove-private, authentication algorithm and key-chain, timers, keep, preferences, metric-out and session flags; keys with the secrets feature), bfd-liveness-detection (including strict mode), graceful-restart (long-lived helper, forwarding-state-bit and notification flags), multipath (including prioritization), per-family settings (family <afi> <safi>: prefix-limit, accepted-prefix-limit, add-path, loops, aigp, rib-group, no-validate, extended-nexthop, extended-nexthop-color, extended-nexthop-tunnel, entropy-label, output-queue, route-refresh and withdraw priorities, per-family graceful-restart and flags), group allow, peer-as-list and dynamic-neighbor blocks (including peer-auto-discovery for BGP unnumbered), and the bgp-level path-selection, multipath-build-priority and output-queue-priority, source-packet-routing srv6 locators (end-dt4/dt6/dt46-sid, micro-dt4/dt6/dt46-sid, non-default) and the per-family advertise-srv6-service and accept-srv6-service
protocols::evpn protocols evpn encapsulation, multicast-mode, default-gateway, extended-vni-list and extended-vlan-list, vni-options (vrf-target, df hold time), duplicate-mac-detection, mac-mobility, mac limits and lists, interfaces, assisted-replication, remote-ip-host-routes, static-multihoming-peer, the DF election and legacy flags, irb-symmetric-routing, traceoptions and the other flags; interconnect, oism and source-packet-routing are not extracted
protocols::igmp and protocols::mld protocols igmp and protocols mld accounting, maximum-transmit-rate, the query and robust-count timers, traceoptions (IGMP), and the interfaces (disable, accounting, distributed, group-limit, group-policy, group-threshold, log-interval, immediate-leave, oif-map, passive, promiscuous-mode, ssm-map, ssm-map-policy, version and the static groups with their sources); both return the shared GroupMembership
protocols::isis protocols isis global options (reference-bandwidth, export and import policies, LSP and SNP sizes, rib-group, overload, spf-options including microloop-avoidance and weighted one-hop multipath, graceful-restart, traceoptions, traffic-engineering, backup-spf-options, topologies, dynamic-overload, no-external-export, source-packet-routing (including flexible algorithm participation and srv6 locators with end-sid, flavors, micro-node-sid and algorithm), strict-dual-isis and flags), the `level <1
protocols::l2vpn routing-instances <name> protocols l2vpn control-word, encapsulation-type, traceoptions, the BFD oam block, and the sites (identifier, preference, hot-standby, static incoming label, attachment identifier) with their interfaces (description, remote-site-id, community and the per-interface options); a Layer 2 VPN only exists inside a routing instance, so it is read through RoutingInstance::l2vpn; neighbor is not extracted
protocols::ldp protocols ldp disable, keepalive and targeted-hello timers, preference, families, dual-transport, transport address and preference, deaggregate, mtu-discovery, explicit-null, no-forwarding, track-igp-metric, l2-smart-policy, strict-targeted-hellos, upstream-label-assignment, p2mp, longest-match, export, import and egress policies, dod-request-policy, igp-synchronization, graceful-restart, session-protection, auto-targeted-session, make-before-break, label-withdrawal-delay, log-updown, traceoptions, the interfaces (disable, hello-interval, hold-time, transport-address, allow-subnet-mismatch, link-protection) and the sessions and session groups (authentication algorithm and key chain, downstream-on-demand, mtu-discovery, transport-address; the authentication key with the secrets feature)
protocols::lldp protocols lldp enable/disable, advertisement-interval, hold-multiplier, transmit-delay, chassis-id, dest-mac-type, the notification and topology intervals, management address and interface, port and neighbour display options, tlv-filter, tlv-select, vlan-name-tlv-option, traceoptions and the interfaces (enable/disable, dest-mac-type, power-negotiation, trap-notification, tlv-filter, tlv-select); lldp-med is not extracted
protocols::mpls protocols mpls the router-wide options (disable, explicit-null, no-cspf, no-propagate-ttl, no-decrement-ttl, ipv6-tunneling, expand-loose-hop, traffic-engineering, the optimize and smart-optimize timers, rsvp-error-hold-time), admin-groups, path-mtu, log-updown, the interfaces (disable, admin-group, srlg) and the dynamic label-switched-paths (to, from, bandwidth, priority, metric, preference, timers, link and node protection, fast-reroute, admin-group, install, primary and secondary paths), the explicit path hop lists, static-label-switched-path (ingress, transit and bypass) and container-label-switched-path, and the router-wide traceoptions, statistics, diffserv-te (bandwidth model and TE class matrix), class-of-service, priority, hop-limit, preference, revert-timer, ultimate-hop-popping and sensor-based-stats; segment routing, egress-protection, lsp-external-controller, label-range, oam and transit-lsp-association are not extracted
protocols::pcep protocols pcep message-rate-limit, update-rate-limit, max-provisioned-lsps, the segment list depths, disable-multipath-capability, propagate-max-segmentlist, traceoptions, the pce entries (destination, local address, pce-type, delegation, LSP cleanup and retry timers, request timer and priority, unknown message and request limits, max-sid-depth, the point-to-multipoint, SPRING and SRv6 capabilities, traffic steering, pce-group, traceoptions; the authentication key with the secrets feature) and the pce-group entries
protocols::pim protocols pim disable, assert-timeout, dense-groups, dr-election-on-p2p, export and import policies, families, graceful-restart, join-load-balance, join-prune-timeout, mldp-inband-signalling, nonstop-routing, override-interval, propagation-delay, reset-tracking-bit, rib-group, sglimit, spt-threshold, traceoptions, tunnel-devices; interfaces (mode, version, hello-interval, priority, timers, neighbor and join policies, families, dual-dr, df-election, multiple-triggered-joins, BFD with the key chain name); and the rp (auto-rp, bidirectional, bootstrap, embedded-rp, local with anycast-pim, static, register-limit, policies)
protocols::rsvp protocols rsvp disable, keep-multiplier, refresh-time, node-hello, no-enhanced-frr-bypass, load-balance, preemption, soft-preemption, graceful-restart, traceoptions and the interfaces (disable, aggregate, bandwidth, hello-interval, reliable, subscription, update-threshold, link-protection with its bypasses; the authentication key with the secrets feature)
protocols::source_packet_routing protocols source-packet-routing SR-TE: segment lists (hops with ip-address, label, label-type, strict/loose, srv6-sid; srv6, compute, dynamic, auto-translate, inherit-label-nexthops), source-routing-paths (to, from, color, binding-sid, metric, no-ingress, sr-preference, te-group-id, srv6, primary and secondary segment lists with weight, return-path and compute) and the global depth, preference, retry-timer, sbfd-frr, srv6, preserve-nexthop-hierarchy and tunnel-tracking options
routing_instances routing-instances instance-type, route-distinguisher, interfaces, vrf-target, vrf-import/vrf-export, the BGP source-packet-routing srv6 locators of the instance, and its protocols l2vpn (see protocols::l2vpn)
routing_options routing-options router-id, ipv6-router-id, autonomous-system (loops, asdot-notation, independent-domain), confederation, graceful-restart, nonstop-routing, maximum-paths, forwarding-table (including srv6-chain-merge), interface-routes, resolution, options syslog, static routes (next-hop, qualified-next-hop, discard/reject/receive, next-table, route attributes and defaults), aggregate and generate routes (policy, brief/full, discard, attributes), martians, ribs (per-table static, aggregate, generate, martians), rib-groups, instance-import/instance-export, auto-export, fate-sharing, flex-algorithm (color, use-transport-class, definition with metric-type, priority, spf, strict-spf, admin-group, exclude-srlg and use-flex-algorithm-prefix-metric), source-packet-routing srv6 (no-reduced-srh, transit-srh-insert, oam, uSID blocks, classic and micro-sid locators with algorithm, anycast, end-sid and flavors)
policy_options policy-options policy statements (terms with from/to conditions and then actions, including load-balance, resolution-map, multipath-resolve and srv6 locator), communities, prefix lists, AS paths, AS path groups and resolution maps
class_of_service class-of-service classifiers (with their forwarding classes, loss priorities and code points), code-point aliases, forwarding classes (the queue and class forms), rewrite rules, schedulers (transmit, shaping, buffer, buffer-rate and excess rates, priority, excess priority, adjust options, ECN options, drop profile maps), scheduler maps, drop profiles (segmented and interpolated), traffic-control profiles (rates, per-priority rates, scheduler map, overhead accounting) and the interfaces (classifiers, rewrite rules, scheduler maps, shaping rates, traffic-control profiles, forwarding-class sets, slices, units) and interface sets that apply them; virtual channels, host-outbound-traffic, forwarding policy, restricted queues, fragmentation maps and the QFX buffer statements are not extracted
firewall firewall family filters (terms with from conditions and then actions) and policers
system system host-name, domain-name, domain-search, time-zone, static-host-mapping, backup-router, authentication-order, radius-server and tacplus-server (secrets with the secrets feature), root-authentication (method names, and the passwords and keys with the secrets feature), master-password (iteration count and function), diag-port-authentication and pic-console-authentication (method names, and the passwords with the secrets feature), license (autoupdate URL, key count, renew), location, ports (console, auxiliary), max-configurations-on-flash, max-configuration-rollbacks, no-redirects, default-address-selection, internet-options, commit, processes, scripts, dynamic-profile-options, extensions (JET applications and providers), autoinstallation (server URLs without passwords; the passwords with the secrets feature), schema, pixel-tracing, system flags (no-multicast-echo, auto-snapshot, ...), archival (site URLs without passwords), accounting (events and destination servers), name-servers, ntp (servers, peers, boot-server, source-address, trusted keys; key values with the secrets feature), syslog (hosts, files, users, console and their facility/severity rules, archive size/files, per-destination options such as match and explicit-priority), login (message, announcement, idle-timeout, deny-sources, password policy, retry-options, classes with access restrictions, users, whose passwords and keys need the secrets feature), services (ssh settings including ciphers, macs, key-exchange and authentication switches, telnet, ftp, netconf over ssh, web-management (http, https, interfaces, ports, certificates, session limits), netconf, xnm-clear-text, xnm-ssl, outbound-ssh clients, subscriber-management, static-subscribers, dhcp-local-server groups, local-policy-decision-function statistics, flow-tap-dtcp, service-deployment; secrets with the secrets feature)

The source tree mirrors the configuration hierarchy so a statement is easy to find: a folder per top-level block (system/, protocols/, policy_options/), a file per statement inside it (system/radius_server.rs, system/root_authentication.rs), and a folder instead of a file when that statement has many children of its own (system/services/ssh.rs, system/login/class.rs, system/syslog/host.rs). The types of each level are re-exported from its parent, e.g. system::RadiusServer.

use asterust_junos::JunosDevice;

let device = JunosDevice::parse(show_configuration_text);
for iface in &device.interfaces {
    println!("{}: {:?}", iface.name, iface.units);
}
if let Some(bgp) = &device.protocols.bgp {
    println!("{} BGP groups", bgp.groups.len());
}

Unlike the Cisco crates, JunosDevice reads every view once and exposes it as a field that mirrors the configuration hierarchy: device.protocols.bgp, device.protocols.ospf, device.system, device.routing_options, device.class_of_service. A protocol or block that is not configured is None, and the views read from named top-level blocks rather than one struct per block. JunosDevice also implements asterust::device::Device.

Secrets: passwords, keys and shared secrets are not read by default, only a has_* flag says whether one is configured. With the secrets feature (asterust-junos = { version = "...", features = ["secrets"] }) the matching Option<Secret> fields are filled with the value as written (usually the encrypted $9$... form). Secret prints as Secret(<redacted>) in Debug; read it with Secret::expose. Covered: BGP, OSPF, IS-IS, LDP, RSVP, VRRP, auto-configure, and in system the RADIUS and TACACS+ servers, NTP, login users, root and diag/PIC console authentication, archival, autoinstallation, license, outbound-ssh, static subscribers and subscriber-management. master-password has nothing to read, since the password is not part of the configuration.

Limitations: statements deactivated with inactive: are skipped; | display set output is not supported; protocols nested inside routing instances (other than bgp SRv6 and l2vpn), apply-groups expansion and BGP group-to-neighbor setting inheritance are not resolved.

Sources

The BGP, interface, OSPF and routing-options test fixtures (the DOC_* constants and doc_* tests) are adapted from Juniper's BGP User Guide, read on 2026-11-26. They are reindented and shortened, not verbatim, and the guide's typographic quotes are written as plain quotes.

Page Example used Fixtures
BGP Peering Sessions Example: Configuring External BGP Point-to-Point Peer Sessions (Device E) protocols::bgp::DOC_EXTERNAL_PEERS, interfaces::DOC_POINT_TO_POINT
same page Example: Configuring Internal BGP Peer Sessions (Device A) protocols::bgp::DOC_INTERNAL_PEERS, protocols::ospf::DOC_OSPF, the routing_options doc test
same page Example: Configure Multiple Single-Hop EBGP Sessions on Different Links Using the Same IPv6 Link-Local Address (R1) protocols::bgp::DOC_LINK_LOCAL (quoted neighbor names), interfaces::DOC_LINK_LOCAL (VLAN units, primary address)
BGP Route Reflectors Example: Configuring a Route Reflector (Device A) protocols::bgp::DOC_ROUTE_REFLECTOR (the guide's rendering of this output drops a closing brace, which is restored)
Routing Policies for BGP Communities Examples: Redistribute BGP Routes with a Specific Community Tag into IS-IS (Device C), Removes BGP Communities (R1, R2), Based on the Number of BGP Communities (R2) policy_options::DOC_COMMUNITY_TAG, policy_options::DOC_COMMUNITY_ACTIONS (the rendered output wraps lines mid-statement, which are rejoined)
TCP Access Restriction for BGP Examples: Configuring a Filter to Block TCP Access to a Port Except from Specified BGP Peers (Device E), Configuring a Filter to Limit TCP Access to a Port Based On a Prefix List firewall::DOC_BGP179_PEERS, firewall::DOC_BGP179_PREFIX_LIST (wrapped lines are rejoined)
Configuring Segment Routing Microloop Avoidance in OSPFv2 Networks (Segment Routing User Guide, read on 2026-11-27) Device R0 show protocols, the OSPF spf-options, backup-spf-options, source-packet-routing and interface post-convergence-lfa parts the protocols::ospf tests reads_microloop_avoidance, reads_the_bare_form, reads_post_convergence_lfa_and_source_packet_routing and reads_the_one_line_forms_of_the_guide_example (maximum-labels, the second interface and the block forms are added from the CLI Reference)
How to Configure Flexible Algorithms in OSPF for Segment Routing Traffic Engineering (OSPF User Guide, read on 2026-11-27) Device R0 show routing-options and show protocols ospf the routing_options::flex_algorithm tests (use-transport-class, color, strict-spf, priority, exclude-srlg, use-flex-algorithm-prefix-metric and the bare forms are added from the CLI Reference), the protocols::ospf source_packet_routing and traffic_engineering flex-algorithm tests
Example: Configuring SRv6 Network Programming in IS-IS Networks (Segment Routing User Guide, read on 2026-11-27) Device R0 show routing-options and show protocols (IS-IS part), shortened; the guide's rendering of flavor is irregular and is written as flavor { usd; } and flavor psp; routing_options::srv6 reads_the_guide_locator, the protocols::isis::srv6 tests reads_the_guide_node_segment and reads_the_guide_adjacency_segments (other cases are not from documentation)
Example: Configuring Layer 3 Services over SRv6 in BGP Networks (Segment Routing User Guide, read on 2026-11-27) Router R0 show protocols (BGP part) and show routing-instances, shortened the protocols::bgp::srv6 tests reads_the_guide_locator, reads_the_service_families and reads_the_routing_instance_locator (the micro-SID cases are not from documentation)
BGP Egress Traffic Engineering (BGP User Guide, read on 2026-11-27) Example: Configuring Static SR-TE Policy for an SRv6 Tunnel, Device R1 source-packet-routing results, with the guide's column padding removed the protocols::source_packet_routing tests reads_the_guide_segment_lists and reads_the_guide_source_routing_paths (the MPLS hops, secondary paths and global options are written from the CLI Reference and are not from documentation)
Basic MPLS Configuration (MPLS Applications User Guide, read on 2026-11-27) Example: Configuring MPLS on EX8200 and EX4500 Switches, provider and local PE show configuration (MPLS part), shortened the protocols::mpls tests reads_the_guide_interfaces and reads_the_guide_label_switched_path (the other tests are written from the CLI Reference and are not from documentation)
Gather Statistics on MPLS Sessions, Basic LSP Configuration and DiffServ-Aware Traffic Engineering Configuration (MPLS Applications User Guide, read on 2026-11-30) the mpls block of the traffic class statistics example (R1), the statistics and LSP of the automatic bandwidth sample, the automatic bandwidth traceoptions, and the te-class-matrix example, all shortened the protocols::mpls tests reads_the_guide_traffic_class_statistics, reads_the_guide_auto_bandwidth_statistics, reads_the_guide_traceoptions and reads_the_guide_inline_te_class (the other router-wide tests are written from the CLI Reference and are not from documentation)
Example: Configure and Apply Custom BA Classifiers, Example: Configuring Forwarding Classes, Example: Assigning Forwarding Classes to Output Queues, Example: Configure and Apply Rewrite Rules on a Security Device, Example: Configuring Class-of-Service Schedulers on a Security Device, Example: Configuring Priority Scheduling, Example: Configuring and Applying Scheduler Maps, Example: Configuring RED Drop Profiles, Example: Configuring Segmented and Interpolated Style Profiles and Example: Configuring a Four-Level Scheduler Hierarchy (Class of Service User Guide for Security Devices, read on 2026-11-30), and Example: Controlling Remaining Traffic (same guide) the show class-of-service blocks for classifiers, forwarding classes, rewrite rules, schedulers, scheduler maps, drop profiles, traffic-control profiles and interfaces, shortened and wrapped in class-of-service (the guide's code-point lists are written with commas) the class_of_service tests reads_the_guide_ba_classifier, reads_the_guide_code_point_lists, reads_the_guide_inet_precedence_classifier, reads_the_guide_queues, reads_the_guide_rewrite_rule, reads_the_guide_schedulers, reads_the_guide_scheduler_maps, reads_the_guide_red_profiles and reads_the_guide_segmented_and_interpolated_profiles, reads_the_guide_units, reads_the_guide_hierarchy and reads_the_guide_profiles (the other tests are written from the CLI Reference and are not from documentation)
PCEP Configuration (MPLS Applications User Guide, read on 2026-11-30) the pcep blocks of the examples (active stateful PCE, PCE group, limits and timers, point-to-multipoint, SPRING and the session flags), shortened and wrapped in protocols the protocols::pcep tests reads_the_guide_active_stateful_pce, reads_the_guide_pce_group, reads_the_guide_limits_and_timers, reads_the_guide_p2mp_and_spring_capabilities and reads_the_guide_session_flags (the other tests are written from the CLI Reference and are not from documentation)
same page, and Link-State Distribution Using BGP (BGP User Guide, read on 2026-11-27) the provider switch rsvp interfaces, and Router R1 show protocols (RSVP part) of Example: Configuring Link State Distribution Using BGP the protocols::rsvp test reads_the_guide_interfaces (the other tests are written from the CLI Reference and are not from documentation)
LDP Configuration (MPLS Applications User Guide, read on 2026-11-29) the link protection, native IPv6 support (including dual-transport), downstream on demand, longest match and traceoptions examples, and the egress, export, import and graceful-restart examples, shortened the protocols::ldp tests reads_the_guide_link_protection, reads_the_guide_ipv6_transport, reads_the_guide_downstream_on_demand_session and reads_the_guide_longest_match_policies_and_tracing (the other tests are written from the CLI Reference and are not from documentation)
Examples: Configuring PIM Sparse Mode, Configuring Static RP, Configuring PIM Bootstrap Router, Example: Configuring Anycast RP, Example: Configuring Bidirectional PIM, Configuring PIM and the Bidirectional Forwarding Detection (BFD) Protocol and Example: Configuring Nonstop Active Routing for PIM (Multicast Protocols User Guide, read on 2026-11-29) the show protocols pim blocks of those pages, shortened, with the guide's inline comments removed and the bidirectional block wrapped in protocols the protocols::pim tests reads_the_guide_sparse_mode_example, reads_the_guide_static_rp_example, reads_the_guide_anycast_rp_example, reads_the_guide_bootstrap_examples, reads_the_guide_bidirectional_example, reads_the_guide_bfd_examples and reads_the_guide_nonstop_routing_example (the other tests are written from the CLI Reference and are not from documentation)
Example: Configuring Nonstop Active Routing for PIM (Multicast Protocols User Guide, read on 2026-11-29; also used for PIM above) the ospf3 block of the show protocols output, shortened the protocols::ospf3 test reads_the_guide_nonstop_routing_example (the other tests are written from the CLI Reference and are not from documentation)
Example: Configuring an EVPN-VXLAN Fabric (MX and QFX), the QFX5110 L3 VXLAN gateway example and Configuring Loop Detection Settings (EVPN User Guide, read on 2026-11-29) the set protocols evpn commands of the leaf-1 and QFX5110 examples, and the duplicate-mac-detection commands of the loop detection page (written for a routing instance), all converted to hierarchy form under protocols evpn the protocols::evpn tests reads_the_guide_mx_qfx_example, reads_the_guide_qfx5110_example and reads_the_guide_duplicate_mac_detection (the other tests are written from the CLI Reference and are not from documentation)
Example: Configuring LLDP (Layer 2 Services User Guide, read on 2026-11-29) the protocols lldp block of the example the protocols::lldp test reads_the_guide_example (the other tests are written from the CLI Reference and the Configuring LLDP statement summary and are not from documentation)
Example: Configuring Source-Specific Multicast (Multicast Protocols User Guide, read on 2026-11-29), and the PIM sparse mode page above the igmp and mld interface blocks of the SSM page (the version and ssm-map examples), and the mld static groups of the sparse mode page the protocols::igmp test reads_the_guide_version_and_ssm_map and the protocols::mld test reads_the_guide_static_groups_and_ssm_map (the other tests are written from the CLI Reference and are not from documentation)
same page Device R1 show policy-options the policy_options tests doc_load_balance_and_multipath_resolve and doc_resolution_map_action_and_definition (the srv6 action and the two-mode resolution-map are written from srv6.md and the CLI Reference and are not from documentation)

Other pages consulted but not used for fixtures:

Not yet grounded in documentation or a real device: protocols l2vpn (the CLI Reference and the Configuring the Local Site on PE Routers in Layer 2 VPNs page only give syntax, not an example), protocols isis, routing-instances (VRFs, vrf-target, vrf-import/vrf-export), the inactive: handling, disable, bracketed policy lists (export [ a b ]), and the other extra cases in the tests, including policy_options prefix lists, AS paths and AS path groups, local-preference, next-hop, as-path-prepend, next term/next policy and block-form communities, and the firewall policers, flag and list match conditions, and the count, policer, log, syslog, forwarding-class and loss-priority actions. Those fixtures are marked "not from documentation" in the code and were written from knowledge of the JunOS hierarchy, so treat the corresponding fields as unverified. A Juniper IS-IS or Layer 3 VPN example page, or a sanitized show configuration snippet, would let these be replaced.

The system fixtures (host-name, domain-name, domain-search, static-host-mapping, backup-router, authentication-order, radius-server, tacplus-server, location, ports, max-configurations-on-flash, internet-options, commit, processes, scripts, dynamic-profile-options, extensions, autoinstallation, schema, pixel-tracing, archival, accounting, time-zone, root-authentication, master-password, diag-port-authentication, pic-console-authentication, license, name-server, ntp, syslog, login, services, outbound-ssh) follow the syntax in the Junos CLI Reference pages, not an example configuration.