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

    YANG Description: Mac Address commands
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=YANGListType("mac_address port_sec_vlan",port_security_mac_address.port_security_mac_address, yang_name="port-security-mac-address", rest_name="port-security-mac-address", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='mac-address port-sec-vlan', extensions={u'tailf-common': {u'info': u'Mac Address commands', u'cli-drop-node-name': None, u'cli-suppress-mode': None, u'callpoint': u'interface_po_portsecurity_mac', u'cli-suppress-list-no': None}}), is_container='list', yang_name="port-security-mac-address", rest_name="port-security-mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Mac Address commands', u'cli-drop-node-name': None, u'cli-suppress-mode': None, u'callpoint': u'interface_po_portsecurity_mac', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-interface', defining_module='brocade-interface', yang_type='list', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """port_security_mac_address must be of a type compatible with list""",
          'defined-type': "list",
          'generated-type': """YANGDynClass(base=YANGListType("mac_address port_sec_vlan",port_security_mac_address.port_security_mac_address, yang_name="port-security-mac-address", rest_name="port-security-mac-address", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='mac-address port-sec-vlan', extensions={u'tailf-common': {u'info': u'Mac Address commands', u'cli-drop-node-name': None, u'cli-suppress-mode': None, u'callpoint': u'interface_po_portsecurity_mac', u'cli-suppress-list-no': None}}), is_container='list', yang_name="port-security-mac-address", rest_name="port-security-mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Mac Address commands', u'cli-drop-node-name': None, u'cli-suppress-mode': None, u'callpoint': u'interface_po_portsecurity_mac', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-interface', defining_module='brocade-interface', yang_type='list', is_config=True)""",
        })

    self.__port_security_mac_address = t
    if hasattr(self, '_set'):
      self._set()
def _set_port_security_mac_address ( self , v , load = False ) : if hasattr ( v , "_utype" ) : v = v . _utype ( v ) try : t = YANGDynClass ( v , base = YANGListType ( "mac_address port_sec_vlan" , port_security_mac_address . port_security_mac_address , yang_name = "port-security-mac-address" , rest_name = "port-security-mac-address" , parent = self , is_container = 'list' , user_ordered = False , path_helper = self . _path_helper , yang_keys = 'mac-address port-sec-vlan' , extensions = { u'tailf-common' : { u'info' : u'Mac Address commands' , u'cli-drop-node-name' : None , u'cli-suppress-mode' : None , u'callpoint' : u'interface_po_portsecurity_mac' , u'cli-suppress-list-no' : None } } ) , is_container = 'list' , yang_name = "port-security-mac-address" , rest_name = "port-security-mac-address" , parent = self , path_helper = self . _path_helper , extmethods = self . _extmethods , register_paths = True , extensions = { u'tailf-common' : { u'info' : u'Mac Address commands' , u'cli-drop-node-name' : None , u'cli-suppress-mode' : None , u'callpoint' : u'interface_po_portsecurity_mac' , u'cli-suppress-list-no' : None } } , namespace = 'urn:brocade.com:mgmt:brocade-interface' , defining_module = 'brocade-interface' , yang_type = 'list' , is_config = True ) except ( TypeError , ValueError ) : raise ValueError ( { 'error-string' : """port_security_mac_address must be of a type compatible with list""" , 'defined-type' : "list" , 'generated-type' : """YANGDynClass(base=YANGListType("mac_address port_sec_vlan",port_security_mac_address.port_security_mac_address, yang_name="port-security-mac-address", rest_name="port-security-mac-address", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='mac-address port-sec-vlan', extensions={u'tailf-common': {u'info': u'Mac Address commands', u'cli-drop-node-name': None, u'cli-suppress-mode': None, u'callpoint': u'interface_po_portsecurity_mac', u'cli-suppress-list-no': None}}), is_container='list', yang_name="port-security-mac-address", rest_name="port-security-mac-address", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Mac Address commands', u'cli-drop-node-name': None, u'cli-suppress-mode': None, u'callpoint': u'interface_po_portsecurity_mac', u'cli-suppress-list-no': None}}, namespace='urn:brocade.com:mgmt:brocade-interface', defining_module='brocade-interface', yang_type='list', is_config=True)""" , } ) self . __port_security_mac_address = t if hasattr ( self , '_set' ) : self . _set ( )
Setter method for port_security_mac_address, mapped from YANG variable /interface/port_channel/switchport/port_security/port_security_mac_address (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_port_security_mac_address is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_port_security_mac_address() directly.

    YANG Description: Mac Address commands