pub struct NetworkConfiguration {
    pub network: String,
    pub ipv4: Option<Ipv4Network>,
    pub ipv6: Option<Ipv6Network>,
    pub enable: bool,
    pub default: LinkShape,
    pub rules: Option<Vec<LinkRule>>,
    pub callback_state: String,
    pub callback_target: Option<u64>,
    pub routing_policy: RoutingPolicyType,
}
Expand description

NetworkConfiguration specifies how a node’s network should be configured.

Fields

network: String

Network is the name of the network to configure.

ipv4: Option<Ipv4Network>

IPv4 and IPv6 set the IP addresses of this network device. If unspecified, the sidecar will leave them alone.

Your test-case will be assigned a B block in the range 16.0.0.1-32.0.0.0. X.Y.0.1 will always be reserved for the gateway and shouldn’t be used by the test.

ipv6: Option<Ipv6Network>

TODO: IPv6 is currently not supported.

enable: bool

Enable enables this network device.

default: LinkShape

Default is the default link shaping rule.

rules: Option<Vec<LinkRule>>

Rules defines how traffic should be shaped to different subnets.

TODO: This is not implemented.

callback_state: String

CallbackState will be signalled when the link changes are applied.

Nodes can use the same state to wait for all or a subset of nodes to enter the desired network state. See CallbackTarget.

callback_target: Option<u64>

CallbackTarget is the amount of instances that will have needed to signal on the Callback state to consider the configuration operation a success.

routing_policy: RoutingPolicyType

RoutingPolicy defines the data routing policy of a certain node. This affects external networks other than the network ‘Default’, e.g., external Internet access.

Trait Implementations

Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more