-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EDGAR support using custom bridge name in managed mode #180
Conversation
af159c3
to
ff11860
Compare
opendut-edgar/src/setup/tasks/network_interface/create_interface_group.rs
Outdated
Show resolved
Hide resolved
opendut-lea/src/peers/configurator/tabs/network/bridge_name_input.rs
Outdated
Show resolved
Hide resolved
2e8a0f9
to
0a237b1
Compare
opendut-carl/src/actions/peers.rs
Outdated
let peer_network_configuration = match peer_descriptor.clone().network.bridge_name { | ||
Some(bridge_name) => { | ||
PeerNetworkConfiguration { | ||
bridge_name, | ||
} | ||
} | ||
None => { PeerNetworkConfiguration::default() } | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Load this from the carl.toml
, e.g.:
[peer]
ethernet.bridge.name.default = "br-opendut"
You will need to pass the loaded settings
-object from the lib.rs
into the action somehow and then grab the value from there.
impl Default for PeerNetworkConfiguration { | ||
fn default() -> Self { | ||
Self { | ||
bridge_name: NetworkInterfaceName::try_from("br-opendut").unwrap(), | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this default (should be loaded from carl.toml
).
#[table(title = "BridgeName")] | ||
bridge_name: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these two lines. The user very likely does not care about the bridge_name when listing or describing peers.
#[table(title = "BridgeName")] | |
bridge_name: String, |
closes #56