Enum snowcap_main::NetworkSelection[][src]

pub(crate) enum NetworkSelection {
    CustomNetwork,
    TopologyZoo {
        gml_file: String,
        seed: u64,
        many_prefixes: bool,
        random_root: bool,
        scenario: Scenario,
    },
    ExampleNetwork {
        initial_variant: usize,
        final_variant: Option<usize>,
        repetitions: Option<Reps>,
        topology: Topology,
    },
}

This is the binary to use the runtime systen esily. This program will generate the topology and the reconfiguration scenario (based on the options provided), synthesize a reconfiguration order and perform this order on a network simulated inside GNS3 using FRRouting.

Variants

CustomNetwork

Use the custom hard-coded network

TopologyZoo

Use the network from Topology Zoo

Fields of TopologyZoo

gml_file: String

GML file to use

seed: u64

Random seed, to get reproducable networks

many_prefixes: bool

use many prefixes (i.e., 5 prefixes, distributed with a probability of 0.5)

random_root: bool

Use a random roots when generating configuration

scenario: Scenario

Select the reconfiguration scenario

ExampleNetwork

Use an example network, provided by snowcap

Fields of ExampleNetwork

initial_variant: usize

Initial variant

final_variant: Option<usize>

Final variant

repetitions: Option<Reps>

Repetitions (does not affect every variant)

topology: Topology

Topology to use (from the example topologies)

Implementations

impl NetworkSelection[src]

pub fn repr(&self) -> String[src]

Stringify the network

Trait Implementations

impl Clap for NetworkSelection[src]

impl Debug for NetworkSelection[src]

impl FromArgMatches for NetworkSelection[src]

impl IntoApp for NetworkSelection[src]

impl Subcommand for NetworkSelection[src]

Auto Trait Implementations

impl RefUnwindSafe for NetworkSelection[src]

impl Send for NetworkSelection[src]

impl Sync for NetworkSelection[src]

impl Unpin for NetworkSelection[src]

impl UnwindSafe for NetworkSelection[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> Instrument for T[src]

impl<T> Instrument 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]

impl<T> WithSubscriber for T[src]