Package dns :: Package rdtypes :: Package ANY :: Module EUI48
[hide private]
[frames] | no frames]

Source Code for Module dns.rdtypes.ANY.EUI48

 1  # Copyright (C) 2015 Red Hat, Inc. 
 2  # Author: Petr Spacek <pspacek@redhat.com> 
 3  # 
 4  # Permission to use, copy, modify, and distribute this software and its 
 5  # documentation for any purpose with or without fee is hereby granted, 
 6  # provided that the above copyright notice and this permission notice 
 7  # appear in all copies. 
 8  # 
 9  # THE SOFTWARE IS PROVIDED 'AS IS' AND RED HAT DISCLAIMS ALL WARRANTIES 
10  # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 
11  # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NOMINUM BE LIABLE FOR 
12  # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
13  # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 
14  # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT 
15  # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 
16   
17  import dns.rdtypes.euibase 
18   
19   
20 -class EUI48(dns.rdtypes.euibase.EUIBase):
21 22 """EUI48 record 23 24 @ivar fingerprint: 48-bit Extended Unique Identifier (EUI-48) 25 @type fingerprint: string 26 @see: rfc7043.txt""" 27 28 byte_len = 6 # 0123456789ab (in hex) 29 text_len = byte_len * 3 - 1 # 01-23-45-67-89-ab
30