<s> class ServiceChainContext ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , plugin , plugin_context ) : <EOL> self . _plugin = plugin <EOL> self . _plugin_context = plugin_context <EOL> class ServiceChainNodeContext ( ServiceChainContext ) : <EOL> def __init__ ( self , plugin , plugin_context , sc_node , <EOL> original_sc_node = None ) : <EOL> super ( ServiceChainNodeContext , self ) . __init__ ( plugin , plugin_context ) <EOL> self . _sc_node = sc_node <EOL> self . _profile = None <EOL> if self . _sc_node [ '<STR_LIT>' ] : <EOL> self . _profile = self . _plugin . get_service_profile ( <EOL> self . _plugin_context , self . _sc_node [ '<STR_LIT>' ] ) <EOL> self . _original_sc_node = original_sc_node <EOL> self . _original_profile = None <EOL> if ( self . _original_sc_node and <EOL> self . _original_sc_node [ '<STR_LIT>' ] ) : <EOL> self . _original_profile = self . _plugin . get_service_profile ( <EOL> self . _plugin_context , <EOL> self . _original_sc_node [ '<STR_LIT>' ] ) <EOL> @ property <EOL> def current ( self ) : <EOL> return self . _sc_node <EOL> @ property <EOL> def original ( self ) : <EOL> return self . _original_sc_node <EOL> @ property <EOL> def current_profile ( self ) : <EOL> return self . _profile <EOL> @ property <EOL> def original_profile ( self ) : <EOL> return self . _original_profile <EOL> class ServiceChainSpecContext ( ServiceChainContext ) : <EOL> def __init__ ( self , plugin , plugin_context , sc_spec , <EOL> original_sc_spec = None ) : <EOL> super ( ServiceChainSpecContext , self ) . __init__ ( plugin , plugin_context ) <EOL> self . _sc_spec = sc_spec <EOL> self . _original_sc_spec = original_sc_spec <EOL> @ property <EOL> def current ( self ) : <EOL> return self . _sc_spec <EOL> @ property <EOL> def original ( self ) : <EOL> return self . _original_sc_spec <EOL> class ServiceChainInstanceContext ( ServiceChainContext ) : <EOL> def __init__ ( self , plugin , plugin_context , sc_instance , <EOL> original_sc_instance = None ) : <EOL> super ( ServiceChainInstanceContext , self ) . __init__ ( plugin , <EOL> plugin_context ) <EOL> self . _sc_instance = sc_instance <EOL> self . _original_sc_instance = original_sc_instance <EOL> @ property <EOL> def current ( self ) : <EOL> return self . _sc_instance <EOL> @ property <EOL> def original ( self ) : <EOL> return self . _original_sc_instance <EOL> class ServiceProfileContext ( ServiceChainContext ) : <EOL> def __init__ ( self , plugin , plugin_context , profile , <EOL> original_profile = None ) : <EOL> super ( ServiceProfileContext , self ) . __init__ ( plugin , plugin_context ) <EOL> self . _profile = profile <EOL> self . _original_profile = original_profile <EOL> @ property <EOL> def current ( self ) : <EOL> return self . _profile <EOL> @ property <EOL> def original ( self ) : <EOL> return self . _original_profile </s>
