code: def add_ospf_area(self, ospf_area, ospf_interface_setting=None, network=None,
                        communication_mode='NOT_FORCED', unicast_ref=None):
          
          communication_mode = communication_mode.upper()
          destinations=[] if not ospf_interface_setting else [ospf_interface_setting]
          if communication_mode == 'UNICAST' and unicast_ref:
              destinations.append(unicast_ref)
          routing_node_gateway = RoutingNodeGateway(
              ospf_area, communication_mode=communication_mode,
              destinations=destinations)
          return self._add_gateway_node('ospfv2_area', routing_node_gateway, network)
docs: Add OSPF Area to this routing node.
  
          Communication mode specifies how the interface will interact with the
          adjacent OSPF environment. Please see SMC API documentation for more
          in depth information on each option.
  
          If the interface has multiple networks nested below, all networks
          will receive the OSPF area by default unless the ``network`` parameter
          is specified. OSPF cannot be applied to IPv6 networks.
  
          Example of adding an area to interface routing node::
  
              area = OSPFArea('area0') #obtain area resource
  
              #Set on routing interface 0
              interface = engine.routing.get(0)
              interface.add_ospf_area(area)
  
          .. note:: If UNICAST is specified, you must also provide a unicast_ref
                    of element type Host to identify the remote host. If no
                    unicast_ref is provided, this is skipped
  
          :param OSPFArea ospf_area: OSPF area instance or href
          :param OSPFInterfaceSetting ospf_interface_setting: used to override the
              OSPF settings for this interface (optional)
          :param str network: if network specified, only add OSPF to this network
              on interface
          :param str communication_mode: NOT_FORCED|POINT_TO_POINT|PASSIVE|UNICAST
          :param Element unicast_ref: Element used as unicast gw (required for UNICAST)
          :raises ModificationAborted: Change must be made at the interface level
          :raises UpdateElementFailed: failure updating routing
          :raises ElementNotFound: ospf area not found
          :return: Status of whether the route table was updated
          :rtype: bool