asterust-junos 0.4.5

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

| 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|2>` entries (wide-metrics-only, preferences, prefix-export-limit, authentication type and key chain) and interfaces: passive, point-to-point, LSP, CSNP and hello options, LDP synchronization, BFD, protection and the other interface flags, plus each `level` entry (metrics, hello and hold timers, priority, hello authentication type and key chain, and srv6-adjacency-segment locators with end-x-sid, flavors, micro-adjacency-sid and lan-neighbor; keys with the `secrets` feature) |
| `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) |
| `protocols::lldp_med` | `protocols lldp-med` | enable/disable, fast-start, tlv-filter and tlv-select, and the interfaces (enable/disable, tlv-filter, tlv-select, the civic-based and ELIN location); the statements come from the User Access guide, since the CLI Reference has no page |
| `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, and the actions add-path, advertise-locator, aggregate-bandwidth, aggregate-weight, aigp-originate, as-path-expand, assisted-replication, bgp-output-queue-priority, class, color, cos-next-hop-map, damping, default-action, destination-class and source-class, dynamic-tunnel-attributes, external, forwarding-class, install-nexthop, install-to-fib, limit-bandwidth, map-to-interface, no-entropy-label-capability, origin, preference, prefix-attribute-flags, prefix-segment, priority, set-down-bit, sr-te-template, ssm-source, tag and validation-state, and community lists; the conditions are protocol, family, community, community-count, as-path and as-path-group, the as-path-neighbors, as-path-origins and as-path-transits lists, as-path-unique-count and as-path-calc-length, prefix-list and prefix-list-filter, route-filter and route-filter-list, source-address-filter and source-address-filter-list, neighbor, next-hop, next-hop-type, interface, rib, area, level, external, internal, route-type, state, tag, color, metric, preference, local-preference, origin, aggregate-contributor, programmed, traffic-engineering, condition, nlri-route-type, mac-filter-list, multicast-scoping, rtf-prefix-list, validation-database, validation-database-instance (Junos OS Evolved) and policy), 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), forwarding class sets, restricted queues, 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), the interfaces (classifiers, rewrite rules, scheduler maps, shaping rates, traffic-control profiles, forwarding-class sets, slices, virtual channel groups, units), interface sets and routing instances that apply them, virtual channels and groups, forwarding policy (next-hop maps, classification overrides), host-outbound-traffic, fragmentation maps, loss-priority maps and rewrites, system defaults, traceoptions, tri-color and copy-plp-all, and the platform statements: shared and dedicated buffers, dedicated buffer profiles and dynamic threshold profiles, congestion notification profiles, drop congestion notification, the MPLS ECN map, `options`, `multi-destination`, `fabric`, adaptive shapers, adjustment-control profiles and application-traffic-control |
| `firewall` | `firewall` | `family` filters (terms with `from` conditions and `then` actions) and policers |
| `services::rpm::twamp` | `services rpm twamp` | the client (control connections with their authentication-mode, control-type, destination-interface and port, history-size, moving-average-size, persistent-results, routing-instance, source-address, target-address, the TCP keepalive options, test-count, test-interval, test-start and traps, and their test sessions with data-fill-with, data-size, destination-port, dscp-code-points, offload-type, probe-count, probe-interval, source-address, source-routing, target-address with `local-link`, thresholds, traps and ttl) and the server (authentication-key-chain, authentication-mode, client-list, the `light` and `managed` servers, the connection, session and timeout limits, offload-type, port, routing-instance-list and the TCP keepalive options; the key chain secrets with the `secrets` feature), `post-cli-implicit-firewall`; both the Junos OS and the Junos OS Evolved spellings are read; the `rpm` probes are not extracted |
| `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) |