Skip to main content

Crate asterust_junos

Crate asterust_junos 

Source
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), 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.

Statements deactivated with inactive: are skipped. | display set output is not supported.

Re-exports§

pub use device::JunosDevice;

Modules§

bgp
protocols { bgp { ... } }.
device
JunosDevice: one parsed JunOS config with every supported view as a getter.
firewall
firewall { ... }: stateless filters and policers.
interface
interfaces { ... }: physical interfaces and their logical units.
isis
protocols { isis { ... } }.
ospf
protocols { ospf { ... } }.
policy_options
policy-options { ... }: policy statements, communities, prefix lists and AS paths.
routing_instance
routing-instances { ... }, including VRFs.
routing_options
routing-options { ... }.