#NEWLINE# def _process_update_policy( self , qos_policy ) : #NEWLINE# #INDENT# old_qos_policy = self . policy_map . get_policy ( qos_policy . id ) #NEWLINE# if old_qos_policy : #NEWLINE# #INDENT# if self . _policy_rules_modified ( old_qos_policy , qos_policy ) : #NEWLINE# #INDENT# for port in self . policy_map . get_ports ( qos_policy ) : #NEWLINE# #INDENT# self . qos_driver . delete ( port , qos_policy ) #NEWLINE# self . qos_driver . update ( port , qos_policy ) #NEWLINE# #UNINDENT# #UNINDENT# self . policy_map . update_policy ( qos_policy )