def _set_on_board(self, v, load=False):
    """
    Setter method for on_board, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/on_board (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_on_board is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_on_board() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=on_board.on_board, is_container='container', presence=False, yang_name="on-board", rest_name="on-board", parent=self, choice=(u'interface-identifier', u'on-board'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions=None, namespace='urn:brocade.com:mgmt:brocade-interface-ext', defining_module='brocade-interface-ext', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """on_board must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=on_board.on_board, is_container='container', presence=False, yang_name="on-board", rest_name="on-board", parent=self, choice=(u'interface-identifier', u'on-board'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions=None, namespace='urn:brocade.com:mgmt:brocade-interface-ext', defining_module='brocade-interface-ext', yang_type='container', is_config=True)""",
        })

    self.__on_board = t
    if hasattr(self, '_set'):
      self._set()
def _set_on_board ( self , v , load = False ) : if hasattr ( v , "_utype" ) : v = v . _utype ( v ) try : t = YANGDynClass ( v , base = on_board . on_board , is_container = 'container' , presence = False , yang_name = "on-board" , rest_name = "on-board" , parent = self , choice = ( u'interface-identifier' , u'on-board' ) , path_helper = self . _path_helper , extmethods = self . _extmethods , register_paths = False , extensions = None , namespace = 'urn:brocade.com:mgmt:brocade-interface-ext' , defining_module = 'brocade-interface-ext' , yang_type = 'container' , is_config = True ) except ( TypeError , ValueError ) : raise ValueError ( { 'error-string' : """on_board must be of a type compatible with container""" , 'defined-type' : "container" , 'generated-type' : """YANGDynClass(base=on_board.on_board, is_container='container', presence=False, yang_name="on-board", rest_name="on-board", parent=self, choice=(u'interface-identifier', u'on-board'), path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions=None, namespace='urn:brocade.com:mgmt:brocade-interface-ext', defining_module='brocade-interface-ext', yang_type='container', is_config=True)""" , } ) self . __on_board = t if hasattr ( self , '_set' ) : self . _set ( )
Setter method for on_board, mapped from YANG variable /brocade_interface_ext_rpc/get_media_detail/output/interface/on_board (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_on_board is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_on_board() directly.