Setter method for overlay_service_policy, mapped from YANG variable /overlay_transit/overlay_service_policy (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_overlay_service_policy is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_overlay_service_policy() directly.

def _set_overlay_service_policy(self, v, load=False):
    """
    Setter method for overlay_service_policy, mapped from YANG variable /overlay_transit/overlay_service_policy (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_overlay_service_policy is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_overlay_service_policy() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=YANGListType("overlay_sp_direction overlay_sp_pmap_name",overlay_service_policy.overlay_service_policy, yang_name="overlay-service-policy", rest_name="overlay-service-policy", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='overlay-sp-direction overlay-sp-pmap-name', extensions={u'tailf-common': {u'info': u'Attach Overlay policy Map', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-suppress-key-abbreviation': None, u'callpoint': u'OverlayServicePolicyCallPoint'}}), is_container='list', yang_name="overlay-service-policy", rest_name="overlay-service-policy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Attach Overlay policy Map', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-suppress-key-abbreviation': None, u'callpoint': u'OverlayServicePolicyCallPoint'}}, namespace='urn:brocade.com:mgmt:brocade-overlay-policy', defining_module='brocade-overlay-policy', yang_type='list', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """overlay_service_policy must be of a type compatible with list""",
          'defined-type': "list",
          'generated-type': """YANGDynClass(base=YANGListType("overlay_sp_direction overlay_sp_pmap_name",overlay_service_policy.overlay_service_policy, yang_name="overlay-service-policy", rest_name="overlay-service-policy", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='overlay-sp-direction overlay-sp-pmap-name', extensions={u'tailf-common': {u'info': u'Attach Overlay policy Map', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-suppress-key-abbreviation': None, u'callpoint': u'OverlayServicePolicyCallPoint'}}), is_container='list', yang_name="overlay-service-policy", rest_name="overlay-service-policy", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Attach Overlay policy Map', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'cli-suppress-key-abbreviation': None, u'callpoint': u'OverlayServicePolicyCallPoint'}}, namespace='urn:brocade.com:mgmt:brocade-overlay-policy', defining_module='brocade-overlay-policy', yang_type='list', is_config=True)""",
        })

    self.__overlay_service_policy = t
    if hasattr(self, '_set'):
      self._set()