old_contents: #!/usr/bin/env python
  # encoding: utf-8
  """
  route.py
  
  Created by Thomas Mangin on 2010-01-16.
  Copyright (c) 2010 Exa Networks. All rights reserved.
  """
  
  from bgp.structure.address import Address
  from bgp.message.update.attributes import Attributes
  
  # This class must be separated from the wire representation of a Route
  # =================================================================== Route
  
  class Route (Address,Attributes):
  	def __init__ (self,afi,safi,nlri):
  		Address.__init__(self,afi,safi)
  		Attributes.__init__(self)
  		self.nlri = nlri
  
  	def __str__ (self):
  		return "%s %s%s" % (Address.__str__(self),str(self.nlri),Attributes.__str__(self))
  
  
new_contents: #!/usr/bin/env python
  # encoding: utf-8
  """
  route.py
  
  Created by Thomas Mangin on 2010-01-16.
  Copyright (c) 2010 Exa Networks. All rights reserved.
  """
  
  from bgp.structure.address import Address
  from bgp.message.update.attributes import Attributes
  
  # This class must be separated from the wire representation of a Route
  # =================================================================== Route
  
  class Route (Address,Attributes):
  	def __init__ (self,afi,safi,nlri):
  		Address.__init__(self,afi,safi)
  		Attributes.__init__(self)
  		self.nlri = nlri
  
  	def __str__ (self):
  		return "%s %s%s" % (Address.__str__(self),str(self.nlri),Attributes.__str__(self))
  	
  	def __eq__ (self,other):
  		return str(self) == str(other)
  
  
subject: fix route removing problem, "not in" requires a working __eq__