def METHOD_NAME(node: CephNode, port: int = 7001) -> None:
    """
    Opens the required firewall ports on the WARP role type nodes.
    Args:
        node (CephNode):    The list of nodes for which the port has to be opened.
        port (int):         The network port that needs to be opened
    Returns:
        None
    Raises:
        CommandFailed
    """
    LOG.debug("Opening the required network ports if firewall is configured.")
    try:
        out, err = node.exec_command(sudo=True, cmd="firewall-cmd --state")
        if out.lower() != "running":
            return
    except CommandFailed:
        LOG.debug(f"{node.shortname} has no firewall configuration.")
        return
    node.exec_command(
        sudo=True, cmd=f"firewall-cmd --zone public --permanent --add-port {port}/tcp"
    )