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

def _set_trusted_key(self, v, load=False):
    """
    Setter method for trusted_key, mapped from YANG variable /ntp/trusted_key (trust-key)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_trusted_key is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_trusted_key() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=TypedListType(allowed_type=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 65535']})), is_leaf=False, yang_name="trusted-key", rest_name="trusted-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'NTP trusted key', u'cli-full-command': None, u'callpoint': u'ntp_trust_cp', u'sort-priority': u'31', u'cli-full-no': None}}, namespace='urn:brocade.com:mgmt:brocade-ntp', defining_module='brocade-ntp', yang_type='trust-key', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """trusted_key must be of a type compatible with trust-key""",
          'defined-type': "brocade-ntp:trust-key",
          'generated-type': """YANGDynClass(base=TypedListType(allowed_type=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1 .. 65535']})), is_leaf=False, yang_name="trusted-key", rest_name="trusted-key", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'NTP trusted key', u'cli-full-command': None, u'callpoint': u'ntp_trust_cp', u'sort-priority': u'31', u'cli-full-no': None}}, namespace='urn:brocade.com:mgmt:brocade-ntp', defining_module='brocade-ntp', yang_type='trust-key', is_config=True)""",
        })

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