Struct snowcap::example_networks::SimpleNet[][src]

pub struct SimpleNet {}

Simplenet

SimpleNet

Trait Implementations

impl ExampleNetwork for SimpleNet[src]

fn net(initial_variant: usize) -> Network[src]

Get raw network without configuration

fn initial_config(net: &Network, variant: usize) -> Config[src]

Get the initial configuration

Variant 0:

  • All link weights are set to 1
  • The following bgp sessions are set:
    • e1 --> r1 (eBGP)
    • r1 --- r2 (iBGP Peer)
    • r1 --- r3 (iBGP Peer)
    • e4 --> r4 (eBGP)

Variant 1

  • All link weights are set to 1
  • The following bgp sessions are set:
    • e1 --> r1 (eBGP)
    • r1 --- r2 (iBGP Peer)
    • r1 --- r3 (iBGP Peer)
    • r1 --- r4 (iBGP Peer)

Variant 2

  • All link weights are set to 1
  • The following bgp sessions are set:
    • e1 --> r1 (eBGP)
    • e4 --> r4 (eBGP)
    • r1 --- r2 (iBGP Peer)
    • r1 --- r3 (iBGP Peer)
    • r1 --- r4 (iBGP Peer)
    • r2 --- r4 (iBGP Peer)
    • r3 --- r4 (iBGP Peer)

fn final_config(net: &Network, variant: usize) -> Config[src]

Get the end configuration

Variant 0

  • All link weights are set to 1
  • The following bgp sessions are set:
    • r4 --- r1 (iBGP Peer)
    • r4 --- r2 (iBGP Peer)
    • r4 --- r3 (iBGP Peer)
    • e4 --> r4 (eBGP)

Auto Trait Implementations

impl RefUnwindSafe for SimpleNet[src]

impl Send for SimpleNet[src]

impl Sync for SimpleNet[src]

impl Unpin for SimpleNet[src]

impl UnwindSafe for SimpleNet[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]