components/openstack/neutron/files/agent/solaris/interface.py
branchs11u2-sru
changeset 4156 4b1def16fe9b
parent 3619 639868f63ef4
child 4444 56cbdcda8e5e
equal deleted inserted replaced
4146:097063f324c0 4156:4b1def16fe9b
    35 
    35 
    36     # TODO(gmoodalb): dnsmasq uses old style `ifreq', so 16 is the maximum
    36     # TODO(gmoodalb): dnsmasq uses old style `ifreq', so 16 is the maximum
    37     # length including the NUL character. If we change it to use new style
    37     # length including the NUL character. If we change it to use new style
    38     # `lifreq', then we will be able to extend the length to 32 characters.
    38     # `lifreq', then we will be able to extend the length to 32 characters.
    39     VNIC_NAME_MAXLEN = 15
    39     VNIC_NAME_MAXLEN = 15
    40     VNIC_NAME_PREFIX = 'evs'
    40     VNIC_NAME_PREFIX = 'dh'
    41     VNIC_NAME_SUFFIX = '_0'
    41     VNIC_NAME_SUFFIX = '_0'
    42     VNIC_NAME_LEN_WO_SUFFIX = VNIC_NAME_MAXLEN - \
    42     VNIC_NAME_LEN_WO_SUFFIX = VNIC_NAME_MAXLEN - \
    43         len(VNIC_NAME_SUFFIX)
    43         len(VNIC_NAME_SUFFIX)
    44 
    44 
    45     def __init__(self, conf):
    45     def __init__(self, conf):