Skip to main content

UnitFamily

Struct UnitFamily 

Source
#[non_exhaustive]
pub struct UnitFamily {
Show 39 fields pub name: String, pub mtu: Option<String>, pub filter: Option<FamilyFilter>, pub rpf_check: Option<RpfCheck>, pub policer: Option<FamilyPolicer>, pub sampling: Option<FamilySampling>, pub vlan_id: Option<String>, pub vlan_id_list: Vec<String>, pub addresses: Vec<UnitAddress>, pub destination_udp_port: Option<String>, pub ethernet_switching: Option<EthernetSwitching>, pub nd6_max_cache: Option<String>, pub nd6_stale_time: Option<String>, pub nd6_new_hold_limit: Option<String>, pub pppoe: Option<PppoeUnderlyingOptions>, pub demux_source: Vec<String>, pub demux_destination: Vec<String>, pub dhcp: Option<DhcpClient>, pub dhcp_client: Option<DhcpClient>, pub dhcpv6_client: Option<Dhcpv6Client>, pub no_redirects: bool, pub no_redirects_ipv6: bool, pub core_facing: bool, pub receive_options_packets: bool, pub receive_ttl_exceeded: bool, pub multicast_only: bool, pub unconditional_src_learn: bool, pub tunnel_loopback: bool, pub mac_validate: Option<String>, pub tcp_mss: Option<String>, pub arp_max_cache: Option<String>, pub dad_proxy: Option<String>, pub ndp_proxy: Option<String>, pub proxy_inet_address: Option<String>, pub unnumbered_address: Option<UnnumberedAddress>, pub accounting: Option<FamilyAccounting>, pub targeted_broadcast: Option<TargetedBroadcast>, pub vlan_rewrite: Vec<VlanTranslation>, pub next_hop_tunnel: Vec<NextHopTunnel>,
}
Expand description

A family <name> of a logical unit, with the settings that apply to it.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§name: String

e.g. "inet", "inet6", "iso", "mpls".

§mtu: Option<String>§filter: Option<FamilyFilter>§rpf_check: Option<RpfCheck>§policer: Option<FamilyPolicer>§sampling: Option<FamilySampling>§vlan_id: Option<String>

vlan-id of family bridge.

§vlan_id_list: Vec<String>

vlan-id-list of family bridge: IDs and <from>-<to> ranges.

§addresses: Vec<UnitAddress>§destination_udp_port: Option<String>

destination-udp-port of a family on a UDP tunnel such as fti.

§ethernet_switching: Option<EthernetSwitching>

The port settings of family ethernet-switching; None for other families.

§nd6_max_cache: Option<String>

The nd6-max-cache of family inet6.

§nd6_stale_time: Option<String>

Seconds; the nd6-stale-time of family inet6.

§nd6_new_hold_limit: Option<String>

The nd6-new-hold-limit of family inet6.

§pppoe: Option<PppoeUnderlyingOptions>

The settings of family pppoe, which are those of pppoe-underlying-options.

§demux_source: Vec<String>

The prefixes of demux-source.

§demux_destination: Vec<String>

The prefixes of demux-destination.

§dhcp: Option<DhcpClient>

The dhcp block of family inet.

§dhcp_client: Option<DhcpClient>§dhcpv6_client: Option<Dhcpv6Client>§no_redirects: bool§no_redirects_ipv6: bool§core_facing: bool§receive_options_packets: bool§receive_ttl_exceeded: bool§multicast_only: bool§unconditional_src_learn: bool§tunnel_loopback: bool§mac_validate: Option<String>

loose or strict.

§tcp_mss: Option<String>§arp_max_cache: Option<String>§dad_proxy: Option<String>

interface-restricted or interface-unrestricted, from dad-proxy.

§ndp_proxy: Option<String>

interface-restricted or interface-unrestricted, from ndp-proxy.

§proxy_inet_address: Option<String>

The inet-address of proxy in family tcc.

§unnumbered_address: Option<UnnumberedAddress>§accounting: Option<FamilyAccounting>§targeted_broadcast: Option<TargetedBroadcast>§vlan_rewrite: Vec<VlanTranslation>§next_hop_tunnel: Vec<NextHopTunnel>

Trait Implementations§

Source§

impl Clone for UnitFamily

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnitFamily

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for UnitFamily

Source§

impl PartialEq for UnitFamily

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for UnitFamily

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.