#[non_exhaustive]pub struct RoutingInstance {
pub name: String,
pub instance_type: Option<String>,
pub description: Option<String>,
pub route_distinguisher: Option<String>,
pub interfaces: Vec<String>,
pub vrf_target_import: Option<String>,
pub vrf_target_export: Option<String>,
pub vrf_import_policies: Vec<String>,
pub vrf_export_policies: Vec<String>,
pub bgp_srv6: Option<BgpSrv6>,
pub l2vpn: Option<L2vpn>,
}Expand description
A routing instance. Of the protocol configuration nested inside the instance only bgp_srv6 and l2vpn are
extracted.
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§instance_type: Option<String>e.g. "vrf", "virtual-router".
description: Option<String>§route_distinguisher: Option<String>§interfaces: Vec<String>§vrf_target_import: Option<String>From vrf-target <target> (both directions) or vrf-target { import ...; }.
vrf_target_export: Option<String>§vrf_import_policies: Vec<String>Policies from vrf-import / vrf-export.
vrf_export_policies: Vec<String>§bgp_srv6: Option<BgpSrv6>protocols bgp source-packet-routing srv6, the SRv6 service SIDs of the VRF.
l2vpn: Option<L2vpn>protocols l2vpn, the Layer 2 VPN of an instance-type l2vpn instance.
Implementations§
Trait Implementations§
Source§impl Clone for RoutingInstance
impl Clone for RoutingInstance
Source§impl Debug for RoutingInstance
impl Debug for RoutingInstance
impl Eq for RoutingInstance
Source§impl PartialEq for RoutingInstance
impl PartialEq for RoutingInstance
impl StructuralPartialEq for RoutingInstance
Auto Trait Implementations§
impl Forget for RoutingInstance
impl Freeze for RoutingInstancewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<BgpSrv6Locator>: Freeze,
PhantomData<L2vpnSite>: Freeze,
PhantomData<TraceFlag>: Freeze,
impl Move for RoutingInstance
impl RefUnwindSafe for RoutingInstance
impl Send for RoutingInstancewhere
RawVecInner: Send,
impl Sync for RoutingInstancewhere
RawVecInner: Sync,
impl Unpin for RoutingInstance
impl UnsafeUnpin for RoutingInstancewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<BgpSrv6Locator>: UnsafeUnpin,
PhantomData<L2vpnSite>: UnsafeUnpin,
PhantomData<TraceFlag>: UnsafeUnpin,
impl UnwindSafe for RoutingInstancewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more