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

    YANG Description: This leaf specifies the port state.
'auto' enables 802.1x authentication. The port 
moves to authorized state only after successful 
authentication. 'force-authorized' disables 802.1x
and port moves to authorized state without any 
authentication. 'force-unauthorized' causes the
port to remain in the unauthorized state,
ignoring all attempts by the client to 
authenticate.

def _set_port_control(self, v, load=False):
    """
    Setter method for port_control, mapped from YANG variable /interface/fortygigabitethernet/dot1x/port_control (enumeration)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_port_control is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_port_control() directly.

    YANG Description: This leaf specifies the port state.
'auto' enables 802.1x authentication. The port 
moves to authorized state only after successful 
authentication. 'force-authorized' disables 802.1x
and port moves to authorized state without any 
authentication. 'force-unauthorized' causes the
port to remain in the unauthorized state,
ignoring all attempts by the client to 
authenticate.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'auto': {'value': 1}, u'force-unauthorized': {'value': 3}, u'force-authorized': {'value': 2}},), is_leaf=True, yang_name="port-control", rest_name="port-control", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Port control commands'}}, namespace='urn:brocade.com:mgmt:brocade-dot1x', defining_module='brocade-dot1x', yang_type='enumeration', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """port_control must be of a type compatible with enumeration""",
          'defined-type': "brocade-dot1x:enumeration",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'auto': {'value': 1}, u'force-unauthorized': {'value': 3}, u'force-authorized': {'value': 2}},), is_leaf=True, yang_name="port-control", rest_name="port-control", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Port control commands'}}, namespace='urn:brocade.com:mgmt:brocade-dot1x', defining_module='brocade-dot1x', yang_type='enumeration', is_config=True)""",
        })

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