def __setattr__(self, key, value):
    if (key not in self.attribute_map):
        raise KeyError('Invalid key `{}` for `PortCommon`'.format(key))
    self.__dict__[key] = value
def __setattr__(self, key, value):
    if (key not in self.attribute_map):
        raise KeyError('Invalid key `{}` for `PortCommon`'.format(key))
    self.__dict__[key] = value