Subject: [netmod] identities - multiple inheritance

From: Ladislav Lhotka <[email-masked]>
Date: Wed, 5 Mar 2014 15:25:39 +0000

Hi,

here is a simple example why an identity deriving from multiple bases can be useful:

identity ethernet {
  base if:interface-type;
}
identity ieee802.11 {
  base if:interface-type;
}

Then, a WiFi interface whose type is derived from both identities can include in its configuration and state data both general Ethernet parameters (as in ifconfig) as well as the radio parameters (as in iwconfig).

Lada

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C