Package netaddr :: Package eui :: Module ieee |
[hide private]
[frames] | no frames]

# Module ieee

Provides access to public OUI and IAB registration data published by the IEEE.

More details can be found at the following URLs :-

- IEEE Home Page - http://www.ieee.org/
- Registration Authority Home Page - http://standards.ieee.org/regauth/

Classes | [hide private]
| FileIndexer A concrete Subscriber that receives OUI record offset information that is written to an index data file as a set of comma separated records.
| OUIIndexParser A concrete Publisher that parses OUI (Organisationally Unique Identifier) records from IEEE text-based registration files
| IABIndexParser A concrete Publisher that parses IAB (Individual Address Block) records from IEEE text-based registration files

Functions | [hide private]
create_ieee_indices() Create indices for OUI and IAB file based lookups |
load_ieee_indices() Load OUI and IAB lookup indices into memory |
get_latest_files() Download the latest files from the IEEE |

Variables | [hide private]
| OUI_REGISTRY = ``'``/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr``...`` Path to local copy of IEEE OUI Registry data file.
| OUI_METADATA = ``'``/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr``...`` Path to netaddr OUI index file.
| OUI_INDEX = ``{`0`:` `[``(`61`,` 154`)``]``,` 1`:` `[``(`215`,` 178`)``]``,` 2`:` `[``(`393`,` 178`)``]``,``...`` OUI index lookup dictionary.
| IAB_REGISTRY = ``'``/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr``...`` Path to local copy of IEEE IAB Registry data file.
| IAB_METADATA = ``'``/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr``...`` Path to netaddr IAB index file.
| IAB_INDEX = ``{`84680704`:` `[``(`68`,` 133`)``]``,` 84680705`:` `[``(`201`,` 140`)``]``,` 84`...`` IAB index lookup dictionary.

Variables Details | [hide private]

  ### OUI_REGISTRY Path to local copy of IEEE OUI Registry data file. Value:
      '/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr/eui/oui.txt'

  ### OUI_METADATA Path to netaddr OUI index file. Value:
      '/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr/eui/oui.idx'

  ### OUI_INDEX OUI index lookup dictionary. Value:
      {0: [(61, 154)],
       1: [(215, 178)],
       2: [(393, 178)],
       3: [(571, 187)],
       4: [(758, 179)],
       5: [(937, 178)],
       6: [(1115, 179)],
       7: [(1294, 178)],
      ...

  ### IAB_REGISTRY Path to local copy of IEEE IAB Registry data file. Value:
      '/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr/eui/iab.txt'

  ### IAB_METADATA Path to netaddr IAB index file. Value:
      '/cygdrive/z/netaddr/branches/rel-0.7.x/netaddr/eui/iab.idx'

  ### IAB_INDEX IAB index lookup dictionary. Value:
      {84680704: [(68, 133)],
       84680705: [(201, 140)],
       84680706: [(341, 172)],
       84680707: [(513, 139)],
       84680708: [(652, 141)],
       84680709: [(793, 144)],
       84680710: [(937, 195)],
       84680711: [(1132, 166)],
      ...