Expand description
Typed views of common JunOS config statements, extracted from a tree parsed by
asterust::config::juniper (brace-delimited show configuration output).
JunOS nests everything under a few top-level blocks (interfaces, protocols, routing-options,
routing-instances, policy-options, firewall, system), so each module exposes a free function that reads the relevant block from a
asterust::config::Config rather than a per-block constructor. JunosDevice bundles a parsed
config with all of them as getters.
The module tree mirrors the configuration hierarchy: system { radius-server ... } is
system::radius_server, protocols { bgp { ... } } is protocols::bgp. A statement with many children of
its own gets a folder, e.g. system::services::ssh for system { services { ssh { ... } } }.
Statements deactivated with inactive: are skipped. | display set output is not supported.
Re-exports§
pub use device::JunosDevice;
Modules§
- device
JunosDevice: one parsed JunOS config with every supported view as a getter.- firewall
firewall { ... }: stateless filters and policers.- interfaces
interfaces { ... }: physical interfaces and their logical units.- policy_
options policy-options { ... }: policy statements, communities, prefix lists and AS paths.- protocols
protocols { ... }: one module per protocol.- routing_
instances routing-instances { ... }, including VRFs.- routing_
options routing-options { ... }.- system
system { ... }.