one
one copied to clipboard
Allow port isolation on VM NICs
Description
Linux bridges have the option isolated that can be set up to on to avoid communication with other isolated ports.
This makes sense on virtual networks that only must access a certain number of VMs on the same VNET.
Use case
This feature is useful in a network that only needs access outside. In this case, only the virtual router interface would have the isolated=off parameter.
Interface Changes CLI/API:
- optional parameter on VNET context
ISOLATEDthat, by default, sets all the NICs on it as isolated - optional parameter on VM NIC
ETHX_ISOLATED="YES"
Sunstone:
- VM instantiation -> Network -> Radio button called "Isolate NIC"
- VNET context -> Radio button "Isolate NICs on this VNET by default"
Additional Context
The isolation of a port can be made on libvirt with
...
<devices>
<interface type='network'>
<source network='default'/>
<port isolated='yes'/>
</interface>
</devices>
...
It can also be done during the bridge port creation, executing
bridge link set dev DEV isolated { on | off }
Progress Status
- [ ] Code committed
- [ ] Testing - QA
- [ ] Documentation (Release notes - resolved issues, compatibility, known issues)