libioc.Config.Jail.Properties.Interfaces module¶
Jail config interfaces property.
-
class
libioc.Config.Jail.Properties.Interfaces.
InterfaceProp
(config=None, property_name='interfaces', logger=None)[source]¶ Bases:
dict
Special jail config property Interfaces.
-
add
(jail_if, bridge_if=None, notify=True)[source]¶ Add an interface/bridge configuration entry.
- Parameters
jail_if (string) – Interface name inside the jail
bridge_if (string) –
(optional) Interface name of the host bridge device (VNET only)
A name beginning with : (colon) enables the secure mode, that adds a second bridge between the jail and the target bridge, so that source IP and mac address cannot be spoofed from within the jail.
ioc set interfaces=”vnet0::bridge0” my-jail
notify (bool) – (default=True) Sends an update notification to the jail config instance
- Return type
None
-
delimiter
= ','¶
-