Struct testground::network_conf::NetworkConfiguration
source · [−]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.