pub struct NetworkConfig {Show 19 fields
pub hostname: Option<String>,
pub domain_name: Option<String>,
pub interfaces: Vec<Interface>,
pub vlans: Vec<Vlan>,
pub routing: RoutingConfig,
pub acls: Vec<Acl>,
pub nat: Vec<NatRule>,
pub ntp: Vec<NtpServer>,
pub dns: Vec<IpAddr>,
pub snmp: Option<SnmpConfig>,
pub aaa: Option<AaaConfig>,
pub stp: Option<GlobalStp>,
pub logging: Option<LoggingConfig>,
pub users: Vec<LocalUser>,
pub line_vty: Option<LineVty>,
pub ssh: Option<SshConfig>,
pub banner: Option<String>,
pub unknown_blocks: Vec<UnknownBlock>,
pub platform_specific: Vec<UnknownBlock>,
}Expand description
Root object returned by the ios_config::parse function.
Every top-level section of a show running-config output maps to a
field here. Unrecognized commands are never silently dropped — they
are collected in unknown_blocks.
Fields§
§hostname: Option<String>Value of the hostname command.
domain_name: Option<String>Value of the ip domain-name command.
interfaces: Vec<Interface>All interface blocks in config order.
vlans: Vec<Vlan>All vlan <id> database blocks.
routing: RoutingConfigRouting table: static routes, OSPF, BGP, EIGRP.
acls: Vec<Acl>Named and numbered access control lists.
nat: Vec<NatRule>NAT rules (ip nat inside source …).
ntp: Vec<NtpServer>NTP servers (ntp server …).
dns: Vec<IpAddr>DNS name servers (ip name-server …), in config order.
snmp: Option<SnmpConfig>SNMP configuration (snmp-server …).
aaa: Option<AaaConfig>AAA configuration (aaa new-model, authentication/authorization lists).
stp: Option<GlobalStp>Global spanning-tree settings (spanning-tree mode …).
logging: Option<LoggingConfig>Logging configuration (logging buffered …, logging host …).
users: Vec<LocalUser>Local user accounts (username … privilege … secret …).
line_vty: Option<LineVty>line vty configuration (exec-timeout, transport-input).
ssh: Option<SshConfig>ip ssh configuration.
banner motd text (delimiters stripped).
unknown_blocks: Vec<UnknownBlock>Commands the parser did not recognize, grouped by their config block. Nothing is silently dropped — use this to audit parse coverage.
platform_specific: Vec<UnknownBlock>Platform-specific commands that have no vendor-neutral equivalent.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more