pub struct Bridged {
pub interface: Option<String>,
pub dhcp: bool,
pub default_route: bool,
pub vlan: Option<u16>,
}Expand description
How a network is bridged to the host (see super::Network::bridged).
Fields§
§interface: Option<String>The host interface, as the target names it (VirtualBox: en0: Wi-Fi; Proxmox: a bridge
like vmbr0; ESXi: a physical NIC like vmnic1 that no vSwitch holds, which gets a
vSwitch of its own). Without it, Vagrant asks when several interfaces could do, Proxmox
uses its uplink bridge, and ESXi its LAN vSwitch (uplink_vswitch).
dhcp: boolThe machines take their address from the LAN’s DHCP server instead of a fixed one in
cidr; each machine lists the network with 0 (networks: { home: 0 }).
default_route: boolWith dhcp: the machines’ default route goes through the LAN’s own router (the one its
DHCP server gives) instead of the environment’s.
vlan: Option<u16>The VLAN tag on the bridge (1-4094), where the target tags a VM’s interface (Proxmox; on ESXi, the port group’s).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bridged
impl<'de> Deserialize<'de> for Bridged
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Bridged
Source§impl JsonSchema for Bridged
impl JsonSchema for Bridged
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Bridged
Auto Trait Implementations§
impl Freeze for Bridged
impl RefUnwindSafe for Bridged
impl Send for Bridged
impl Sync for Bridged
impl Unpin for Bridged
impl UnsafeUnpin for Bridged
impl UnwindSafe for Bridged
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.