check_virtual_device_compatibility


Description:


public bool check_virtual_device_compatibility (Type virtual_type, Type other_type)

Determines if a connection of type virtual_type can (in the general case) work with connections of type other_type.

If virtual_type is nm_type_setting_vlan, then this checks if other_type is a valid type for the parent of a VLAN.

If virtual_type is a "master" type (eg, nm_type_setting_bridge), then this checks if other_type is a valid type for a slave of that master.

Note that even if this returns true it is not guaranteed that <emphasis>every</emphasis> connection of type other_type is compatible with virtual_type; it may depend on the exact configuration of the two connections, or on the capabilities of an underlying device driver.

Parameters:

virtual_type

a virtual connection type

other_type

a connection type to test against virtual_type

Returns:

true or false


Namespace: NM.Utils
Package: libnm